Author: eugenezelenko Date: Tue Sep 6 14:53:26 2016 New Revision: 280741 URL: http://llvm.org/viewvc/llvm-project?rev=280741&view=rev Log: [include-fixer] Fix some Clang-tidy modernize-use-override and Include What You Use warnings; other minor fixes.
Differential revision: https://reviews.llvm.org/D24179 Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.cpp clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.h Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.cpp?rev=280741&r1=280740&r2=280741&view=diff ============================================================================== --- clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.cpp (original) +++ clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.cpp Tue Sep 6 14:53:26 2016 @@ -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 { Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.h?rev=280741&r1=280740&r2=280741&view=diff ============================================================================== --- clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.h (original) +++ clang-tools-extra/trunk/include-fixer/find-all-symbols/FindAllSymbolsAction.h Tue Sep 6 14:53:26 2016 @@ -10,13 +10,15 @@ #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); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits