File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,7 @@ class MatchesAnyListedNameMatcher
85
85
NameList.begin (), NameList.end (), std::back_inserter (NameMatchers),
86
86
[](const llvm::StringRef Name) { return NameMatcher (Name); });
87
87
}
88
- bool matches (
89
- const NamedDecl &Node, ast_matchers::internal::ASTMatchFinder *Finder,
90
- ast_matchers::internal::BoundNodesTreeBuilder *Builder) const override {
91
- return llvm::any_of (NameMatchers, [&Node](const NameMatcher &NM) {
92
- return NM.match (Node);
93
- });
94
- }
95
88
96
- private:
97
89
class NameMatcher {
98
90
llvm::Regex Regex;
99
91
enum class MatchMode {
@@ -136,6 +128,15 @@ class MatchesAnyListedNameMatcher
136
128
}
137
129
};
138
130
131
+ bool matches (
132
+ const NamedDecl &Node, ast_matchers::internal::ASTMatchFinder *Finder,
133
+ ast_matchers::internal::BoundNodesTreeBuilder *Builder) const override {
134
+ return llvm::any_of (NameMatchers, [&Node](const NameMatcher &NM) {
135
+ return NM.match (Node);
136
+ });
137
+ }
138
+
139
+ private:
139
140
std::vector<NameMatcher> NameMatchers;
140
141
};
141
142
You can’t perform that action at this time.
0 commit comments