[PATCH] Refactor Matcher<T> and DynTypedMatcher to reduce overhead of casts.

Samuel Benzaquen sbenza at google.com
Thu Sep 25 09:18:15 PDT 2014


Added the RestrictKind to the matcher ID.
Also added a regression test to make sure memoization works with the new changes.
Verified that the test failed before the fix and passed afterwards.

http://reviews.llvm.org/D5485

Files:
  include/clang/AST/ASTTypeTraits.h
  include/clang/ASTMatchers/ASTMatchersInternal.h
  lib/ASTMatchers/ASTMatchFinder.cpp
  lib/ASTMatchers/ASTMatchersInternal.cpp
  unittests/ASTMatchers/ASTMatchersTest.cpp
  unittests/ASTMatchers/Dynamic/ParserTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5485.14075.patch
Type: text/x-patch
Size: 29257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140925/7fe4ebda/attachment.bin>


More information about the cfe-commits mailing list