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
- public void Destroy()
- public clang::sema::AccessedEntity & getAccessData()
- public const clang::sema::AccessedEntity & getAccessData() const
- public llvm::StringRef getAvailabilityMessage() const
- public const clang::NamedDecl * getAvailabilityOffendingDecl() const
- public const clang::NamedDecl * getAvailabilityReferringDecl() const
- public clang::AvailabilityResult getAvailabilityResult() const
- public ArrayRef<clang::SourceLocation> getAvailabilitySelectorLocs() const
- public unsigned int getForbiddenTypeArgument() const
- public unsigned int getForbiddenTypeDiagnostic() const
- public clang::QualType getForbiddenTypeOperand() const
- public const clang::ObjCPropertyDecl * getObjCProperty() const
- public bool getObjCPropertyAccess() const
- public const clang::ObjCInterfaceDecl * getUnknownObjCClass() const
- public static clang::sema::DelayedDiagnostic makeAccess(clang::SourceLocation Loc, const clang::sema::AccessedEntity & Entity)
- public 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)
- public static clang::sema::DelayedDiagnostic makeForbiddenType(clang::SourceLocation loc, unsigned int diagnostic, clang::QualType type, unsigned int argument)
Methods
¶void Destroy()
void Destroy()
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:133
¶clang::sema::AccessedEntity& getAccessData()
clang::sema::AccessedEntity& getAccessData()
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:168
¶const clang::sema::AccessedEntity& getAccessData()
const
const clang::sema::AccessedEntity& getAccessData()
const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:172
¶llvm::StringRef getAvailabilityMessage() const
llvm::StringRef getAvailabilityMessage() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:186
¶const clang::NamedDecl*
getAvailabilityOffendingDecl() const
const clang::NamedDecl*
getAvailabilityOffendingDecl() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:182
¶const clang::NamedDecl*
getAvailabilityReferringDecl() const
const clang::NamedDecl*
getAvailabilityReferringDecl() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:177
¶clang::AvailabilityResult getAvailabilityResult()
const
clang::AvailabilityResult getAvailabilityResult()
const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:197
¶ArrayRef<clang::SourceLocation>
getAvailabilitySelectorLocs() const
ArrayRef<clang::SourceLocation>
getAvailabilitySelectorLocs() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:191
¶unsigned int getForbiddenTypeArgument() const
unsigned int getForbiddenTypeArgument() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:211
¶unsigned int getForbiddenTypeDiagnostic() const
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
clang::QualType getForbiddenTypeOperand() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:216
¶const clang::ObjCPropertyDecl* getObjCProperty()
const
const clang::ObjCPropertyDecl* getObjCProperty()
const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:225
¶bool getObjCPropertyAccess() const
bool getObjCPropertyAccess() const
Declared at: clang/include/clang/Sema/DelayedDiagnostic.h:229
¶const clang::ObjCInterfaceDecl*
getUnknownObjCClass() const
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)
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)
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)
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