clang
3.9.0
|
A diagnostic message which has been conditionally emitted pending the complete parsing of the current declaration. More...
#include <DelayedDiagnostic.h>
Public Types | |
enum | DDKind { Deprecation, Unavailable, Access, ForbiddenType } |
Public Member Functions | |
void | Destroy () |
AccessedEntity & | getAccessData () |
const AccessedEntity & | getAccessData () const |
const NamedDecl * | getDeprecationDecl () const |
StringRef | getDeprecationMessage () const |
unsigned | getForbiddenTypeDiagnostic () const |
The diagnostic ID to emit. More... | |
unsigned | getForbiddenTypeArgument () const |
QualType | getForbiddenTypeOperand () const |
const ObjCInterfaceDecl * | getUnknownObjCClass () const |
const ObjCPropertyDecl * | getObjCProperty () const |
bool | getObjCPropertyAccess () const |
Static Public Member Functions | |
static DelayedDiagnostic | makeAvailability (Sema::AvailabilityDiagnostic AD, SourceLocation Loc, const NamedDecl *D, const ObjCInterfaceDecl *UnknownObjCClass, const ObjCPropertyDecl *ObjCProperty, StringRef Msg, bool ObjCPropertyAccess) |
static DelayedDiagnostic | makeAccess (SourceLocation Loc, const AccessedEntity &Entity) |
static DelayedDiagnostic | makeForbiddenType (SourceLocation loc, unsigned diagnostic, QualType type, unsigned argument) |
Public Attributes | |
unsigned char | Kind |
bool | Triggered |
SourceLocation | Loc |
struct DD | DeprecationData |
Deprecation. More... | |
struct FTD | ForbiddenTypeData |
char | AccessData [sizeof(AccessedEntity)] |
Access control. More... | |
A diagnostic message which has been conditionally emitted pending the complete parsing of the current declaration.
Definition at line 114 of file DelayedDiagnostic.h.
Enumerator | |
---|---|
Deprecation | |
Unavailable | |
Access | |
ForbiddenType |
Definition at line 116 of file DelayedDiagnostic.h.
void DelayedDiagnostic::Destroy | ( | ) |
Definition at line 58 of file DelayedDiagnostic.cpp.
References Access, Deprecation, DeprecationData, ForbiddenType, getAccessData(), and Unavailable.
|
inline |
Definition at line 158 of file DelayedDiagnostic.h.
References Access, and AccessData.
Referenced by Destroy(), clang::Sema::HandleDelayedAccessCheck(), and makeAccess().
|
inline |
Definition at line 162 of file DelayedDiagnostic.h.
References Access, and AccessData.
|
inline |
Definition at line 167 of file DelayedDiagnostic.h.
References Deprecation, DeprecationData, and Unavailable.
Referenced by handleDelayedAvailabilityCheck().
|
inline |
Definition at line 173 of file DelayedDiagnostic.h.
References Deprecation, DeprecationData, and Unavailable.
Referenced by handleDelayedAvailabilityCheck().
|
inline |
Definition at line 189 of file DelayedDiagnostic.h.
References ForbiddenType, and ForbiddenTypeData.
Referenced by handleDelayedForbiddenType().
|
inline |
The diagnostic ID to emit.
Used like so: Diag(diag.Loc, diag.getForbiddenTypeDiagnostic()) << diag.getForbiddenTypeOperand() << diag.getForbiddenTypeArgument();
Definition at line 184 of file DelayedDiagnostic.h.
References ForbiddenType, and ForbiddenTypeData.
Referenced by handleDelayedForbiddenType(), and isForbiddenTypeAllowed().
|
inline |
Definition at line 194 of file DelayedDiagnostic.h.
References ForbiddenType, ForbiddenTypeData, and clang::QualType::getFromOpaquePtr().
Referenced by handleDelayedForbiddenType().
|
inline |
Definition at line 203 of file DelayedDiagnostic.h.
References DeprecationData.
Referenced by handleDelayedAvailabilityCheck().
|
inline |
Definition at line 207 of file DelayedDiagnostic.h.
References DeprecationData.
|
inline |
Definition at line 199 of file DelayedDiagnostic.h.
References DeprecationData.
Referenced by handleDelayedAvailabilityCheck().
|
inlinestatic |
Definition at line 134 of file DelayedDiagnostic.h.
References Access, getAccessData(), Kind, Loc, and Triggered.
Referenced by CheckAccess().
|
static |
Definition at line 23 of file DelayedDiagnostic.cpp.
References clang::Sema::AD_Deprecation, clang::Sema::AD_Partial, clang::Sema::AD_Unavailable, Deprecation, DeprecationData, Kind, Loc, Triggered, and Unavailable.
Referenced by clang::Sema::EmitAvailabilityWarning().
|
inlinestatic |
Definition at line 144 of file DelayedDiagnostic.h.
References ForbiddenType, ForbiddenTypeData, clang::QualType::getAsOpaquePtr(), Kind, Loc, and Triggered.
Referenced by clang::Sema::CheckParameter(), handleObjCOwnershipTypeAttr(), and inferARCLifetimeForPointee().
char clang::sema::DelayedDiagnostic::AccessData[sizeof(AccessedEntity)] |
struct DD clang::sema::DelayedDiagnostic::DeprecationData |
Deprecation.
Definition at line 230 of file DelayedDiagnostic.h.
Referenced by Destroy(), getDeprecationDecl(), getDeprecationMessage(), getObjCProperty(), getObjCPropertyAccess(), getUnknownObjCClass(), and makeAvailability().
struct FTD clang::sema::DelayedDiagnostic::ForbiddenTypeData |
Definition at line 231 of file DelayedDiagnostic.h.
Referenced by getForbiddenTypeArgument(), getForbiddenTypeDiagnostic(), getForbiddenTypeOperand(), and makeForbiddenType().
unsigned char clang::sema::DelayedDiagnostic::Kind |
Definition at line 118 of file DelayedDiagnostic.h.
Referenced by handleDelayedAvailabilityCheck(), makeAccess(), makeAvailability(), makeForbiddenType(), and clang::Sema::PopParsingDeclaration().
SourceLocation clang::sema::DelayedDiagnostic::Loc |
Definition at line 121 of file DelayedDiagnostic.h.
Referenced by clang::Sema::HandleDelayedAccessCheck(), handleDelayedAvailabilityCheck(), handleDelayedForbiddenType(), makeAccess(), makeAvailability(), and makeForbiddenType().
bool clang::sema::DelayedDiagnostic::Triggered |
Definition at line 119 of file DelayedDiagnostic.h.
Referenced by clang::Sema::HandleDelayedAccessCheck(), handleDelayedAvailabilityCheck(), handleDelayedForbiddenType(), makeAccess(), makeAvailability(), makeForbiddenType(), and clang::Sema::PopParsingDeclaration().