[PATCH] D19113: [ASTMatchers] Upgrading typedef matching to c++11

Clement Courbet via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 14 07:01:46 PDT 2016


courbet created this revision.
courbet added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

- hasType() should be able to match the types of TypedefAliasDecl in addition to TypedefDecl, so made it work on TypedefNameDecl.
- new typedefNameDecl() matcher, which should be mostly used in place of typedefDecl (most people will want to match any typedef names, and not just those introduces through pre-c++11 typedefs).

http://reviews.llvm.org/D19113

Files:
  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: D19113.53703.patch
Type: text/x-patch
Size: 4416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160414/c0c85bfb/attachment.bin>


More information about the cfe-commits mailing list