]> granicus.if.org Git - clang/commit
[Basic] Add a DiagnosticError llvm::ErrorInfo subclass
authorAlex Lorenz <arphaman@gmail.com>
Fri, 25 Aug 2017 15:48:00 +0000 (15:48 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 25 Aug 2017 15:48:00 +0000 (15:48 +0000)
commit494ef6fbebeba1d68dab968806e2e7adfd2788ec
tree9e085b6716bb9bae6791ce171187e5ad4377d9f8
parent59be67ffd0b5894009ed82658eab7c91792114f5
[Basic] Add a DiagnosticError llvm::ErrorInfo subclass

Clang's DiagnosticError is an llvm::Error payload that stores a partial
diagnostic and its location. I'll be using it in the refactoring engine.

Differential Revision: https://reviews.llvm.org/D36969

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311778 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticError.h [new file with mode: 0644]
lib/Basic/Diagnostic.cpp
unittests/Basic/DiagnosticTest.cpp