[llvm-bugs] [Bug 34300] New: clang-format regression in current 5.0

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 23 13:30:52 PDT 2017


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

            Bug ID: 34300
           Summary: clang-format regression in current 5.0
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: markus at oberhumer.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

clang-format (current 5.0 git branch) incorrectly indents some comments - see
"b" and "c" below.

This is a regression against versions 3.7 .. 4.0.


$ cat test.c
// a

int a(void) { return 1; }

// b

#define b 2

// c

#define c 3


$ clang-lang-format-5.0 < test.c

// a

int a(void) { return 1; }

  // b

#define b 2

  // c

#define c 3

-- 
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/20170823/75897ed7/attachment.html>


More information about the llvm-bugs mailing list