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.

Attachment: 0001-Format-Fix-deref-treated-as-binary-op-in-throw.patch
Description: 0001-Format-Fix-deref-treated-as-binary-op-in-throw.patch

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to