From 464c1cbc3fac25ad84ce0ed79e49ae43fd3db686 Mon Sep 17 00:00:00 2001 From: Samuel Benzaquen Date: Mon, 18 Nov 2013 14:53:42 +0000 Subject: Add partial support for the hasDeclaration() matcher in the dynamic layer. Summary: Add partial support for the hasDeclaration() matcher in the dynamic layer. This matcher has some special logic to allow any type that has a getDecl() method. We do not support this right now. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1889 llvm-svn: 195013 --- clang/docs/tools/dump_ast_matchers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/docs/tools') diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py index 6a8687715f6..564dc380d64 100644 --- a/clang/docs/tools/dump_ast_matchers.py +++ b/clang/docs/tools/dump_ast_matchers.py @@ -232,7 +232,8 @@ def act_on_decl(declaration, comment, allowed_types): # Parse ArgumentAdapting matchers. m = re.match( - r"""^.*ArgumentAdaptingMatcherFunc<.*>\s*([a-zA-Z]*)\s*=\s*{};$""", + r"""^.*ArgumentAdaptingMatcherFunc<.*>\s*(?:LLVM_ATTRIBUTE_UNUSED\s*) + ([a-zA-Z]*)\s*=\s*{};$""", declaration, flags=re.X) if m: name = m.groups()[0] -- cgit v1.2.3