clang 20.0.0git
|
Represents the diagnostic message with the error message associated and the information on the location of the problem. More...
#include "clang/Tooling/Core/Diagnostic.h"
Public Member Functions | |
DiagnosticMessage (llvm::StringRef Message="") | |
DiagnosticMessage (llvm::StringRef Message, const SourceManager &Sources, SourceLocation Loc) | |
Constructs a diagnostic message with anoffset to the diagnostic within the file where the problem occurred. | |
Public Attributes | |
std::string | Message |
std::string | FilePath |
unsigned | FileOffset |
llvm::StringMap< Replacements > | Fix |
Fixes for this diagnostic, grouped by file path. | |
llvm::SmallVector< FileByteRange, 1 > | Ranges |
Extra source ranges associated with the note, in addition to the location of the Message itself. | |
Represents the diagnostic message with the error message associated and the information on the location of the problem.
Definition at line 42 of file Diagnostic.h.
clang::tooling::DiagnosticMessage::DiagnosticMessage | ( | llvm::StringRef | Message = "" | ) |
Definition at line 21 of file Diagnostic.cpp.
clang::tooling::DiagnosticMessage::DiagnosticMessage | ( | llvm::StringRef | Message, |
const SourceManager & | Sources, | ||
SourceLocation | Loc | ||
) |
Constructs a diagnostic message with anoffset to the diagnostic within the file where the problem occurred.
Loc | Should be a file location, it is not meaningful for a macro location. |
Definition at line 24 of file Diagnostic.cpp.
References FileOffset, FilePath, clang::SourceManager::getFilename(), clang::SourceManager::getFileOffset(), and Loc.
unsigned clang::tooling::DiagnosticMessage::FileOffset |
Definition at line 56 of file Diagnostic.h.
Referenced by DiagnosticMessage(), and llvm::yaml::MappingTraits< clang::tooling::DiagnosticMessage >::mapping().
std::string clang::tooling::DiagnosticMessage::FilePath |
Definition at line 55 of file Diagnostic.h.
Referenced by DiagnosticMessage(), and llvm::yaml::MappingTraits< clang::tooling::DiagnosticMessage >::mapping().
llvm::StringMap<Replacements> clang::tooling::DiagnosticMessage::Fix |
Fixes for this diagnostic, grouped by file path.
Definition at line 59 of file Diagnostic.h.
Referenced by llvm::yaml::MappingTraits< clang::tooling::DiagnosticMessage >::mapping().
std::string clang::tooling::DiagnosticMessage::Message |
Definition at line 54 of file Diagnostic.h.
Referenced by llvm::yaml::MappingTraits< clang::tooling::DiagnosticMessage >::mapping().
llvm::SmallVector<FileByteRange, 1> clang::tooling::DiagnosticMessage::Ranges |
Extra source ranges associated with the note, in addition to the location of the Message itself.
Definition at line 63 of file Diagnostic.h.
Referenced by llvm::yaml::MappingTraits< clang::tooling::DiagnosticMessage >::mapping().