clang API Documentation
#include <DelayedDiagnostic.h>
A diagnostic message which has been conditionally emitted pending the complete parsing of the current declaration.
Definition at line 114 of file DelayedDiagnostic.h.
Definition at line 116 of file DelayedDiagnostic.h.
void DelayedDiagnostic::Destroy | ( | ) |
Definition at line 56 of file DelayedDiagnostic.cpp.
References Access, Deprecation, DeprecationData, ForbiddenType, getAccessData(), and Unavailable.
AccessedEntity& clang::sema::DelayedDiagnostic::getAccessData | ( | ) | [inline] |
Definition at line 158 of file DelayedDiagnostic.h.
References Access, and AccessData.
Referenced by Destroy(), clang::Sema::HandleDelayedAccessCheck(), and makeAccess().
const AccessedEntity& clang::sema::DelayedDiagnostic::getAccessData | ( | ) | const [inline] |
Definition at line 162 of file DelayedDiagnostic.h.
References Access, and AccessData.
const NamedDecl* clang::sema::DelayedDiagnostic::getDeprecationDecl | ( | ) | const [inline] |
Definition at line 167 of file DelayedDiagnostic.h.
References Deprecation, DeprecationData, and Unavailable.
Referenced by handleDelayedAvailabilityCheck().
StringRef clang::sema::DelayedDiagnostic::getDeprecationMessage | ( | ) | const [inline] |
Definition at line 173 of file DelayedDiagnostic.h.
References Deprecation, DeprecationData, and Unavailable.
Referenced by handleDelayedAvailabilityCheck().
unsigned clang::sema::DelayedDiagnostic::getForbiddenTypeArgument | ( | ) | const [inline] |
Definition at line 189 of file DelayedDiagnostic.h.
References ForbiddenType, and ForbiddenTypeData.
Referenced by handleDelayedForbiddenType().
unsigned clang::sema::DelayedDiagnostic::getForbiddenTypeDiagnostic | ( | ) | const [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().
QualType clang::sema::DelayedDiagnostic::getForbiddenTypeOperand | ( | ) | const [inline] |
Definition at line 194 of file DelayedDiagnostic.h.
References ForbiddenType, ForbiddenTypeData, and clang::QualType::getFromOpaquePtr().
Referenced by handleDelayedForbiddenType().
const ObjCPropertyDecl* clang::sema::DelayedDiagnostic::getObjCProperty | ( | ) | const [inline] |
Definition at line 203 of file DelayedDiagnostic.h.
References DeprecationData.
Referenced by handleDelayedAvailabilityCheck().
bool clang::sema::DelayedDiagnostic::getObjCPropertyAccess | ( | ) | const [inline] |
Definition at line 207 of file DelayedDiagnostic.h.
References DeprecationData.
const ObjCInterfaceDecl* clang::sema::DelayedDiagnostic::getUnknownObjCClass | ( | ) | const [inline] |
Definition at line 199 of file DelayedDiagnostic.h.
References DeprecationData.
Referenced by handleDelayedAvailabilityCheck().
static DelayedDiagnostic clang::sema::DelayedDiagnostic::makeAccess | ( | SourceLocation | Loc, |
const AccessedEntity & | Entity | ||
) | [inline, static] |
Definition at line 134 of file DelayedDiagnostic.h.
References Access, getAccessData(), Kind, Loc, and Triggered.
Referenced by CheckAccess().
DelayedDiagnostic DelayedDiagnostic::makeAvailability | ( | Sema::AvailabilityDiagnostic | AD, |
SourceLocation | Loc, | ||
const NamedDecl * | D, | ||
const ObjCInterfaceDecl * | UnknownObjCClass, | ||
const ObjCPropertyDecl * | ObjCProperty, | ||
StringRef | Msg, | ||
bool | ObjCPropertyAccess | ||
) | [static] |
Definition at line 23 of file DelayedDiagnostic.cpp.
References clang::Sema::AD_Deprecation, clang::Sema::AD_Unavailable, Deprecation, DeprecationData, Kind, Loc, Triggered, and Unavailable.
Referenced by clang::Sema::EmitAvailabilityWarning().
static DelayedDiagnostic clang::sema::DelayedDiagnostic::makeForbiddenType | ( | SourceLocation | loc, |
unsigned | diagnostic, | ||
QualType | type, | ||
unsigned | argument | ||
) | [inline, static] |
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)] |
Deprecation.
Definition at line 230 of file DelayedDiagnostic.h.
Referenced by Destroy(), getDeprecationDecl(), getDeprecationMessage(), getObjCProperty(), getObjCPropertyAccess(), getUnknownObjCClass(), and makeAvailability().
Definition at line 231 of file DelayedDiagnostic.h.
Referenced by getForbiddenTypeArgument(), getForbiddenTypeDiagnostic(), getForbiddenTypeOperand(), and makeForbiddenType().
Definition at line 118 of file DelayedDiagnostic.h.
Referenced by handleDelayedAvailabilityCheck(), makeAccess(), makeAvailability(), makeForbiddenType(), and clang::Sema::PopParsingDeclaration().
Definition at line 121 of file DelayedDiagnostic.h.
Referenced by clang::Sema::HandleDelayedAccessCheck(), handleDelayedAvailabilityCheck(), handleDelayedForbiddenType(), makeAccess(), makeAvailability(), and makeForbiddenType().
Definition at line 119 of file DelayedDiagnostic.h.
Referenced by clang::Sema::HandleDelayedAccessCheck(), handleDelayedAvailabilityCheck(), handleDelayedForbiddenType(), makeAccess(), makeAvailability(), makeForbiddenType(), and clang::Sema::PopParsingDeclaration().