]> granicus.if.org Git - clang/commit
ASTMatchers: added CXXMethodDecl matcher isPure()
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 24 Feb 2014 09:27:46 +0000 (09:27 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 24 Feb 2014 09:27:46 +0000 (09:27 +0000)
commit3790613579db81a9f78a7ddad5382dbeec43a07a
treeb04c9e0764cdcadd3a815daaf1ac81dec6056f54
parent5e8440c0e59675badba925a26191b0d38189d7fb
ASTMatchers: added CXXMethodDecl matcher isPure()

The isPure() CXXMethodDecl matcher matches pure method declaration like "A::x"
in this example:

class A {
  virtual void x() = 0;
}

Patch by Konrad Kleine.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202012 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersTest.cpp