clang API Documentation

Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
clang::sema::DelayedDiagnostic Class Reference

#include <DelayedDiagnostic.h>

Collaboration diagram for clang::sema::DelayedDiagnostic:
Collaboration graph
[legend]

List of all members.

Classes

struct  DD
struct  FTD

Public Types

enum  DDKind { Deprecation, Unavailable, Access, ForbiddenType }

Public Member Functions

void Destroy ()
AccessedEntitygetAccessData ()
const AccessedEntitygetAccessData () const
const NamedDeclgetDeprecationDecl () const
StringRef getDeprecationMessage () const
unsigned getForbiddenTypeDiagnostic () const
unsigned getForbiddenTypeArgument () const
QualType getForbiddenTypeOperand () const
const ObjCInterfaceDeclgetUnknownObjCClass () const
const ObjCPropertyDeclgetObjCProperty () 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.
struct FTD ForbiddenTypeData
char AccessData [sizeof(AccessedEntity)]
 Access control.

Detailed Description

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

Definition at line 114 of file DelayedDiagnostic.h.


Member Enumeration Documentation

Enumerator:
Deprecation 
Unavailable 
Access 
ForbiddenType 

Definition at line 116 of file DelayedDiagnostic.h.


Member Function Documentation

Definition at line 158 of file DelayedDiagnostic.h.

References Access, and AccessData.

Referenced by Destroy(), clang::Sema::HandleDelayedAccessCheck(), and makeAccess().

Definition at line 162 of file DelayedDiagnostic.h.

References Access, and AccessData.

Definition at line 167 of file DelayedDiagnostic.h.

References Deprecation, DeprecationData, and Unavailable.

Referenced by handleDelayedAvailabilityCheck().

Definition at line 173 of file DelayedDiagnostic.h.

References Deprecation, DeprecationData, and Unavailable.

Referenced by handleDelayedAvailabilityCheck().

Definition at line 189 of file DelayedDiagnostic.h.

References ForbiddenType, and ForbiddenTypeData.

Referenced by handleDelayedForbiddenType().

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().

Definition at line 203 of file DelayedDiagnostic.h.

References DeprecationData.

Referenced by handleDelayedAvailabilityCheck().

Definition at line 207 of file DelayedDiagnostic.h.

References DeprecationData.

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]
static DelayedDiagnostic clang::sema::DelayedDiagnostic::makeForbiddenType ( SourceLocation  loc,
unsigned  diagnostic,
QualType  type,
unsigned  argument 
) [inline, static]

Member Data Documentation

Access control.

Definition at line 234 of file DelayedDiagnostic.h.

Referenced by getAccessData().


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