diff options
| author | Manuel Klimek <klimek@google.com> | 2013-02-06 20:36:22 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2013-02-06 20:36:22 +0000 |
| commit | 4feac28e0e4bbbcd7d503171b3867cb33fc4cca7 (patch) | |
| tree | 810fea95afc17af9cbbf1a1737c2e90fc5e2674a /clang/docs/tools | |
| parent | 584a65befdc0ab8f458a9b4bf6e49c5ac590ebfd (diff) | |
| download | bcm5719-llvm-4feac28e0e4bbbcd7d503171b3867cb33fc4cca7.tar.gz bcm5719-llvm-4feac28e0e4bbbcd7d503171b3867cb33fc4cca7.zip | |
Cleanup of ASTMatcher macros and adding support for overloaded matchers.
This is in preparation for adding other overloaded matchers. This change
alone is a net win in LOC.
I went through all matchers and looked whether we could now encode them
as macro, or simplify them with the matcher atoms that were not
available before.
llvm-svn: 174540
Diffstat (limited to 'clang/docs/tools')
| -rw-r--r-- | clang/docs/tools/dump_ast_matchers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py index cd7ab0b74f1..4ed6822be13 100644 --- a/clang/docs/tools/dump_ast_matchers.py +++ b/clang/docs/tools/dump_ast_matchers.py @@ -175,13 +175,14 @@ def act_on_decl(declaration, comment, allowed_types): comment) return - m = re.match(r"""^\s*AST_(POLYMORPHIC_)?MATCHER(_P)?(.?)\( + m = re.match(r"""^\s*AST_(POLYMORPHIC_)?MATCHER(_P)?(.?)(?:_OVERLOAD)?\( (?:\s*([^\s,]+)\s*,)? \s*([^\s,]+)\s* (?:,\s*([^\s,]+)\s* ,\s*([^\s,]+)\s*)? (?:,\s*([^\s,]+)\s* ,\s*([^\s,]+)\s*)? + (?:,\s*\d+\s*)? \)\s*{\s*$""", declaration, flags=re.X) if m: p, n, result, name = m.groups()[1:5] |

