[ASTMatchers][NFC] integerLiteral(): Mention negative integers in
documentation. Trying to match integerLiteral(-1) will silently fail, because an numeric literal is always positive. - Update the documentation to explain how to match negative numeric literals. - Add a unit test. Differential Revision: https://reviews.llvm.org/D35196 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307663 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LibASTMatchersReference.html 32 additions, 0 deletionsdocs/LibASTMatchersReference.html
- include/clang/ASTMatchers/ASTMatchers.h 8 additions, 0 deletionsinclude/clang/ASTMatchers/ASTMatchers.h
- unittests/ASTMatchers/ASTMatchersNodeTest.cpp 6 additions, 0 deletionsunittests/ASTMatchers/ASTMatchersNodeTest.cpp
Loading
Please register or sign in to comment