From a415a1d0d7ba556f739d642c87d7c33b5c827ee5 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 21 Jan 2016 17:56:24 +0000 Subject: Add an isVirtualAsWritten AST matcher. http://reviews.llvm.org/D16394 llvm-svn: 258415 --- clang/docs/LibASTMatchersReference.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'clang/docs/LibASTMatchersReference.html') diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index a7d1308f2e7..91c7101cdbe 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -1854,6 +1854,20 @@ Given matches A::x +Matcher<CXXMethodDecl>isVirtualAsWritten +
Matches if the given method declaration has an explicit "virtual".
+
+Given
+  class A {
+   public:
+    virtual void x();
+  };
+  class B : public A {
+   public:
+    void x();
+  };
+  matches A::x but not B::x
+
Matcher<CXXOperatorCallExpr>hasOverloadedOperatorNameStringRef Name
Matches overloaded operator names.
-- 
cgit v1.2.3