clang 22.0.0git
clang::StandaloneDiagnostic Struct Reference

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< SourceOffsetRangeRanges
std::vector< StandaloneFixItFixIts

Detailed Description

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.

Constructor & Destructor Documentation

◆ StandaloneDiagnostic()

Member Data Documentation

◆ FileKind

SrcMgr::CharacteristicKind clang::StandaloneDiagnostic::FileKind

Definition at line 61 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().

◆ Filename

std::string clang::StandaloneDiagnostic::Filename

Definition at line 65 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().

◆ FileOffset

unsigned clang::StandaloneDiagnostic::FileOffset = 0

Definition at line 63 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().

◆ FixIts

std::vector<StandaloneFixIt> clang::StandaloneDiagnostic::FixIts

Definition at line 67 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().

◆ ID

unsigned clang::StandaloneDiagnostic::ID = 0

Definition at line 62 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().

◆ Level

DiagnosticsEngine::Level clang::StandaloneDiagnostic::Level

Definition at line 60 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().

◆ Message

std::string clang::StandaloneDiagnostic::Message

Definition at line 64 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().

◆ Ranges

std::vector<SourceOffsetRange> clang::StandaloneDiagnostic::Ranges

Definition at line 66 of file StandaloneDiagnostic.h.

Referenced by StandaloneDiagnostic(), and clang::translateStandaloneDiag().


The documentation for this struct was generated from the following files: