]> granicus.if.org Git - clang/commit
New ASTMatchers and enhancement to hasOverloadedOperatorName
authorEdwin Vane <edwin.vane@intel.com>
Wed, 6 Mar 2013 17:02:57 +0000 (17:02 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Wed, 6 Mar 2013 17:02:57 +0000 (17:02 +0000)
commit6a19a97e57c8678adb0505a07c97d7ccadc8fe4e
tree2cd9322d7a522eeab9455a5ab8b0fe3d5e42241c
parent7e73f94c104070cf03c6f711a10f1928a550193f
New ASTMatchers and enhancement to hasOverloadedOperatorName

Added two new narrowing matchers:
* hasMethod: aplies a matcher to a CXXRecordDecl's methods until a match is made
  or there are no more methods.
* hasCanonicalType: applies a matcher to a QualType's canonicalType.

Enhanced hasOverloadedOperatorName to work on CXXMethodDecl as well as
CXXOperatorCallExpr.

Updated tests and docs.

Reviewers: klimek, gribozavr

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