[llvm-bugs] [Bug 26176] New: Corner case with the 'clang-format off' directive and 'AlignTrailingComments' being 'true'

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 16 11:12:28 PST 2016


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: unassignedclangbugs at nondot.org
          Reporter: llvm at Alexander.Shukaev.name
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160116/7f38bc47/attachment.html>


More information about the llvm-bugs mailing list