This is needed to implement more checks in D38455.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 16299 Build 16299: arc lint + arc unit
Event Timeline
Comment Actions
I think hasSourceExpression() already does what you're looking for.
void f() { int i = 1.0f; }
clang-query> match implicitCastExpr(hasSourceExpression(floatLiteral()))
Match #1:
C:\Users\aballman.GRAMMATECH\Desktop\test.c:2:11: note: "root" binds here
int i = 1.0f; ^~~~
1 match.
Comment Actions
Thanks for the pointer. I missed the trampoline through GetSourceExpressionMatcher<T>.