llvm-project/clang-tools-extra/clang-tidy/utils
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
..
ASTUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ASTUtils.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Factor out renaming logic from readability-identifier-naming 2020-01-16 16:34:56 -05:00
DeclRefExprUtils.cpp [NFC] Fixes -Wrange-loop-analysis warnings 2020-01-01 20:01:37 +01:00
DeclRefExprUtils.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
ExceptionAnalyzer.cpp [NFC] Fixes -Wrange-loop-analysis warnings 2020-01-01 20:01:37 +01:00
ExceptionAnalyzer.h NFC: Fix trivial typos in comments 2020-01-04 10:28:41 -05:00
ExprSequence.cpp [AST] Split parent map traversal logic into ParentMapContext.h 2020-01-24 13:42:28 -08:00
ExprSequence.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FixItHintUtils.cpp Fix MSVC "not all control paths return a value" warning. NFCI. 2020-01-06 10:20:20 +00:00
FixItHintUtils.h [clang-tidy] implement utility-function to add 'const' to variables 2020-01-03 20:37:47 +01:00
HeaderFileExtensionsUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
HeaderFileExtensionsUtils.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
HeaderGuard.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
HeaderGuard.h [clang-tidy] Move all checks to the new registerPPCallbacks API 2019-03-22 18:58:12 +00:00
IncludeInserter.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
IncludeInserter.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
IncludeSorter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IncludeSorter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LexerUtils.cpp Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
LexerUtils.h [clang-tidy] implement utility-function to add 'const' to variables 2020-01-03 20:37:47 +01:00
Matchers.h [clang-tidy] New checker performance-trivially-destructible-check 2019-11-01 16:16:49 +01:00
NamespaceAliaser.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
NamespaceAliaser.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OptionsUtils.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
OptionsUtils.h Remove \brief commands from doxygen comments. 2019-08-22 11:32:57 +00:00
RenamerClangTidyCheck.cpp [NFC] small refactor on RenamerClangTidyCheck.cpp 2020-01-30 17:32:06 +00:00
RenamerClangTidyCheck.h Factor out renaming logic from readability-identifier-naming 2020-01-16 16:34:56 -05:00
TransformerClangTidyCheck.cpp [libTooling] Further simplify `Stencil` type and introduce `MatchComputation`. 2019-11-11 12:44:15 -05:00
TransformerClangTidyCheck.h [clang-tidy] Update TransformerClangTidyCheck to use new Transformer bindings. 2019-11-06 10:13:33 -05:00
TypeTraits.cpp [clang-tidy] New checker performance-trivially-destructible-check 2019-11-01 16:16:49 +01:00
TypeTraits.h [clang-tidy] New checker performance-trivially-destructible-check 2019-11-01 16:16:49 +01:00
UsingInserter.cpp [ASTMatchers] StringRef'ify hasName 2020-01-29 10:53:08 +01:00
UsingInserter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00