[PATCH] D78658: [clang][Frontend] Add missing error handling

LemonBoy via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 22 11:58:22 PDT 2020


LemonBoy created this revision.
LemonBoy added a reviewer: rsmith.
LemonBoy added a project: clang.
Herald added a subscriber: cfe-commits.

Some early errors during the ASTUnit creation were not transferred to the `FailedParseDiagnostic` so when the code in `LoadFromCommandLine` swaps its content with the content of `StoredDiagnostics` they cannot be retrieved by the user in any way.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78658

Files:
  clang/lib/Frontend/ASTUnit.cpp
  clang/unittests/Frontend/ASTUnitTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78658.259344.patch
Type: text/x-patch
Size: 3769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200422/0c544a52/attachment.bin>


More information about the cfe-commits mailing list