[PATCH] Separate the matchers by type and statically dispatch to the right list.

Manuel Klimek klimek at google.com
Fri Sep 5 00:32:43 PDT 2014


I assume this makes something faster? Do you have some numbers?

================
Comment at: lib/ASTMatchers/ASTMatchFinder.cpp:439
@@ +438,3 @@
+  void match(const ast_type_traits::DynTypedNode &Node) {
+    // TODO: Improve this with a switch or a visitor pattern.
+    if (auto *N = Node.get<Decl>()) {
----------------
FIXME:

http://reviews.llvm.org/D5197






More information about the cfe-commits mailing list