diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-11-23 17:09:24 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-11-23 17:09:24 +0000 |
commit | 6290fc9154fd6af0069f77bcc6828c461e096f1f (patch) | |
tree | c9955f56a321fe61bc41a502b84f9a421cea9229 /clang/docs/LibASTMatchersReference.html | |
parent | 19c1922c0472f17fddf53d7da0b4635b4d8eb880 (diff) | |
download | bcm5719-llvm-6290fc9154fd6af0069f77bcc6828c461e096f1f.tar.gz bcm5719-llvm-6290fc9154fd6af0069f77bcc6828c461e096f1f.zip |
Add an AST matcher for narrowing when a type is volatile-qualified.
llvm-svn: 253882
Diffstat (limited to 'clang/docs/LibASTMatchersReference.html')
-rw-r--r-- | clang/docs/LibASTMatchersReference.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index ba33bc5b704..454f60d44f2 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -2517,6 +2517,23 @@ matches "a(int)", "b(long)", but not "c(double)". </pre></td></tr> +<tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1QualType.html">QualType</a>></td><td class="name" onclick="toggle('isVolatileQualified0')"><a name="isVolatileQualified0Anchor">isVolatileQualified</a></td><td></td></tr> +<tr><td colspan="4" class="doc" id="isVolatileQualified0"><pre>Matches QualType nodes that are volatile-qualified, i.e., that +include "top-level" volatile. + +Given + void a(int); + void b(int volatile); + void c(volatile int); + void d(volatile int*); + void e(int volatile) {}; +functionDecl(hasAnyParameter(hasType(isVolatileQualified()))) + matches "void b(int volatile)", "void c(volatile int)" and + "void e(int volatile) {}". It does not match d as there + is no top-level volatile on the parameter type "volatile int *". +</pre></td></tr> + + <tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1RecordDecl.html">RecordDecl</a>></td><td class="name" onclick="toggle('isClass0')"><a name="isClass0Anchor">isClass</a></td><td></td></tr> <tr><td colspan="4" class="doc" id="isClass0"><pre>Matches RecordDecl object that are spelled with "class." |