This patch creates the clangDriverDiagnostics library. clangDriver and
Flang driver are ported to use this new library instead of clangBasic
for diagnostics.
DON'T REVIEW: This is a proof-of-concept implementation to aid the
discussion on cfe-dev:
Your feedback is more than welcome, but please keep in mind this patch
is only submitted here to demonstrate an idea. The implementation requires
a lot more work.
To build and test:
cmake -GNinja -DLLVM_TARGETS_TO_BUILD=host \ -DCMAKE_CXX_STANDARD=17 \ -DFLANG_BUILD_NEW_DRIVER=ON \ -DCMAKE_BUILD_TYPE=Release\ -DLLVM_ENABLE_PROJECTS="clang;flang" \ -DBUILD_SHARED_LIBS=On \ <llvm-project-root-dir>/llvm; ninja check-flang
clang-format suggested style edits found: