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

            Bug ID: 49175
           Summary: clang-format: AlignConsecutiveDeclarations doesn't
                    handle pointer properly
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Created attachment 24523
  --> https://bugs.llvm.org/attachment.cgi?id=24523&action=edit
clang-format configuration file

clang-format doesn't handle this code properly:

---The expected code------------------
unsigned int*       a;
int*                b;
unsigned int Const* c;
--------------------------------------

---The actual code after formatting---
unsigned int* a;
int*          b;
unsigned int Const* c;
--------------------------------------

It is weird that if I change "Const" into "const" it works fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to