class DelayedDiagnostic

Declaration

class DelayedDiagnostic { /* full declaration omitted */ };

Description

A diagnostic message which has been conditionally emitted pending the complete parsing of the current declaration.

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:124

Member Variables

public clang::sema::DelayedDiagnostic::DDKind Kind
public bool Triggered
public clang::SourceLocation Loc
private anonymous struct / union

Method Overview

Methods

void Destroy()

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:133

clang::sema::AccessedEntity& getAccessData()

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:168

const clang::sema::AccessedEntity& getAccessData()
    const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:172

llvm::StringRef getAvailabilityMessage() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:186

const clang::NamedDecl*
getAvailabilityOffendingDecl() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:182

const clang::NamedDecl*
getAvailabilityReferringDecl() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:177

clang::AvailabilityResult getAvailabilityResult()
    const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:197

ArrayRef<clang::SourceLocation>
getAvailabilitySelectorLocs() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:191

unsigned int getForbiddenTypeArgument() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:211

unsigned int getForbiddenTypeDiagnostic() const

Description

The diagnostic ID to emit. Used like so: Diag(diag.Loc, diag.getForbiddenTypeDiagnostic()) < < diag.getForbiddenTypeOperand() < < diag.getForbiddenTypeArgument();

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:206

clang::QualType getForbiddenTypeOperand() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:216

const clang::ObjCPropertyDecl* getObjCProperty()
    const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:225

bool getObjCPropertyAccess() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:229

const clang::ObjCInterfaceDecl*
getUnknownObjCClass() const

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:221

static clang::sema::DelayedDiagnostic makeAccess(
    clang::SourceLocation Loc,
    const clang::sema::AccessedEntity& Entity)

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:144

Parameters

clang::SourceLocation Loc
const clang::sema::AccessedEntity& Entity

static clang::sema::DelayedDiagnostic
makeAvailability(
    clang::AvailabilityResult AR,
    ArrayRef<clang::SourceLocation> Locs,
    const clang::NamedDecl* ReferringDecl,
    const clang::NamedDecl* OffendingDecl,
    const clang::ObjCInterfaceDecl*
        UnknownObjCClass,
    const clang::ObjCPropertyDecl* ObjCProperty,
    llvm::StringRef Msg,
    bool ObjCPropertyAccess)

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:135

Parameters

clang::AvailabilityResult AR
ArrayRef<clang::SourceLocation> Locs
const clang::NamedDecl* ReferringDecl
const clang::NamedDecl* OffendingDecl
const clang::ObjCInterfaceDecl* UnknownObjCClass
const clang::ObjCPropertyDecl* ObjCProperty
llvm::StringRef Msg
bool ObjCPropertyAccess

static clang::sema::DelayedDiagnostic
makeForbiddenType(clang::SourceLocation loc,
                  unsigned int diagnostic,
                  clang::QualType type,
                  unsigned int argument)

Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:154

Parameters

clang::SourceLocation loc
unsigned int diagnostic
clang::QualType type
unsigned int argument