Remove llvm::Error include form Diagnostic.h
authorReid Kleckner <rnk@google.com>
Mon, 6 Apr 2020 17:32:16 +0000 (10:32 -0700)
committerReid Kleckner <rnk@google.com>
Mon, 6 Apr 2020 17:42:17 +0000 (10:42 -0700)
commit76221c734eac81387f772aca9299f10a7c921bda
treeebef6c56e9c3010d50339bd409ae0fe6b8fa241c
parentd3df2da4a94caf070aaec69096732ce6f305f53d
Remove llvm::Error include form Diagnostic.h

Saves ~400 related LLVM ADT. llvm/ADT/Error.h takes 90ms to parse.

$ diff -u <(sort thedeps-before.txt) <(sort thedeps-after.txt) \
    | grep '^[-+] ' | sort | uniq -c | sort -nr
    403 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Error.h
    403 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm-c/Error.h
    397 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Format.h
    397 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Debug.h
    377 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/StringExtras.h
    158 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm-c/ExternC.h
    138 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/ErrorOr.h
     13 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/raw_ostream.h
     13 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/SmallString.h
      5 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/Twine.h
14 files changed:
clang-tools-extra/clang-include-fixer/find-all-symbols/PathConfig.cpp
clang/include/clang/Basic/Diagnostic.h
clang/include/clang/Tooling/Refactoring/ASTSelection.h
clang/lib/AST/ExprConstant.cpp
clang/lib/AST/Interp/Disasm.cpp
clang/lib/Basic/Diagnostic.cpp
clang/lib/Lex/LiteralSupport.cpp
clang/lib/Sema/CodeCompleteConsumer.cpp
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/lib/StaticAnalyzer/Checkers/FuchsiaHandleChecker.cpp
clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp
clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
clang/lib/Tooling/Transformer/SourceCode.cpp