[PATCH] D99353: [driver] Make `clang` warn rather then error on `flang` options

Andrzej Warzynski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 5 09:00:52 PDT 2021


awarzynski updated this revision to Diff 335270.
awarzynski added a comment.
Herald added subscribers: jansvoboda11, dang.

Refine the behaviour when using diag options and add tests

- `-Werror` will now elevate the warning generated here to an error. This is consistent with `gcc`. To this end I had to create a new diagnostic in DiagnosticDriverKinds.td.
- Added tests for the logic implemented here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99353/new/

https://reviews.llvm.org/D99353

Files:
  clang/include/clang/Basic/DiagnosticDriverKinds.td
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/Driver.cpp
  clang/test/Driver/flang-only-option-diags.c
  clang/test/Driver/flang-only-options.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99353.335270.patch
Type: text/x-patch
Size: 12907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210405/cf75cbfd/attachment.bin>


More information about the cfe-commits mailing list