[llvm-bugs] [Bug 25167] New: preprocessor throws off AlignConsecutiveDeclarations

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 13 12:45:56 PDT 2015


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

            Bug ID: 25167
           Summary: preprocessor throws off AlignConsecutiveDeclarations
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric.huhtala at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Code is formatted to:

#ifndef GUARD
#define GUARD

int a1;
int a2();

#ifdef A
#else
int           a;
void          f();
#endif

int a3;
int a4();

#ifdef A
#else
uint16_t      i;
unsigned char c;
#endif
#endif // GUARD

note that "f" and "a" are aligned to "i" and "c".  both "#else" lines are
relevant to the bug.

-- 
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/20151013/687e5734/attachment.html>


More information about the llvm-bugs mailing list