From 6290fc9154fd6af0069f77bcc6828c461e096f1f Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 23 Nov 2015 17:09:24 +0000 Subject: Add an AST matcher for narrowing when a type is volatile-qualified. llvm-svn: 253882 --- clang/docs/LibASTMatchersReference.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'clang/docs/LibASTMatchersReference.html') 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)". +Matcher<QualType>isVolatileQualified +
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 *".
+
+ + Matcher<RecordDecl>isClass
Matches RecordDecl object that are spelled with "class."
 
-- 
cgit v1.2.3