Issue |
141169
|
Summary |
Option to customize indentation of consturctor initilializers
|
Labels |
enhancement,
clang-format
|
Assignees |
|
Reporter |
EugeneZelenko
|
It'll be great to have option that allow to customize indentation between colon/comma and initializer in constructor. It looks like currently single space is hardcoded.
For example:
```
#include <string>
class Test
{
public:
Test(int int_argument, const std::string& string_argument);
private:
int int_argument_;
std::string string_argument_;
};
Test::Test(int int_argument, const std::string& string_argument)
: int_argument_(int_argument)
, string_argument_(string_argument)
{
}
```
Basically, it's necessary to make this indentation follow `IndentWidth` (4 in this example).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs