[llvm-bugs] [Bug 27353] New: PointerAlignment: Right interaction with AlignConsecutiveDeclarations

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 14 11:26:42 PDT 2016


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

            Bug ID: 27353
           Summary: PointerAlignment: Right interaction with
                    AlignConsecutiveDeclarations
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: seth.cantrell at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Repro:
$ cat sample.c
int* a;
unsigned long long x;
double* b;
$ clang-format -style="{PointerAlignment: Right, AlignConsecutiveDeclarations:
true}" sample.c
int *              a;
unsigned long long x;
double *           b;

Expected/desired output is:

int                *a;
unsigned long long  x;
double             *b;

-- 
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/20160414/365ef03b/attachment.html>


More information about the llvm-bugs mailing list