https://llvm.org/bugs/show_bug.cgi?id=26176
Bug ID: 26176
Summary: Corner case with the 'clang-format off' directive and
'AlignTrailingComments' being 'true'
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Created attachment 15644
--> https://llvm.org/bugs/attachment.cgi?id=15644&action=edit
Test C++ code for formatting
Simply run:
$ clang-format -style=LLVM test.cpp
and notice how 2 comment lines following the namespace closing bracket get
unexpectedly aligned.
Remove the comment with the 'clang-format off' directive and see that the bug
is gone.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs