|
clang 22.0.0git
|
Represents a StoredDiagnostic in a form that can be retained until after its SourceManager has been destroyed. More...
#include "clang/Frontend/StandaloneDiagnostic.h"
Classes | |
| struct | SourceOffsetRange |
| Represents a CharSourceRange within a StandaloneDiagnostic. More... | |
| struct | StandaloneFixIt |
| Represents a FixItHint within a StandaloneDiagnostic. More... | |
Public Member Functions | |
| StandaloneDiagnostic (const LangOptions &LangOpts, const StoredDiagnostic &InDiag) | |
Public Attributes | |
| DiagnosticsEngine::Level | Level |
| SrcMgr::CharacteristicKind | FileKind |
| unsigned | ID = 0 |
| unsigned | FileOffset = 0 |
| std::string | Message |
| std::string | Filename |
| std::vector< SourceOffsetRange > | Ranges |
| std::vector< StandaloneFixIt > | FixIts |
Represents a StoredDiagnostic in a form that can be retained until after its SourceManager has been destroyed.
Source locations are stored as a combination of filename and offsets into that file. To report the diagnostic, it must first be translated back into a StoredDiagnostic with a new associated SourceManager.
Definition at line 36 of file StandaloneDiagnostic.h.
| clang::StandaloneDiagnostic::StandaloneDiagnostic | ( | const LangOptions & | LangOpts, |
| const StoredDiagnostic & | InDiag ) |
Definition at line 30 of file StandaloneDiagnostic.cpp.
References FileKind, Filename, FileOffset, FixIts, clang::for(), clang::StoredDiagnostic::getFixIts(), clang::StoredDiagnostic::getLocation(), clang::FullSourceLoc::getManager(), clang::StoredDiagnostic::getRanges(), ID, clang::SourceLocation::isInvalid(), Level, Message, and Ranges.
| SrcMgr::CharacteristicKind clang::StandaloneDiagnostic::FileKind |
Definition at line 61 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().
| std::string clang::StandaloneDiagnostic::Filename |
Definition at line 65 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().
| unsigned clang::StandaloneDiagnostic::FileOffset = 0 |
Definition at line 63 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().
| std::vector<StandaloneFixIt> clang::StandaloneDiagnostic::FixIts |
Definition at line 67 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().
| unsigned clang::StandaloneDiagnostic::ID = 0 |
Definition at line 62 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().
| DiagnosticsEngine::Level clang::StandaloneDiagnostic::Level |
Definition at line 60 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().
| std::string clang::StandaloneDiagnostic::Message |
Definition at line 64 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().
| std::vector<SourceOffsetRange> clang::StandaloneDiagnostic::Ranges |
Definition at line 66 of file StandaloneDiagnostic.h.
Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().