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

            Bug ID: 40418
           Summary: AlignConsecutiveDeclarations fails with attibutes
           Product: clang
           Version: 7.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

clang-format produces:

void f(int  extremlylongparameternamexxxxxxxx1,
       long extremlylongparameternamexxxxxxxx2,
       int[[]] extremlylongparameternamexxxxxxxx3,
       int __attribute__(()) extremlylongparameternamexxxxxxxx4) {
  int           a;
  unsigned long b;
  int[[]] c;
  int __attribute__(()) d;
}

Given configuration:
AlignConsecutiveDeclarations: true

It fails to align both the parameters and variables declarations with
attributes. Other lines work fine. But those with attributes are ignored.

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

Reply via email to