summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools
diff options
context:
space:
mode:
authorSamuel Benzaquen <sbenza@google.com>2013-11-18 14:53:42 +0000
committerSamuel Benzaquen <sbenza@google.com>2013-11-18 14:53:42 +0000
commit464c1cbc3fac25ad84ce0ed79e49ae43fd3db686 (patch)
treea849e569dba1362e861f547e374344fcf68a3b6f /clang/docs/tools
parent60ecf38133cb8df79ec6378c801df57a8f60af75 (diff)
downloadbcm5719-llvm-464c1cbc3fac25ad84ce0ed79e49ae43fd3db686.tar.gz
bcm5719-llvm-464c1cbc3fac25ad84ce0ed79e49ae43fd3db686.zip
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
Diffstat (limited to 'clang/docs/tools')
-rw-r--r--clang/docs/tools/dump_ast_matchers.py3
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 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]
OpenPOWER on IntegriCloud