diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-03-21 15:33:43 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-03-21 15:33:43 +0000 |
commit | 3de22ecb0fcb1c987e2be67e929bbbd69805b526 (patch) | |
tree | 5b565161286bc5e4a596102d8710e1701e5f2576 /docs/LibASTMatchersReference.html | |
parent | 6be9af4d254bca225b6627eb34163e38c97a3747 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LibASTMatchersReference.html')
-rw-r--r-- | docs/LibASTMatchersReference.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/LibASTMatchersReference.html b/docs/LibASTMatchersReference.html index 05f5c1fe48..10b9ebf19b 100644 --- a/docs/LibASTMatchersReference.html +++ b/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> |