[llvm-bugs] [Bug 33665] New: clang-format incorrectly treats throw *this as binary operator
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 30 13:17:35 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33665
Bug ID: 33665
Summary: clang-format incorrectly treats throw *this as binary
operator
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: euhlmann at vmware.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
With the following code:
void Throw() { throw *this; }
c-f currently formats it as:
void Throw() { throw * this; }
I looked into this and the star token is being given the type TT_BinaryOperator
instead of TT_PointerOrReference, so it gets formatted with a space before and
after. I'm currently working on a fix.
--
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/20170630/d168ea9e/attachment.html>
More information about the llvm-bugs
mailing list