Trying to match integerLiteral(-1) will silently fail, because clang only represents positive integer literals.
- Update the documentation to explain how to match negative integers.
- Add a unit test.
Differential D35196
[ASTMatchers][NFC] integerLiteral(): Mention negative integers in documentation. courbet on Jul 10 2017, 4:53 AM. Authored by
Details Trying to match integerLiteral(-1) will silently fail, because clang only represents positive integer literals.
Diff Detail
Event Timeline
Comment Actions
Comment Actions LGTM, thank you!
|