Skip to content

Commit b2e2c19

Browse files
committedSep 4, 2016
[clang-rename] Fix Clang-tidy and IWYU warnings; other minor fixes
Patch by Eugene Zelenko! Differential Revision: https://reviews.llvm.org/D24178 Reviewers: omtcyfz llvm-svn: 280638
1 parent c641e9d commit b2e2c19

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎clang-tools-extra/clang-rename/USRFinder.h

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,21 @@
1212
/// code.
1313
///
1414
//===----------------------------------------------------------------------===//
15+
1516
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
1617
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
1718

1819
#include "clang/AST/AST.h"
1920
#include "clang/AST/ASTContext.h"
2021
#include "clang/ASTMatchers/ASTMatchFinder.h"
2122
#include <string>
23+
#include <vector>
2224

2325
using namespace llvm;
2426
using namespace clang::ast_matchers;
2527

2628
namespace clang {
29+
2730
class ASTContext;
2831
class Decl;
2932
class SourceLocation;
@@ -64,7 +67,7 @@ class NestedNameSpecifierLocFinder : public MatchFinder::MatchCallback {
6467
Finder.addMatcher(NestedNameSpecifierLocMatcher, this);
6568
}
6669

67-
virtual void run(const MatchFinder::MatchResult &Result) {
70+
void run(const MatchFinder::MatchResult &Result) override {
6871
const auto *NNS = Result.Nodes.getNodeAs<NestedNameSpecifierLoc>(
6972
"nestedNameSpecifierLoc");
7073
Locations.push_back(*NNS);
@@ -74,7 +77,8 @@ class NestedNameSpecifierLocFinder : public MatchFinder::MatchCallback {
7477
std::vector<NestedNameSpecifierLoc> Locations;
7578
MatchFinder Finder;
7679
};
77-
}
78-
}
80+
81+
} // namespace rename
82+
} // namespace clang
7983

8084
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H

0 commit comments

Comments
 (0)