Skip to content
Commit 43bdba40 authored by Clement Courbet's avatar Clement Courbet
Browse files

[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
parent 4ba87d01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment