Searched refs:isMacroDefined (Results 1 – 11 of 11) sorted by relevance
163 static bool isMacroDefined(const Sema &S, SourceLocation Loc, StringRef Name) { in isMacroDefined() function176 isMacroDefined(S, Loc, "nil")) in getScalarZeroExpressionForType()181 (S.LangOpts.CPlusPlus || isMacroDefined(S, Loc, "false"))) in getScalarZeroExpressionForType()186 if (isMacroDefined(S, Loc, "NULL")) in getScalarZeroExpressionForType()
2023 if (SemaRef.PP.isMacroDefined("alignof")) in AddOrdinaryNameResults()2109 if (PP.getLangOpts().ObjC1 && PP.isMacroDefined("nil")) in MaybeAddSentinel()2111 else if (PP.isMacroDefined("NULL")) in MaybeAddSentinel()5202 PP.isMacroDefined("IBAction")) { in CodeCompleteObjCPassingType()
470 if (calleeType == CT_Method && PP.isMacroDefined("nil")) in DiagnoseSentinelCalls()474 else if (PP.isMacroDefined("NULL")) in DiagnoseSentinelCalls()
461 if (UseNsIosOnlyMacro && NS.isMacroDefined("NS_NONATOMIC_IOSONLY")) { in rewriteToObjCProperty()1268 !NSAPIObj->isMacroDefined("NS_RETURNS_INNER_POINTER")) in migrateNsReturnsInnerPointer()1281 !NSAPIObj->isMacroDefined("NS_RETURNS_INNER_POINTER")) in migratePropertyNsReturnsInnerPointer()1399 if (!NSAPIObj->isMacroDefined("CF_IMPLICIT_BRIDGING_ENABLED")) { in AnnotateImplicitBridging()1474 if (Ret.isOwned() && NSAPIObj->isMacroDefined("CF_RETURNS_RETAINED")) in AddCFAnnotations()1477 NSAPIObj->isMacroDefined("CF_RETURNS_NOT_RETAINED")) in AddCFAnnotations()1481 if (Ret.isOwned() && NSAPIObj->isMacroDefined("NS_RETURNS_RETAINED")) in AddCFAnnotations()1498 NSAPIObj->isMacroDefined("CF_CONSUMED")) { in AddCFAnnotations()1504 NSAPIObj->isMacroDefined("NS_CONSUMED")) { in AddCFAnnotations()1589 if (Ret.isOwned() && NSAPIObj->isMacroDefined("CF_RETURNS_RETAINED")) in AddCFAnnotations()[all …]
215 return Pass.SemaRef.PP.isMacroDefined("nil") ? "nil" : "0"; in getNilString()
221 bool isMacroDefined(StringRef Id) const;
786 bool isMacroDefined(StringRef Id) { in isMacroDefined() function787 return isMacroDefined(&Identifiers.get(Id)); in isMacroDefined()789 bool isMacroDefined(const IdentifierInfo *II) { in isMacroDefined() function
312 if (!isMacroDefined(ControllingMacro) && in HandleEndOfFile()
408 if (isMacroDefined(II)) in HandlePragmaPoison()
1068 : PP.isMacroDefined(ControllingMacro)) { in ShouldEnterIncludeFile()
520 bool NSAPI::isMacroDefined(StringRef Id) const { in isMacroDefined() function in NSAPI