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

            Bug ID: 25778
           Summary: What is AlignOperands suppose to do?
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

Suppose I have a code snippet

void main() {
  aa   = (bb) ? cc : dd;
  aaaa = (bbbb) ? cccc : dddd;
}

I thought setting AlignOperands to true should make this 

void main() {
  aa   = (bb)   ? cc   : dd;
  aaaa = (bbbb) ? cccc : dddd;
}

but the code remains the same.

Tested with the latest trunk by command

clang-format test.cpp -style="{AlignOperands: true,
AlignConsecutiveAssignments: true}"

Please let me know what I am missing. Thanks!

-- 
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