summaryrefslogtreecommitdiffstats
path: root/clang/docs/LibASTMatchersReference.html
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-07-23 17:54:59 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-07-23 17:54:59 +0000
commit3f07e7b06363bf88d70bd89b8d45eabf64caf2b3 (patch)
tree4362dc383675d9b8818453e8bcd2274da81a85f0 /clang/docs/LibASTMatchersReference.html
parent1c6fc3b8f0ed66f7f4d4ba987ae2a31166669aef (diff)
downloadbcm5719-llvm-3f07e7b06363bf88d70bd89b8d45eabf64caf2b3.tar.gz
bcm5719-llvm-3f07e7b06363bf88d70bd89b8d45eabf64caf2b3.zip
Updating the documentation for the hasAttr AST matcher, which behaves somewhat differently when used within clang-query. Fixes PR24217.
llvm-svn: 243029
Diffstat (limited to 'clang/docs/LibASTMatchersReference.html')
-rw-r--r--clang/docs/LibASTMatchersReference.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html
index f4471364f24..5e34d65f2ff 100644
--- a/clang/docs/LibASTMatchersReference.html
+++ b/clang/docs/LibASTMatchersReference.html
@@ -1692,7 +1692,8 @@ and reference to that variable declaration within a compound statement.
Given
__attribute__((device)) void f() { ... }
decl(hasAttr(clang::attr::CUDADevice)) matches the function declaration of
-f.
+f. If the matcher is use from clang-query, attr::Kind parameter should be
+passed as a quoted string. e.g., hasAttr("attr::CUDADevice").
</pre></td></tr>
OpenPOWER on IntegriCloud