20 using namespace clang;
31 bool ObjCPropertyAccess) {
32 assert(!Locs.empty());
36 DD.Loc = Locs.front();
37 DD.AvailabilityData.ReferringDecl = ReferringDecl;
38 DD.AvailabilityData.OffendingDecl = OffendingDecl;
39 DD.AvailabilityData.UnknownObjCClass = UnknownObjCClass;
40 DD.AvailabilityData.ObjCProperty = ObjCProperty;
41 char *MessageData =
nullptr;
43 MessageData =
new char [Msg.size()];
44 memcpy(MessageData, Msg.data(), Msg.size());
46 DD.AvailabilityData.Message = MessageData;
47 DD.AvailabilityData.MessageLen = Msg.size();
49 DD.AvailabilityData.SelectorLocs =
new SourceLocation[Locs.size()];
50 memcpy(DD.AvailabilityData.SelectorLocs, Locs.data(),
52 DD.AvailabilityData.NumSelectorLocs = Locs.size();
54 DD.AvailabilityData.AR = AR;
55 DD.AvailabilityData.ObjCPropertyAccess = ObjCPropertyAccess;
AccessedEntity & getAccessData()
Represents an ObjC class declaration.
AvailabilityResult
Captures the result of checking the availability of a declaration.
struct AD AvailabilityData
Defines the classes clang::DelayedDiagnostic and clang::AccessedEntity.
Encodes a location in the source.
Represents one property declaration in an Objective-C interface.
__DEVICE__ void * memcpy(void *__a, const void *__b, size_t __c)
static DelayedDiagnostic makeAvailability(AvailabilityResult AR, ArrayRef< SourceLocation > Locs, const NamedDecl *ReferringDecl, const NamedDecl *OffendingDecl, const ObjCInterfaceDecl *UnknownObjCClass, const ObjCPropertyDecl *ObjCProperty, StringRef Msg, bool ObjCPropertyAccess)
Dataflow Directional Tag Classes.
A diagnostic message which has been conditionally emitted pending the complete parsing of the current...
This represents a decl that may have a name.