clang-format: Fix deref treated as binary op in throw

Erik Uhlmann via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 6 09:53:51 PDT 2017


When dereferencing a pointer in a throw statement, clang-format assigns TT_BinaryOperator to the star token, so it gets formatted as:

throw * x;

With this change the above becomes

throw *x;

Bug tracker: https://bugs.llvm.org/show_bug.cgi?id=33665

Attached is a patch containing the fix.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Format-Fix-deref-treated-as-binary-op-in-throw.patch
Type: application/octet-stream
Size: 1226 bytes
Desc: 0001-Format-Fix-deref-treated-as-binary-op-in-throw.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170706/2a5ec911/attachment.obj>


More information about the cfe-commits mailing list