Issue |
117830
|
Summary |
[clang-format] BinPackParameters/BinPackArguments' data type is not align with document, BinPackParametersStyle <> boolean
|
Labels |
clang-format
|
Assignees |
|
Reporter |
radiocom
|
I want my function defines tobe all formated to this:
```
returnType callFunction(
typeA a,
typeB b,
typeC c,
typeD d);
typedef returnType (*functionPointerName) (
_In_ inType inVar);
void callFunction(
typeA very_short_a);
returnType callFunction();
```
According to these documents, I use -style=file. and in my directory I create .clang-format file with all configurations.
https://github.com/llvm/llvm-project/blob/main/clang/docs/ClangFormatStyleOptions.rst
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
```
AllowAllParametersOfDeclarationOnNextLine: true
BinPackParameters: AlwaysOnePerLine
ColumnLimit: 130
```
This config file failed with error:
It seems BinPackParameters accepts a boolean value rather than the BinPackParametersStyle mentioned in our documentations.
```
.clang-format:25:20: error: invalid boolean
BinPackParameters: AlwaysOnePerLine
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs