Clang 格式以及构造函数初始化列表和空大括号之间的空格

问题描述 投票:0回答:1

给出这个简单的 C++ 类定义:

class NotFound : public std::logic_error {
public:
    explicit NotFound(const char *s): std::logic_error(s){};
}

clang-format中的哪个选项控制是否在对超类构造函数的调用和构造函数定义的空大括号之间插入空格?

c++ constructor superclass clang-format
1个回答
0
投票

SpaceBeforeCpp11BracedList: true

© www.soinside.com 2019 - 2024. All rights reserved.