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()
2035 if (SemaRef.PP.isMacroDefined("alignof")) in AddOrdinaryNameResults()2121 if (PP.getLangOpts().ObjC1 && PP.isMacroDefined("nil")) in MaybeAddSentinel()2123 else if (PP.isMacroDefined("NULL")) in MaybeAddSentinel()5222 PP.isMacroDefined("IBAction")) { in CodeCompleteObjCPassingType()
482 if (calleeType == CT_Method && PP.isMacroDefined("nil")) in DiagnoseSentinelCalls()486 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()1588 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;
793 bool isMacroDefined(StringRef Id) { in isMacroDefined() function794 return isMacroDefined(&Identifiers.get(Id)); in isMacroDefined()796 bool isMacroDefined(const IdentifierInfo *II) { in isMacroDefined() function
512 bool NSAPI::isMacroDefined(StringRef Id) const { in isMacroDefined() function in NSAPI
312 if (!isMacroDefined(ControllingMacro) && in HandleEndOfFile()
408 if (isMacroDefined(II)) in HandlePragmaPoison()
1070 : PP.isMacroDefined(ControllingMacro)) { in ShouldEnterIncludeFile()