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

Manuel Klimek via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 17 00:31:35 PDT 2017


LG, thanks for the patch. For next time, it helps to use phabricator to
make people catch patches faster :)

Do you have commit access or do you need me to check it in?

On Thu, Jul 6, 2017 at 6:53 PM Erik Uhlmann via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> 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.
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170717/c89c8c0a/attachment.html>


More information about the cfe-commits mailing list