[ASTMatchers][NFC] integerLiteral(): Mention negative integers in
authorClement Courbet <courbet@google.com>
Tue, 11 Jul 2017 15:45:22 +0000 (15:45 +0000)
committerClement Courbet <courbet@google.com>
Tue, 11 Jul 2017 15:45:22 +0000 (15:45 +0000)
commit43bdba4086b2a849b00eaec86cc76917c7ac60eb
treec26b8c70ca4a8dcc5065b68eb24713c9feda30b5
parent4ba87d01bcf18ab3ae7ad67a2faeddd55ebc46a1
[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

llvm-svn: 307663
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp