21 using namespace clang;
32 bool ObjCPropertyAccess) {
33 assert(!Locs.empty());
37 DD.Loc = Locs.front();
38 DD.AvailabilityData.ReferringDecl = ReferringDecl;
39 DD.AvailabilityData.OffendingDecl = OffendingDecl;
40 DD.AvailabilityData.UnknownObjCClass = UnknownObjCClass;
41 DD.AvailabilityData.ObjCProperty = ObjCProperty;
42 char *MessageData =
nullptr;
44 MessageData =
new char [Msg.size()];
45 memcpy(MessageData, Msg.data(), Msg.size());
47 DD.AvailabilityData.Message = MessageData;
48 DD.AvailabilityData.MessageLen = Msg.size();
50 DD.AvailabilityData.SelectorLocs =
new SourceLocation[Locs.size()];
51 memcpy(DD.AvailabilityData.SelectorLocs, Locs.data(),
53 DD.AvailabilityData.NumSelectorLocs = Locs.size();
55 DD.AvailabilityData.AR = AR;
56 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.