You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when the following setting is set in .clang-format:
MaxEmptyLinesToKeep: 2
Then clang-format will fail to trim empty trailing lines.
This means that using clang-foramt --dry-run -Werror to validate if a source file was properly formatted then it will fail.
And then using the xcode-clang-format.applescript to format the file wont fix this.
The text was updated successfully, but these errors were encountered:
The following function will ignore trailing empty lines.
tools/xcode-clang-format.applescript
Line 78 in be6d4a7
But when the following setting is set in
.clang-format
:Then
clang-format
will fail to trim empty trailing lines.This means that using
clang-foramt --dry-run -Werror
to validate if a source file was properly formatted then it will fail.And then using the
xcode-clang-format.applescript
to format the file wont fix this.The text was updated successfully, but these errors were encountered: