|
clang
5.0.0
|
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 occured. More... | |
Public Attributes | |
| std::string | Message |
| std::string | FilePath |
| unsigned | FileOffset |
Represents the diagnostic message with the error message associated and the information on the location of the problem.
Definition at line 32 of file Diagnostic.h.
| clang::tooling::DiagnosticMessage::DiagnosticMessage | ( | llvm::StringRef | Message = "" | ) |
Definition at line 20 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 occured.
| Loc | Should be a file location, it is not meaningful for a macro location. |
Definition at line 23 of file Diagnostic.cpp.
References FileOffset, FilePath, clang::SourceManager::getFilename(), clang::SourceManager::getFileOffset(), clang::SourceLocation::isFileID(), and clang::SourceLocation::isValid().
| unsigned clang::tooling::DiagnosticMessage::FileOffset |
Definition at line 45 of file Diagnostic.h.
Referenced by DiagnosticMessage().
| std::string clang::tooling::DiagnosticMessage::FilePath |
Definition at line 44 of file Diagnostic.h.
Referenced by DiagnosticMessage().
| std::string clang::tooling::DiagnosticMessage::Message |
Definition at line 43 of file Diagnostic.h.
1.8.6