File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
clang/include/clang/ASTMatchers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010#include " clang/AST/ASTContext.h"
1111#include " clang/AST/Decl.h"
1212#include " clang/ASTMatchers/ASTMatchFinder.h"
13+ #include " clang/ASTMatchers/ASTMatchers.h"
1314#include " clang/Lex/Lexer.h"
1415
1516using namespace clang ::ast_matchers;
Original file line number Diff line number Diff line change @@ -1804,7 +1804,7 @@ class LocMatcher : public MatcherInterface<TLoc> {
18041804// /
18051805// / Used to implement the \c loc() matcher.
18061806class TypeLocTypeMatcher : public MatcherInterface <TypeLoc> {
1807- DynTypedMatcher InnerMatcher;
1807+ Matcher<QualType> InnerMatcher;
18081808
18091809public:
18101810 explicit TypeLocTypeMatcher (const Matcher<QualType> &InnerMatcher)
@@ -1814,8 +1814,7 @@ class TypeLocTypeMatcher : public MatcherInterface<TypeLoc> {
18141814 BoundNodesTreeBuilder *Builder) const override {
18151815 if (!Node)
18161816 return false ;
1817- return this ->InnerMatcher .matches (DynTypedNode::create (Node.getType ()),
1818- Finder, Builder);
1817+ return this ->InnerMatcher .matches (Node.getType (), Finder, Builder);
18191818 }
18201819};
18211820
You can’t perform that action at this time.
0 commit comments