Add `TypeLoc`-related matchers.
authorJames King <jamescking@google.com>
Fri, 8 Oct 2021 17:42:06 +0000 (17:42 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Fri, 8 Oct 2021 17:42:18 +0000 (17:42 +0000)
commitac742965628631059af7fdc77e8661fa660ac180
tree7ade88f1611524b66a068cb345ef31c56faaf2d6
parent68e49aea9ac4dca550df70706cc845de04939c03
Add `TypeLoc`-related matchers.

Contributes several matchers that involve `TypeLoc`s. These matchers are (in alphabetical order):

- elaboratedTypeLoc
- hasAnyTemplateArgumentLoc
- hasNamedTypeLoc
- hasPointeeLoc
- hasReferentLoc
- hasReturnTypeLoc
- hasTemplateArgumentLoc
- hasUnqualifiedLoc
- pointerTypeLoc
- qualifiedTypeLoc
- referenceTypeLoc
- templateSpecializationTypeLoc

Reviewed By: ymandel, aaron.ballman

Differential Revision: https://reviews.llvm.org/D111242
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/lib/ASTMatchers/ASTMatchersInternal.cpp
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp