[llvm-bugs] [Bug 27082] want BreakConsecutiveAssignment or BreakMixedAssignment

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 26 00:22:44 PDT 2016


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

Daniel Jasper <djasper at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Daniel Jasper <djasper at google.com> ---
While I sympathize that you want these features, they are significantly out of
the scope of what clang-format wants to do. Both suggested changes, are not
formatting changes, but actually change the program. The first merely changes
the AST, the latter changes the program behavior (stack layout, initialization
order, ...).

And even those considerations aside, clang-format is doing a very coarse
analysis of your program. It doesn't actually use Clang to generate an AST and
simply doesn't understand the input well enough to make either change.

-- 
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/20160326/54006733/attachment.html>


More information about the llvm-bugs mailing list