Home
last modified time | relevance | path

Searched refs:isMacroDefined (Results 1 – 11 of 11) sorted by relevance

/external/clang/lib/Sema/
DSemaFixItUtils.cpp163 static bool isMacroDefined(const Sema &S, SourceLocation Loc, StringRef Name) { in isMacroDefined() function
176 isMacroDefined(S, Loc, "nil")) in getScalarZeroExpressionForType()
181 (S.LangOpts.CPlusPlus || isMacroDefined(S, Loc, "false"))) in getScalarZeroExpressionForType()
186 if (isMacroDefined(S, Loc, "NULL")) in getScalarZeroExpressionForType()
DSemaCodeComplete.cpp2035 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()
DSemaExpr.cpp482 if (calleeType == CT_Method && PP.isMacroDefined("nil")) in DiagnoseSentinelCalls()
486 else if (PP.isMacroDefined("NULL")) in DiagnoseSentinelCalls()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp461 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 …]
DTransforms.cpp215 return Pass.SemaRef.PP.isMacroDefined("nil") ? "nil" : "0"; in getNilString()
/external/clang/include/clang/AST/
DNSAPI.h221 bool isMacroDefined(StringRef Id) const;
/external/clang/include/clang/Lex/
DPreprocessor.h793 bool isMacroDefined(StringRef Id) { in isMacroDefined() function
794 return isMacroDefined(&Identifiers.get(Id)); in isMacroDefined()
796 bool isMacroDefined(const IdentifierInfo *II) { in isMacroDefined() function
/external/clang/lib/AST/
DNSAPI.cpp512 bool NSAPI::isMacroDefined(StringRef Id) const { in isMacroDefined() function in NSAPI
/external/clang/lib/Lex/
DPPLexerChange.cpp312 if (!isMacroDefined(ControllingMacro) && in HandleEndOfFile()
DPragma.cpp408 if (isMacroDefined(II)) in HandlePragmaPoison()
DHeaderSearch.cpp1070 : PP.isMacroDefined(ControllingMacro)) { in ShouldEnterIncludeFile()