[ASTMatchers] Introduce a matcher for `ObjCIvarExpr`, support getting it's declaration
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 27 Jul 2018 17:40:59 +0000 (17:40 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 27 Jul 2018 17:40:59 +0000 (17:40 +0000)
ObjCIvarExpr is *not* a subclass of MemberExpr, and a separate matcher
is required to support it.
Adding a hasDeclaration support as well, as it's not very useful without
it.

Differential Revision: https://reviews.llvm.org/D49701

llvm-svn: 338140

clang/include/clang/ASTMatchers/ASTMatchersInternal.h

index b0a4578..9d9f867 100644 (file)
@@ -41,6 +41,7 @@
 #include "clang/AST/DeclFriend.h"
 #include "clang/AST/DeclTemplate.h"
 #include "clang/AST/Expr.h"
+#include "clang/AST/ExprObjC.h"
 #include "clang/AST/ExprCXX.h"
 #include "clang/AST/ExprObjC.h"
 #include "clang/AST/NestedNameSpecifier.h"