llvm-project/clang-tools-extra/clang-tidy
Reid Kleckner 86565c1309 Avoid SourceManager.h include in RawCommentList.h, add missing incs
SourceManager.h includes FileManager.h, which is expensive due to
dependencies on LLVM FS headers.

Remove dead BeforeThanCompare specialization.

Sink ASTContext::addComment to cpp file.

This reduces the time to compile a file that does nothing but include
ASTContext.h from ~3.4s to ~2.8s for me.

Saves these includes:
    219 -    ../clang/include/clang/Basic/SourceManager.h
    204 -    ../clang/include/clang/Basic/FileSystemOptions.h
    204 -    ../clang/include/clang/Basic/FileManager.h
    165 -    ../llvm/include/llvm/Support/VirtualFileSystem.h
    164 -    ../llvm/include/llvm/Support/SourceMgr.h
    164 -    ../llvm/include/llvm/Support/SMLoc.h
    161 -    ../llvm/include/llvm/Support/Path.h
    141 -    ../llvm/include/llvm/ADT/BitVector.h
    128 -    ../llvm/include/llvm/Support/MemoryBuffer.h
    124 -    ../llvm/include/llvm/Support/FileSystem.h
    124 -    ../llvm/include/llvm/Support/Chrono.h
    124 -    .../MSVCSTL/include/stack
    122 -    ../llvm/include/llvm-c/Types.h
    122 -    ../llvm/include/llvm/Support/NativeFormatting.h
    122 -    ../llvm/include/llvm/Support/FormatProviders.h
    122 -    ../llvm/include/llvm/Support/CBindingWrapping.h
    122 -    .../MSVCSTL/include/xtimec.h
    122 -    .../MSVCSTL/include/ratio
    122 -    .../MSVCSTL/include/chrono
    121 -    ../llvm/include/llvm/Support/FormatVariadicDetails.h
    118 -    ../llvm/include/llvm/Support/MD5.h
    109 -    .../MSVCSTL/include/deque
    105 -    ../llvm/include/llvm/Support/Host.h
    105 -    ../llvm/include/llvm/Support/Endian.h

Reviewed By: aaron.ballman, hans

Differential Revision: https://reviews.llvm.org/D75279
2020-02-27 13:49:40 -08:00
..
abseil [ASTMatchers] StringRef'ify hasName 2020-01-29 10:53:08 +01:00
android Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
boost [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
bugprone [NFC] Fix issues with clang-tidy checks list.rst 2020-02-19 23:19:09 +00:00
cert [ASTMatchers] Add hasPlacementArg and hasAnyPlacementArg traversal matcher for CXXNewExpr 2020-01-30 10:16:04 +00:00
cppcoreguidelines [clang-tidy] Fix false positive for cppcoreguidelines-init-variables 2020-02-02 21:26:29 +00:00
darwin [clang-tidy] Rename objc-avoid-spinlock check to darwin-avoid-spinlock 2019-10-01 21:18:40 +00:00
fuchsia Moved GlobList into a separate header file 2019-08-26 15:44:32 +00:00
google [ASTMatchers] StringRef'ify hasName 2020-01-29 10:53:08 +01:00
hicpp Add an option to hicpp-signed-bitwise for positive integer literals. 2019-10-30 14:11:29 -04:00
linuxkernel [clang-tidy] Add a module for the Linux kernel. 2019-07-25 22:32:50 +00:00
llvm [clang-tidy] Added option for disabling const qualifiers in readability-qualified-auto 2020-02-02 21:27:25 +00:00
misc [clang-tidy] misc-no-recursion: point to the function defs, not decls 2020-02-20 14:17:30 +03:00
modernize Strength reduce vectors into arrays. NFCI. 2020-02-17 15:37:35 +01:00
mpi Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
objc Create a clang-tidy check to warn when -dealloc is implemented inside an ObjC class category. 2020-02-10 08:56:28 -07:00
openmp [FIX] Repair clang-tidy check after D72304 2020-02-15 01:15:45 -06:00
performance Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
plugin Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
portability [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
readability [NFC] Fix issues with clang-tidy checks list.rst 2020-02-19 23:19:09 +00:00
tool Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
utils Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
zircon [clang-tidy] Switch checks to #include "ClangTidyCheck.h" 2019-03-25 12:38:26 +00:00
CMakeLists.txt [clang-tidy] Add clang-tidy headers to clang distribution 2020-01-23 16:29:08 -08:00
ClangTidy.cpp More fixes of implicit std::string conversions 2020-01-29 15:29:46 +01:00
ClangTidy.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
ClangTidyCheck.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ClangTidyCheck.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
ClangTidyDiagnosticConsumer.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ClangTidyDiagnosticConsumer.h Fix an implicit conversion in clang-tidy. GCC 5 complains about it. 2020-01-29 12:05:35 +01:00
ClangTidyForceLinker.h clang-tidy: Don't repeat list of all checks in three places. 2019-09-27 12:56:14 +00:00
ClangTidyModule.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ClangTidyModule.h Return results by value from ClangTidyCheckFactories::createChecks 2019-09-26 13:55:01 +00:00
ClangTidyModuleRegistry.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyOptions.cpp Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
ClangTidyOptions.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
ClangTidyProfiling.cpp Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
ClangTidyProfiling.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExpandModularHeadersPPCallbacks.cpp clang/Modules: Rename CompilerInstance::ModuleManager, NFC 2019-11-22 18:24:11 -08:00
ExpandModularHeadersPPCallbacks.h Use FileEntryRef for PPCallbacks::HasInclude 2019-08-27 17:32:42 +00:00
GlobList.cpp Refactor GlobList from an ad-hoc linked list to a vector 2019-08-27 10:56:13 +00:00
GlobList.h Refactor GlobList from an ad-hoc linked list to a vector 2019-08-27 10:56:13 +00:00
add_new_check.py [clang-tidy] rename_check.py: maintain alphabetical order in Renamed checks section 2020-02-20 17:31:08 +00:00
rename_check.py [clang-tidy] rename_check.py: maintain alphabetical order in Renamed checks section 2020-02-20 17:31:08 +00:00