]> granicus.if.org Git - clang/commit
Add some overloads so that floating point literals can be AST matched properly.
authorDaniel Jasper <djasper@google.com>
Mon, 2 Feb 2015 23:04:00 +0000 (23:04 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 2 Feb 2015 23:04:00 +0000 (23:04 +0000)
commitc0c5f7c2c23e214b5caf44a4103fd6a257eb0cd8
treede4c6f7c603ea3c5310b09d5bd9590a9dda8020a
parent6153ae466b8f8773b2e090991bf6f9c287d68dbc
Add some overloads so that floating point literals can be AST matched properly.

I am not entirely sure whether the implemented sematics are ideal. In
particular, should floatLiteral(equals(0.5)) match "0.5f" and should
floatLiteral(equals(0.5f)) match "0.5". With the overloads in this
patch, the answer to both questions is yes, but I am happy to change
that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227892 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchersInternal.h
unittests/ASTMatchers/ASTMatchersTest.cpp