gpt4 book ai didi

c++ - 构造函数中变量 init 的 Astyle C++ 缩进

转载 作者:行者123 更新时间:2023-11-28 06:51:57 25 4
gpt4 key购买 nike

我正在寻找一个 Astyle 选项来缩进 C++ 构造函数:

foo::foo(int param) : m_param(param)
, m_x(0)
, m_y(0)

收件人:

foo::foo(int param) : m_param(param)
, m_x(0)
, m_y(0)

我没有在文档或谷歌上找到它。谢谢。

最佳答案

当前版本的 AStyle 中没有这样的选项。它将多行初始值设定项列表作为连续行处理,不应用任何特殊处理。

关于c++ - 构造函数中变量 init 的 Astyle C++ 缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23803074/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com