[clang-tools-extra] r280638 - [clang-rename] Fix Clang-tidy and IWYU warnings; other minor fixes
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 4 15:19:52 PDT 2016
Author: omtcyfz
Date: Sun Sep 4 17:19:52 2016
New Revision: 280638
URL: http://llvm.org/viewvc/llvm-project?rev=280638&view=rev
Log:
[clang-rename] Fix Clang-tidy and IWYU warnings; other minor fixes
Patch by Eugene Zelenko!
Differential Revision: https://reviews.llvm.org/D24178
Reviewers: omtcyfz
Modified:
clang-tools-extra/trunk/clang-rename/USRFinder.h
Modified: clang-tools-extra/trunk/clang-rename/USRFinder.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-rename/USRFinder.h?rev=280638&r1=280637&r2=280638&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-rename/USRFinder.h (original)
+++ clang-tools-extra/trunk/clang-rename/USRFinder.h Sun Sep 4 17:19:52 2016
@@ -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
More information about the cfe-commits
mailing list