[PATCH] D36969: [Basic] Add a DiagnosticOr type

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 08:54:42 PDT 2017


arphaman created this revision.

Clang's `DiagnosticOr` type mimics the `Expected` type from LLVM. It either stores a partial diagnostic and its location or a value. I'll be using in https://reviews.llvm.org/D36075.


Repository:
  rL LLVM

https://reviews.llvm.org/D36969

Files:
  include/clang/Basic/DiagnosticOr.h
  unittests/Basic/DiagnosticTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36969.111990.patch
Type: text/x-patch
Size: 5532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170821/a98c8176/attachment.bin>


More information about the cfe-commits mailing list