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.
Details
Details
- Reviewers
aaron.ballman alexfh klimek - Commits
- rG42b76e8232b5: [ASTMatchers] Introduce a matcher for `ObjCIvarExpr`, support getting it's…
rG079275b4dc23: [ASTMatchers] Introduce a matcher for `ObjCIvarExpr`, support getting it's…
rL338140: [ASTMatchers] Introduce a matcher for `ObjCIvarExpr`, support getting it's…
rC338140: [ASTMatchers] Introduce a matcher for `ObjCIvarExpr`, support getting it's…
rC338137: [ASTMatchers] Introduce a matcher for `ObjCIvarExpr`, support getting it's…
rL338137: [ASTMatchers] Introduce a matcher for `ObjCIvarExpr`, support getting it's…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The docs do not look correct to me. For instance, I don't see any changes to the hasDeclaration() documentation for the newly supported type. There also appear to be a bunch of unrelated changes in the generated HTML.
clang/docs/LibASTMatchersReference.html | ||
---|---|---|
3292–3294 ↗ | (On Diff #156895) | I thought these changes already went in as a separate commit? These are unrelated to the patch. |
clang/include/clang/ASTMatchers/ASTMatchersInternal.h | ||
44 ↗ | (On Diff #156895) | This list should remain sorted alphabetically. |
clang/include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
44 ↗ | (On Diff #156895) | but it is? |
Comment Actions
LGTM!
clang/include/clang/ASTMatchers/ASTMatchersInternal.h | ||
---|---|---|
44 ↗ | (On Diff #156895) | That's really odd. For me, the patch view shows: ================ Comment at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:44 #include "clang/AST/Expr.h" +#include "clang/AST/ExprObjC.h" #include "clang/AST/ExprCXX.h" ---------------- aaron.ballman wrote: > This list should remain sorted alphabetically. but it is? but the Phabricator view shows it in the correct order. |