[PATCH] D50716: [Support] Add a basic C API for llvm::Error.

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 14 09:06:08 PDT 2018


lhames created this revision.
lhames added reviewers: bogner, zturner, labath, dblaikie.
Herald added a subscriber: llvm-commits.

The C-API supports consuming errors, converting an error to a string error
message, and querying an error's type. Other LLVM C APIs that wish to use
llvm::Error can supply error-type-id checkers and custom
error-to-structured-type converters for any custom errors they provide.


Repository:
  rL LLVM

https://reviews.llvm.org/D50716

Files:
  include/llvm/Support/Error.h
  lib/Support/Error.cpp
  unittests/Support/ErrorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50716.160608.patch
Type: text/x-patch
Size: 3272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180814/adfa8710/attachment.bin>


More information about the llvm-commits mailing list