[PATCH] D24361: hasDeclaration(qualType(...)) matcher should unwrap ElaboratedType and TemplateSpecializationType

Ɓukasz Anforowicz via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 23 13:54:09 PDT 2016


lukasza updated the summary for this revision.
lukasza updated this revision to Diff 72350.
lukasza marked an inline comment as done.
lukasza added a comment.

- Added test where both TemplateSpecializationType and TypedefType are present and both should match regardless of code order inside HasDeclarationMatcher::matchesSpecialized(const QualType &Node...).  Removed significance of order inside this matchesSpecialized method.

- Tweaked test proposed in the previous patchset, so that it matches specific decls (rather than any decls)

- Added support for matching hasDeclaration(elaboratedType(...)) + test (in the test from the previous patchset).


https://reviews.llvm.org/D24361

Files:
  include/clang/ASTMatchers/ASTMatchers.h
  include/clang/ASTMatchers/ASTMatchersInternal.h
  unittests/ASTMatchers/ASTMatchersTraversalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24361.72350.patch
Type: text/x-patch
Size: 6333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160923/6beded23/attachment-0001.bin>


More information about the cfe-commits mailing list