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

            Bug ID: 31281
           Summary: clang-format aligns equals with unrelated code
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: mich...@microsoft.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17717
  --> https://llvm.org/bugs/attachment.cgi?id=17717&action=edit
Code sample of bug

When using AlignConsecutiveAssignments=true, clang-format will occasionally
align unrelated assignments from different functions. This appears to happen
with only a very specific #ifdef sequences. In the example attached,
clang-format tries to align the nextOpcode = opcode assignment with the
inX64Try assignment, even though they are not in the same function.

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

Reply via email to