[llvm-bugs] [Bug 31910] New: clang-format mangles the first comment it sees inside a macro

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 8 18:56:44 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31910

            Bug ID: 31910
           Summary: clang-format mangles the first comment it sees inside
                    a macro
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dcheng at google.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Input:

#define MACRO() \
  int test; \
  // Long comment which won't fit in the 80 column limit on the previous line.

Output:

#define MACRO() \
  int test;     \
// Long comment which won't fit in the 80 column limit on the previous line.

-- 
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/20170209/32e10c4f/attachment.html>


More information about the llvm-bugs mailing list