clang: clang::tooling::ReplacementError Class Reference (original) (raw)
Carries extra error information in replacement-related llvm::Error, e.g. More...
#include "[clang/Tooling/Core/Replacement.h](Replacement%5F8h%5Fsource.html)"
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.
◆ ReplacementError() [2/3]
Constructs an error related to an existing replacement.
Definition at line 159 of file Replacement.h.
◆ ReplacementError() [3/3]
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.
◆ get()
◆ getExistingReplacement()
const std::optional< Replacement > & clang::tooling::ReplacementError::getExistingReplacement ( ) const | inline |
---|
◆ getNewReplacement()
const std::optional< Replacement > & clang::tooling::ReplacementError::getNewReplacement ( ) const | inline |
---|
◆ log()
void clang::tooling::ReplacementError::log ( raw_ostream & OS) const | inlineoverride |
---|
◆ message()
std::string ReplacementError::message ( ) const | override |
---|
◆ ID
char ReplacementError::ID = 0 | static |
---|
The documentation for this class was generated from the following files:
- include/clang/Tooling/Core/Replacement.h
- lib/Tooling/Core/Replacement.cpp