We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InsertNewlineAtEOF
I added one entry to my .clang-format file, namely the InsertNewlineAtEOF: true line. Now the .clang-format looks like:
.clang-format
InsertNewlineAtEOF: true
Language: Cpp BasedOnStyle: Google
AccessModifierOffset: -2 AlignAfterOpenBracket: AlwaysBreak BraceWrapping: AfterClass: true AfterFunction: true AfterNamespace: true AfterStruct: true BreakBeforeBraces: Custom ColumnLimit: 100 ConstructorInitializerIndentWidth: 0 ContinuationIndentWidth: 2 DerivePointerAlignment: false InsertNewlineAtEOF: true PointerAlignment: Middle ReflowComments: false ...
However, when running ament_clang_format --config ./clang-format I got:
ament_clang_format --config ./clang-format
{AccessModifierOffset: -2, AlignAfterOpenBracket: AlwaysBreak, BasedOnStyle: Google, BraceWrapping: {AfterClass: true, AfterFunction: true, AfterNamespace: true, AfterStruct: true}, BreakBeforeBraces: Custom, ColumnLimit: 100, ConstructorInitializerIndentWidth: 0, ContinuationIndentWidth: 2, DerivePointerAlignment: false, InsertNewlineAtEOF: true, Language: Cpp, PointerAlignment: Middle, ReflowComments: false} ^~~~~~~~~~~~~~~~~~ Error parsing -style: Invalid argument <command-line>:1:325: error: unknown key 'InsertNewlineAtEOF'
several times. Removing this line fixes the issue.
The text was updated successfully, but these errors were encountered:
@wjwwood Could you please help to triage this issue?
Sorry, something went wrong.
wjwwood
No branches or pull requests
I added one entry to my
.clang-format
file, namely theInsertNewlineAtEOF: true
line. Now the.clang-format
looks like:Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
BraceWrapping:
AfterClass: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
BreakBeforeBraces: Custom
ColumnLimit: 100
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 2
DerivePointerAlignment: false
InsertNewlineAtEOF: true
PointerAlignment: Middle
ReflowComments: false
...
However, when running
ament_clang_format --config ./clang-format
I got:several times. Removing this line fixes the issue.
The text was updated successfully, but these errors were encountered: