summaryrefslogtreecommitdiffstats
path: root/clang/docs/LibASTMatchersReference.html
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-03-21 15:33:43 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-03-21 15:33:43 +0000
commit408eb44f49310dd3d9888c7feae55f8c96c96903 (patch)
tree1b16abc2c3197ac1563fbf937301d72452281c25 /clang/docs/LibASTMatchersReference.html
parentc816195759aa392cc36bacde61c38357f7014d3e (diff)
downloadbcm5719-llvm-408eb44f49310dd3d9888c7feae55f8c96c96903.tar.gz
bcm5719-llvm-408eb44f49310dd3d9888c7feae55f8c96c96903.zip
[ASTMatcher] Add clang-query disclaimer to two more matchers that take enum
As we have figured out in https://reviews.llvm.org/D57112 and https://bugs.llvm.org/show_bug.cgi?id=41176 this kind-of works, but needs special care. llvm-svn: 356677
Diffstat (limited to 'clang/docs/LibASTMatchersReference.html')
-rw-r--r--clang/docs/LibASTMatchersReference.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html
index 05f5c1fe486..10b9ebf19b7 100644
--- a/clang/docs/LibASTMatchersReference.html
+++ b/clang/docs/LibASTMatchersReference.html
@@ -2640,6 +2640,9 @@ Example matches y(x) but not y(42) or NS::y(x).
Example: matches the implicit cast around 0
(matcher = castExpr(hasCastKind(CK_NullToPointer)))
int *p = 0;
+
+If the matcher is use from clang-query, CastKind parameter
+should be passed as a quoted string. e.g., ofKind("CK_NullToPointer").
</pre></td></tr>
@@ -4086,6 +4089,9 @@ Given
int s = sizeof(x) + alignof(x)
unaryExprOrTypeTraitExpr(ofKind(UETT_SizeOf))
matches sizeof(x)
+
+If the matcher is use from clang-query, UnaryExprOrTypeTrait parameter
+should be passed as a quoted string. e.g., ofKind("UETT_SizeOf").
</pre></td></tr>
OpenPOWER on IntegriCloud