[include-fixer] Fix some Clang-tidy modernize-use-override and Include What You Use...
authorEugene Zelenko <eugene.zelenko@gmail.com>
Tue, 6 Sep 2016 19:53:26 +0000 (19:53 +0000)
committerEugene Zelenko <eugene.zelenko@gmail.com>
Tue, 6 Sep 2016 19:53:26 +0000 (19:53 +0000)
Differential revision: https://reviews.llvm.org/D24179

llvm-svn: 280741

clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbolsAction.cpp
clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbolsAction.h

index 7eac294..57120c0 100644 (file)
@@ -8,6 +8,10 @@
 //===----------------------------------------------------------------------===//
 
 #include "FindAllSymbolsAction.h"
+#include "FindAllMacros.h"
+#include "clang/Lex/PPCallbacks.h"
+#include "clang/Lex/Preprocessor.h"
+#include "llvm/ADT/STLExtras.h"
 
 namespace clang {
 namespace find_all_symbols {
index 7dd7645..7be9fe2 100644 (file)
 #ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H
 #define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H
 
-#include "FindAllMacros.h"
 #include "FindAllSymbols.h"
 #include "HeaderMapCollector.h"
 #include "PragmaCommentHandler.h"
+#include "clang/ASTMatchers/ASTMatchFinder.h"
 #include "clang/Frontend/CompilerInstance.h"
-#include "clang/Frontend/FrontendActions.h"
+#include "clang/Frontend/FrontendAction.h"
 #include "clang/Tooling/Tooling.h"
+#include "llvm/ADT/StringRef.h"
+#include <memory>
 
 namespace clang {
 namespace find_all_symbols {
@@ -46,7 +48,7 @@ public:
       const HeaderMapCollector::RegexHeaderMap *RegexHeaderMap = nullptr)
       : Reporter(Reporter), RegexHeaderMap(RegexHeaderMap) {}
 
-  virtual clang::FrontendAction *create() override {
+  clang::FrontendAction *create() override {
     return new FindAllSymbolsAction(Reporter, RegexHeaderMap);
   }