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: unassignedclangb...@nondot.org
          Reporter: jasju...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    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
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to