[llvm-bugs] [Bug 35641] New: Formatting makes code incorrect

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 12 06:32:45 PST 2017


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

            Bug ID: 35641
           Summary: Formatting makes code incorrect
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vbeffara at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

With this code:

----------------------- a.cpp
int l() { //
  int p;
}
-----------------------

And this .clang-format:

----------------------- .clang-format
---
AlignConsecutiveDeclarations: true
-----------------------

I get the following output:

----------------------- output
int l() { //
  intp;
}
-----------------------

(which obviously does not compile).

-- 
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/20171212/1be39f2b/attachment.html>


More information about the llvm-bugs mailing list