clang 20.0.0git
|
Carries extra error information in replacement-related llvm::Error, e.g. More...
#include "clang/Tooling/Core/Replacement.h"
Public Member Functions | |
ReplacementError (replacement_error Err) | |
ReplacementError (replacement_error Err, Replacement Existing) | |
Constructs an error related to an existing replacement. | |
ReplacementError (replacement_error Err, Replacement New, Replacement Existing) | |
Constructs an error related to a new replacement and an existing replacement in a set of replacements. | |
std::string | message () const override |
void | log (raw_ostream &OS) const override |
replacement_error | get () const |
const std::optional< Replacement > & | getNewReplacement () const |
const std::optional< Replacement > & | getExistingReplacement () const |
Static Public Attributes | |
static char | ID = 0 |
Carries extra error information in replacement-related llvm::Error, e.g.
fail applying replacements and replacements conflict.
Definition at line 154 of file Replacement.h.
|
inline |
Definition at line 156 of file Replacement.h.
|
inline |
Constructs an error related to an existing replacement.
Definition at line 159 of file Replacement.h.
|
inline |
Constructs an error related to a new replacement and an existing replacement in a set of replacements.
Definition at line 164 of file Replacement.h.
|
inline |
Definition at line 172 of file Replacement.h.
Referenced by clang::tooling::AtomicChange::insert().
|
inline |
Definition at line 180 of file Replacement.h.
Referenced by clang::tooling::AtomicChange::insert().
|
inline |
Definition at line 176 of file Replacement.h.
|
inlineoverride |
Definition at line 170 of file Replacement.h.
References message().
|
override |
Definition at line 181 of file Replacement.cpp.
References getReplacementErrString().
Referenced by log().
|
static |
Definition at line 174 of file Replacement.h.