summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Bobyrev <omtcyfz@gmail.com>2016-09-04 22:19:52 +0000
committerKirill Bobyrev <omtcyfz@gmail.com>2016-09-04 22:19:52 +0000
commitb2e2c1997894d6bbbd2d941839277fd12bd46527 (patch)
treeee2c1e38bc6e59934408221172d670045df2ecda
parentc641e9d6ffd76cccfc597c18191308a31a8daff7 (diff)
downloadbcm5719-llvm-b2e2c1997894d6bbbd2d941839277fd12bd46527.tar.gz
bcm5719-llvm-b2e2c1997894d6bbbd2d941839277fd12bd46527.zip
[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
-rw-r--r--clang-tools-extra/clang-rename/USRFinder.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-rename/USRFinder.h b/clang-tools-extra/clang-rename/USRFinder.h
index 3ff639df83e..99ecda0dd4a 100644
--- a/clang-tools-extra/clang-rename/USRFinder.h
+++ b/clang-tools-extra/clang-rename/USRFinder.h
@@ -12,6 +12,7 @@
/// code.
///
//===----------------------------------------------------------------------===//
+
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
@@ -19,11 +20,13 @@
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include <string>
+#include <vector>
using namespace llvm;
using namespace clang::ast_matchers;
namespace clang {
+
class ASTContext;
class Decl;
class SourceLocation;
@@ -64,7 +67,7 @@ private:
Finder.addMatcher(NestedNameSpecifierLocMatcher, this);
}
- virtual void run(const MatchFinder::MatchResult &Result) {
+ void run(const MatchFinder::MatchResult &Result) override {
const auto *NNS = Result.Nodes.getNodeAs<NestedNameSpecifierLoc>(
"nestedNameSpecifierLoc");
Locations.push_back(*NNS);
@@ -74,7 +77,8 @@ private:
std::vector<NestedNameSpecifierLoc> Locations;
MatchFinder Finder;
};
-}
-}
+
+} // namespace rename
+} // namespace clang
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_FINDER_H
OpenPOWER on IntegriCloud