File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
// / code.
13
13
// /
14
14
// ===----------------------------------------------------------------------===//
15
+
15
16
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
16
17
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
17
18
18
19
#include " clang/AST/AST.h"
19
20
#include " clang/AST/ASTContext.h"
20
21
#include " clang/ASTMatchers/ASTMatchFinder.h"
21
22
#include < string>
23
+ #include < vector>
22
24
23
25
using namespace llvm ;
24
26
using namespace clang ::ast_matchers;
25
27
26
28
namespace clang {
29
+
27
30
class ASTContext ;
28
31
class Decl ;
29
32
class SourceLocation ;
@@ -64,7 +67,7 @@ class NestedNameSpecifierLocFinder : public MatchFinder::MatchCallback {
64
67
Finder.addMatcher (NestedNameSpecifierLocMatcher, this );
65
68
}
66
69
67
- virtual void run (const MatchFinder::MatchResult &Result) {
70
+ void run (const MatchFinder::MatchResult &Result) override {
68
71
const auto *NNS = Result.Nodes .getNodeAs <NestedNameSpecifierLoc>(
69
72
" nestedNameSpecifierLoc" );
70
73
Locations.push_back (*NNS);
@@ -74,7 +77,8 @@ class NestedNameSpecifierLocFinder : public MatchFinder::MatchCallback {
74
77
std::vector<NestedNameSpecifierLoc> Locations;
75
78
MatchFinder Finder;
76
79
};
77
- }
78
- }
80
+
81
+ } // namespace rename
82
+ } // namespace clang
79
83
80
84
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
You can’t perform that action at this time.
0 commit comments