[llvm-bugs] [Bug 40418] New: AlignConsecutiveDeclarations fails with attibutes

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 22 16:58:22 PST 2019


            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: unassignedclangbugs at nondot.org
          Reporter: Roland.Schulz at Intel.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190123/526e2ade/attachment.html>

More information about the llvm-bugs mailing list