[PATCH] D41357: WIP: Fix Diagnostic layering, moving diagnostics out of Basic

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 11 09:58:21 PDT 2018


dblaikie updated this revision to Diff 142031.
dblaikie added a comment.

Finish functional prototype - this now does remove the dependency from Basic to the various other libraries.

There are still constants defining the range of each category of diagnostics that remain in Basic - not sure those can be removed, though.


Repository:
  rC Clang

https://reviews.llvm.org/D41357

Files:
  examples/clang-interpreter/CMakeLists.txt
  examples/clang-interpreter/main.cpp
  include/clang/ARCMigrate/ARCMT.h
  include/clang/Basic/AllDiagnostics.h
  include/clang/Basic/Diagnostic.h
  include/clang/Basic/DiagnosticCommonKinds.td
  include/clang/Basic/DiagnosticIDs.h
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/CrossTU/CrossTranslationUnit.h
  include/clang/Frontend/CompilerInstance.h
  include/clang/Frontend/LogDiagnosticPrinter.h
  include/clang/Frontend/SerializedDiagnosticPrinter.h
  include/clang/Frontend/TextDiagnosticPrinter.h
  include/clang/Frontend/Utils.h
  include/clang/FrontendTool/AllDiagnostics.h
  include/clang/FrontendTool/DiagnosticTable.h
  include/clang/module.modulemap
  lib/ARCMigrate/ARCMT.cpp
  lib/ARCMigrate/ARCMTActions.cpp
  lib/ARCMigrate/Internals.h
  lib/ARCMigrate/ObjCMT.cpp
  lib/ARCMigrate/PlistReporter.cpp
  lib/Basic/Diagnostic.cpp
  lib/Basic/DiagnosticIDs.cpp
  lib/Basic/Warnings.cpp
  lib/CrossTU/CrossTranslationUnit.cpp
  lib/Driver/Driver.cpp
  lib/Format/CMakeLists.txt
  lib/Format/TokenAnalyzer.cpp
  lib/Frontend/ChainedIncludesSource.cpp
  lib/Frontend/CompilerInstance.cpp
  lib/Frontend/CreateInvocationFromCommandLine.cpp
  lib/Frontend/LogDiagnosticPrinter.cpp
  lib/Frontend/Rewrite/FrontendActions.cpp
  lib/Frontend/SerializedDiagnosticPrinter.cpp
  lib/Frontend/TextDiagnosticPrinter.cpp
  lib/FrontendTool/CMakeLists.txt
  lib/FrontendTool/DiagnosticTable.cpp
  lib/Sema/Sema.cpp
  lib/Serialization/ASTReader.cpp
  lib/StaticAnalyzer/Core/CallEvent.cpp
  lib/StaticAnalyzer/Frontend/ModelInjector.cpp
  lib/Tooling/CMakeLists.txt
  lib/Tooling/CompilationDatabase.cpp
  lib/Tooling/Core/CMakeLists.txt
  lib/Tooling/Core/Replacement.cpp
  lib/Tooling/Refactoring.cpp
  lib/Tooling/Tooling.cpp
  tools/arcmt-test/CMakeLists.txt
  tools/arcmt-test/arcmt-test.cpp
  tools/c-index-test/CMakeLists.txt
  tools/c-index-test/core_main.cpp
  tools/clang-check/CMakeLists.txt
  tools/clang-format/CMakeLists.txt
  tools/clang-format/ClangFormat.cpp
  tools/clang-fuzzer/handle-cxx/CMakeLists.txt
  tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
  tools/clang-import-test/CMakeLists.txt
  tools/clang-import-test/clang-import-test.cpp
  tools/clang-rename/ClangRename.cpp
  tools/diagtool/CMakeLists.txt
  tools/diagtool/DiagnosticNames.cpp
  tools/diagtool/FindDiagnosticID.cpp
  tools/diagtool/ListWarnings.cpp
  tools/diagtool/ShowEnabledWarnings.cpp
  tools/diagtool/TreeView.cpp
  tools/driver/cc1_main.cpp
  tools/driver/cc1as_main.cpp
  tools/driver/cc1gen_reproducer_main.cpp
  tools/driver/driver.cpp
  tools/libclang/ARCMigrate.cpp
  tools/libclang/CIndex.cpp
  tools/libclang/CIndexCodeCompletion.cpp
  tools/libclang/CIndexDiagnostic.cpp
  tools/libclang/CMakeLists.txt
  tools/libclang/CXStoredDiagnostic.cpp
  tools/libclang/Indexing.cpp
  unittests/AST/ASTVectorTest.cpp
  unittests/AST/CommentLexer.cpp
  unittests/AST/CommentParser.cpp
  unittests/AST/ExternalASTSourceTest.cpp
  unittests/Basic/CMakeLists.txt
  unittests/Basic/DiagnosticTest.cpp
  unittests/Basic/SourceManagerTest.cpp
  unittests/CodeGen/BufferSourceTest.cpp
  unittests/CodeGen/CMakeLists.txt
  unittests/CodeGen/CodeGenExternalTest.cpp
  unittests/CodeGen/IncrementalProcessingTest.cpp
  unittests/CodeGen/TBAAMetadataTest.cpp
  unittests/CrossTU/CrossTranslationUnitTest.cpp
  unittests/Driver/CMakeLists.txt
  unittests/Driver/ToolChainTest.cpp
  unittests/Format/CMakeLists.txt
  unittests/Frontend/ASTUnitTest.cpp
  unittests/Frontend/CodeGenActionTest.cpp
  unittests/Frontend/CompilerInstanceTest.cpp
  unittests/Frontend/FrontendActionTest.cpp
  unittests/Frontend/OutputStreamTest.cpp
  unittests/Frontend/PCHPreambleTest.cpp
  unittests/Lex/CMakeLists.txt
  unittests/Lex/HeaderSearchTest.cpp
  unittests/Lex/LexerTest.cpp
  unittests/Lex/PPCallbacksTest.cpp
  unittests/Lex/PPConditionalDirectiveRecordTest.cpp
  unittests/Rename/CMakeLists.txt
  unittests/Tooling/CMakeLists.txt
  unittests/Tooling/RewriterTestContext.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41357.142031.patch
Type: text/x-patch
Size: 161149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180411/09e5a317/attachment-0001.bin>


More information about the cfe-commits mailing list