[PATCH] D12736: [PATCH] AST traversal from types to decls

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 10 13:59:50 PDT 2015


aaron.ballman updated this revision to Diff 34486.
aaron.ballman added a comment.

After speaking with Manuel on IRC about the testability, we decided the best approach would be to add the AST matcher functionality required to actually test out the changes to HasDeclarationMatcher::matchesSpecialized(). I've updated the patch accordingly. Specifically, this new patch:

- Fixed HasDeclarationMatcher to properly convert all types into decls where possible
- Added objcObjectPointerType()
- Updated documentation for pointerType() to call out that it does not match ObjCObjectPointerType types
- Added objcInterfaceDecl()
- Changed pointsTo() to handle ObjCObjectPointerType as well as PointerType
- Added templateTypeParmType()
- Added injectedClassNameType()
- Added unresolvedUsingTypenameDecl()
- Added tests and documentation for everything

While this may seem like a lot of unrelated changes, they all relate back to fixing HasDeclarationMatcher.


http://reviews.llvm.org/D12736

Files:
  docs/LibASTMatchersReference.html
  include/clang/ASTMatchers/ASTMatchers.h
  include/clang/ASTMatchers/ASTMatchersInternal.h
  lib/ASTMatchers/Dynamic/Registry.cpp
  unittests/ASTMatchers/ASTMatchersTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12736.34486.patch
Type: text/x-patch
Size: 16873 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150910/dc533ba0/attachment-0001.bin>


More information about the cfe-commits mailing list