[llvm-bugs] [Bug 31648] Inconsistent formatting for variable in parenthesis followed by multiplication

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 15 10:50:51 PST 2017


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

Daniel Jasper <djasper at google.com> changed:

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

--- Comment #3 from Daniel Jasper <djasper at google.com> ---
Right. I have seen that. The short answer is that I have not seen a case where
it would be worth jumping through the hoops to do anything about it here. There
are always going to be cases, where clang-format cannot know and there is
almost always an easy workaround. In this case, maybe rewrite this as:

#define DD_FLAG_FW(d) (1 << (16 + 2 * (d)))

-- 
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/20170115/439d6860/attachment.html>


More information about the llvm-bugs mailing list