Skip to content
Snippets Groups Projects
  1. Mar 09, 2015
  2. Apr 14, 2014
  3. Jul 22, 2013
  4. Jul 19, 2013
  5. Jul 18, 2013
  6. Jun 21, 2013
  7. Jun 20, 2013
  8. Jun 04, 2013
  9. Jun 03, 2013
  10. May 14, 2013
    • Manuel Klimek's avatar
      First revision of the dynamic ASTMatcher library. · f7f295f3
      Manuel Klimek authored
      This library supports all the features of the compile-time based ASTMatcher
      library, but allows the user to specify and construct the matchers at runtime.
      It contains the following modules:
       - A variant type, to be used by the matcher factory.
       - A registry, where the matchers are indexed by name and have a factory method
         with a generic signature.
       - A simple matcher expression parser, that can be used to convert a matcher
         expression string into actual matchers that can be used with the AST at
         runtime.
      
      Many features where omitted from this first revision to simplify this code
      review. The main ideas are still represented in this change and it already has
      support working use cases.
      Things that are missing:
       - Support for polymorphic matchers. These requires supporting code in the
         registry, the marshallers and the variant type.
       - Support for numbers, char and bool arguments to the matchers. This requires
         supporting code in the parser and the variant type.
       - A command line program putting everything together and providing an already
         functional tool.
      
      Patch by Samuel Benzaquen.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181768 91177308-0d34-0410-b5e6-96231b3b80d8
      f7f295f3
Loading