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)
commit0a4836ed0eb9d6ee77fe0809f49502689b230baf
tree13d96748ea8df13b496321f52b41a93a4021f9ab
parent063dfe32440f2b1ac03f51dca4b77cac96c95bb2
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
llvm-svn: 176556
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/unittests/ASTMatchers/ASTMatchersTest.cpp