Go to the documentation of this file.
9 #ifndef LLDB_EXPRESSION_DIAGNOSTICMANAGER_H
10 #define LLDB_EXPRESSION_DIAGNOSTICMANAGER_H
15 #include "llvm/ADT/STLExtras.h"
16 #include "llvm/ADT/StringRef.h"
78 bool precede_with_newline =
true) {
79 if (precede_with_newline)
104 [](
const std::unique_ptr<Diagnostic> &diag) {
105 return diag->HasFixIts();
113 std::make_unique<Diagnostic>(
message, severity, origin, compiler_id));
121 __attribute__((format(printf, 3, 4)));
151 #endif // LLDB_EXPRESSION_DIAGNOSTICMANAGER_H
void AppendMessage(llvm::StringRef message, bool precede_with_newline=true)
Diagnostic(llvm::StringRef message, DiagnosticSeverity severity, DiagnosticOrigin origin, uint32_t compiler_id)
const std::string & GetFixedExpression()
std::string m_fixed_expression
DiagnosticList m_diagnostics
virtual ~Diagnostic()=default
Diagnostic(const Diagnostic &rhs)
uint32_t GetCompilerID() const
@ eDiagnosticSeverityWarning
std::string GetString(char separator='\n')
@ eDiagnosticSeverityError
void AddDiagnostic(std::unique_ptr< Diagnostic > diagnostic)
std::vector< std::unique_ptr< Diagnostic > > DiagnosticList
void SetFixedExpression(std::string fixed_expression)
@ eDiagnosticSeverityRemark
DiagnosticSeverity GetSeverity() const
llvm::StringRef GetMessage() const
string(SUBSTRING ${p} 10 -1 pStripped) if($
DiagnosticSeverity m_severity
const DiagnosticList & Diagnostics()
DiagnosticOrigin getKind() const
message(FATAL_ERROR "invalid libipt include path provided") endif() include_directories($
void AppendMessageToDiagnostic(llvm::StringRef str)
size_t void PutString(DiagnosticSeverity severity, llvm::StringRef str)
@ eDiagnosticOriginUnknown
const uint32_t LLDB_INVALID_COMPILER_ID
DiagnosticOrigin m_origin
static bool classof(const Diagnostic *diag)
virtual bool HasFixIts() const
A class that represents a running process on the host machine.
void AddDiagnostic(llvm::StringRef message, DiagnosticSeverity severity, DiagnosticOrigin origin, uint32_t compiler_id=LLDB_INVALID_COMPILER_ID)
size_t Printf(DiagnosticSeverity severity, const char *format,...) __attribute__((format(printf