[PATCH] D100644: [clang][cli] NFC: Use Diags to report parsing success/failure

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 16 06:39:47 PDT 2021


jansvoboda11 created this revision.
jansvoboda11 added reviewers: Bigcheese, dexonsmith.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

`Success` is set to `false` whenever `Diags.Report(diag::err_)` is called. Remove the duplication and use `Diags` as the source of truth when deciding whether to report parsing success/failure.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100644

Files:
  clang/lib/Frontend/CompilerInvocation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100644.338088.patch
Type: text/x-patch
Size: 33067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210416/9a49a312/attachment-0001.bin>


More information about the cfe-commits mailing list