This is an archive of the discontinued LLVM Phabricator instance.

PROOF-OF-CONCEPT: Add new diagnostics classes for clangDriver
Needs ReviewPublic

Authored by awarzynski on Nov 24 2020, 6:28 AM.

Details

Reviewers
jdoerfert
Summary

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

Diff Detail

Event Timeline

awarzynski created this revision.Nov 24 2020, 6:28 AM
awarzynski requested review of this revision.Nov 24 2020, 6:28 AM
awarzynski edited the summary of this revision. (Show Details)Nov 24 2020, 7:41 AM