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 10
10
#include " clang/AST/ASTContext.h"
11
11
#include " clang/AST/Decl.h"
12
12
#include " clang/ASTMatchers/ASTMatchFinder.h"
13
+ #include " clang/ASTMatchers/ASTMatchers.h"
13
14
#include " clang/Lex/Lexer.h"
14
15
15
16
using namespace clang ::ast_matchers;
Original file line number Diff line number Diff line change @@ -1804,7 +1804,7 @@ class LocMatcher : public MatcherInterface<TLoc> {
1804
1804
// /
1805
1805
// / Used to implement the \c loc() matcher.
1806
1806
class TypeLocTypeMatcher : public MatcherInterface <TypeLoc> {
1807
- DynTypedMatcher InnerMatcher;
1807
+ Matcher<QualType> InnerMatcher;
1808
1808
1809
1809
public:
1810
1810
explicit TypeLocTypeMatcher (const Matcher<QualType> &InnerMatcher)
@@ -1814,8 +1814,7 @@ class TypeLocTypeMatcher : public MatcherInterface<TypeLoc> {
1814
1814
BoundNodesTreeBuilder *Builder) const override {
1815
1815
if (!Node)
1816
1816
return false ;
1817
- return this ->InnerMatcher .matches (DynTypedNode::create (Node.getType ()),
1818
- Finder, Builder);
1817
+ return this ->InnerMatcher .matches (Node.getType (), Finder, Builder);
1819
1818
}
1820
1819
};
1821
1820
You can’t perform that action at this time.
0 commit comments