Home
last modified time | relevance | path

Searched refs:isStr (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseOpenACC.cpp197 return Tok.getIdentifierInfo()->isStr("readonly"); in isOpenACCSpecialToken()
199 return Tok.getIdentifierInfo()->isStr("devnum"); in isOpenACCSpecialToken()
201 return Tok.getIdentifierInfo()->isStr("queues"); in isOpenACCSpecialToken()
203 return Tok.getIdentifierInfo()->isStr("zero"); in isOpenACCSpecialToken()
205 return Tok.getIdentifierInfo()->isStr("force"); in isOpenACCSpecialToken()
207 return Tok.getIdentifierInfo()->isStr("num"); in isOpenACCSpecialToken()
209 return Tok.getIdentifierInfo()->isStr("length"); in isOpenACCSpecialToken()
211 return Tok.getIdentifierInfo()->isStr("dim"); in isOpenACCSpecialToken()
213 return Tok.getIdentifierInfo()->isStr("static"); in isOpenACCSpecialToken()
266 return Tok.getIdentifierInfo()->isStr("parallel"); in isOpenACCDirectiveKind()
[all …]
H A DParsePragma.cpp335 if (II->isStr("on")) { in HandlePragma()
338 } else if (II->isStr("off")) { in HandlePragma()
1319 if (II && II->isStr("off")) { in HandlePragmaMSStrictGuardStackCheck()
1322 } else if (II && II->isStr("on")) { in HandlePragmaMSStrictGuardStackCheck()
1460 OptionUnroll = OptionInfo->isStr("unroll"); in HandlePragmaLoopHint()
1461 OptionUnrollAndJam = OptionInfo->isStr("unroll_and_jam"); in HandlePragmaLoopHint()
1462 OptionDistribute = OptionInfo->isStr("distribute"); in HandlePragmaLoopHint()
1463 OptionPipelineDisabled = OptionInfo->isStr("pipeline"); in HandlePragmaLoopHint()
1797 if (II->isStr("apply_to")) in getAttributeSubjectRulesRecoveryPointForToken()
1799 if (II->isStr("any")) in getAttributeSubjectRulesRecoveryPointForToken()
[all …]
H A DParseObjc.cpp917 if (II->isStr("readonly")) in ParseObjCPropertyAttribute()
919 else if (II->isStr("assign")) in ParseObjCPropertyAttribute()
921 else if (II->isStr("unsafe_unretained")) in ParseObjCPropertyAttribute()
923 else if (II->isStr("readwrite")) in ParseObjCPropertyAttribute()
925 else if (II->isStr("retain")) in ParseObjCPropertyAttribute()
927 else if (II->isStr("strong")) in ParseObjCPropertyAttribute()
929 else if (II->isStr("copy")) in ParseObjCPropertyAttribute()
931 else if (II->isStr("nonatomic")) in ParseObjCPropertyAttribute()
933 else if (II->isStr("atomic")) in ParseObjCPropertyAttribute()
935 else if (II->isStr("weak")) in ParseObjCPropertyAttribute()
[all …]
H A DParseDeclCXX.cpp1140 if (Tok.getIdentifierInfo()->isStr("decltype")) in ParseDecltypeSpecifier()
4532 if (AttrName->isStr("directive")) { in ParseOpenMPAttributeArgs()
4550 assert(AttrName->isStr("sequence") && in ParseOpenMPAttributeArgs()
4564 if (Ident && Ident->isStr("omp") && !ExpectAndConsume(tok::coloncolon)) in ParseOpenMPAttributeArgs()
4569 if (!Ident || (!Ident->isStr("directive") && !Ident->isStr("sequence"))) { in ParseOpenMPAttributeArgs()
4706 if (ScopeName && (ScopeName->isStr("gnu") || ScopeName->isStr("__gnu__"))) { in ParseCXX11AttributeArgs()
4715 if (ScopeName && ScopeName->isStr("omp") && in ParseCXX11AttributeArgs()
4716 (AttrName->isStr("directive") || AttrName->isStr("sequence"))) { in ParseCXX11AttributeArgs()
4730 if (ScopeName && (ScopeName->isStr("clang") || ScopeName->isStr("_Clang"))) in ParseCXX11AttributeArgs()
4734 else if (!ScopeName && AttrName->isStr("assume")) { in ParseCXX11AttributeArgs()
H A DParseOpenMP.cpp399 Tok.getIdentifierInfo()->isStr("initializer")) { in ParseOpenMPDeclareReductionDirective()
423 Tok.getIdentifierInfo()->isStr("omp_priv")) { in ParseOpenMPDeclareReductionDirective()
1525 while (Tok.is(tok::identifier) && Tok.getIdentifierInfo()->isStr("interop")) { in parseOpenMPAppendArgs()
3483 if (Tok.getIdentifierInfo()->isStr("target")) { in ParseOMPInteropInfo()
3491 } else if (Tok.getIdentifierInfo()->isStr("targetsync")) { in ParseOMPInteropInfo()
3496 } else if (Tok.getIdentifierInfo()->isStr("prefer_type") && in ParseOMPInteropInfo()
4334 Tok.getIdentifierInfo()->isStr("omp_all_memory")) { in ParseOpenMPReservedLocator()
4472 Tok.getIdentifierInfo()->isStr("omp_cur_iteration")) { in ParseOpenMPVarList()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPragma.cpp977 if (II->isStr("ON")) in LexOnOffSwitch()
979 else if (II->isStr("OFF")) in LexOnOffSwitch()
981 else if (II->isStr("DEFAULT")) in LexOnOffSwitch()
1063 if (II->isStr("assert")) { in HandlePragma()
1066 } else if (II->isStr("crash")) { in HandlePragma()
1071 } else if (II->isStr("parser_crash")) { in HandlePragma()
1079 } else if (II->isStr("dump")) { in HandlePragma()
1085 } else if (II->isStr("diag_mapping")) { in HandlePragma()
1100 } else if (II->isStr("llvm_fatal_error")) { in HandlePragma()
1103 } else if (II->isStr("llvm_unreachable")) { in HandlePragma()
[all …]
H A DPPDirectives.cpp3139 return II->isStr("__strong") || II->isStr("__weak") || in isObjCProtectedMacro()
3140 II->isStr("__unsafe_unretained") || II->isStr("__autoreleasing"); in isObjCProtectedMacro()
3279 MacroNameTok.getIdentifierInfo()->isStr("assert") && in HandleDefineDirective()
H A DTokenLexer.cpp617 FirstTok.getIdentifierInfo()->isStr("L") && SecondTok.isLiteral() && in isWideStringLiteralFromMacro()
H A DPPExpressions.cpp253 if (II->isStr("defined")) in EvaluateValue()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DAttributes.cpp118 return ScopeName && (ScopeName->isStr("gnu") || ScopeName->isStr("__gnu__")); in isGNUScope()
122 return ScopeName && (ScopeName->isStr("clang") || ScopeName->isStr("_Clang")); in isClangScope()
/freebsd/contrib/llvm-project/clang/lib/Analysis/plugins/SampleAnalyzer/
H A DMainCallChecker.cpp31 if (II->isStr("main")) { in checkPreStmt()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp156 if (StateLoc && StateLoc->Ident && StateLoc->Ident->isStr("scalable")) in handleLoopHintAttr()
175 if (StateLoc->Ident->isStr("disable")) in handleLoopHintAttr()
177 else if (StateLoc->Ident->isStr("assume_safety")) in handleLoopHintAttr()
179 else if (StateLoc->Ident->isStr("full")) in handleLoopHintAttr()
181 else if (StateLoc->Ident->isStr("enable")) in handleLoopHintAttr()
H A DSemaExceptionSpec.cpp52 !D.getIdentifier() || !D.getIdentifier()->isStr("swap")) in isLibstdcxxEagerExceptionSpecHack()
64 if (!II || !(II->isStr("__debug") || II->isStr("__profile")) || in isLibstdcxxEagerExceptionSpecHack()
H A DSemaModule.cpp234 if (II->isStr("module") || II->isStr("import")) in DiagReservedModuleName()
H A DSemaType.cpp106 if (II->isStr("strong")) { in diagnoseBadTypeAttribute()
108 } else if (II->isStr("weak")) { in diagnoseBadTypeAttribute()
4477 if (name->isStr("va_list")) in GetFullTypeForDeclarator()
6610 if (II->isStr("none")) in handleObjCOwnershipTypeAttr()
6612 else if (II->isStr("strong")) in handleObjCOwnershipTypeAttr()
6614 else if (II->isStr("weak")) in handleObjCOwnershipTypeAttr()
6616 else if (II->isStr("autoreleasing")) in handleObjCOwnershipTypeAttr()
6787 if (II->isStr("weak")) in handleObjCGCTypeAttr()
6789 else if (II->isStr("strong")) in handleObjCGCTypeAttr()
H A DSemaExprObjC.cpp2182 if (receiverNamePtr->isStr("super")) { in ActOnClassPropertyRefExpr()
4023 if (Parm->isStr("id")) in CheckObjCBridgeNSCast()
4086 if (Parm->isStr("id")) in CheckObjCBridgeCFCast()
5100 if (!PT->isObjCIdType() && !(ID && ID->getIdentifier()->isStr("NSString"))) in CheckConversionToObjCLiteral()
5118 if (!ID || !ID->getIdentifier()->isStr("NSNumber")) in CheckConversionToObjCLiteral()
H A DSemaObjC.cpp946 if (FnI && FnI->isStr("_Block_copy")) { in findCapturingExpr()
2035 if (!Parm->Ident->isStr("id")) { in handleBridgeAttr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp322 if (FnInfo->isStr("malloc") || FnInfo->isStr("_MALLOC")) { in checkASTCodeBody()
H A DNoReturnFunctionChecker.cpp117 if (!Receiver->getIdentifier()->isStr("NSAssertionHandler")) in checkPostObjCMessage()
H A DLocalizationChecker.cpp810 if (odInfo->isStr("NSString")) { in checkPreObjCMessage()
1111 if (!(odInfo->isStr("NSBundle") && in VisitObjCMessageExpr()
1306 if (odInfo->isStr("NSBundle") && in VisitObjCMessageExpr()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDecl.cpp3257 return II && II->isStr(Str); in isNamed()
3434 if (II && II->isStr("__hot_cold_t")) in isReplaceableGlobalAllocationFunction()
3477 RD->getIdentifier()->isStr("destroying_delete_t"); in isDestroyingOperatorDelete()
4474 if (FnInfo->isStr("memset")) in getMemoryFunctionKind()
4476 if (FnInfo->isStr("memcpy")) in getMemoryFunctionKind()
4478 if (FnInfo->isStr("mempcpy")) in getMemoryFunctionKind()
4480 if (FnInfo->isStr("memmove")) in getMemoryFunctionKind()
4482 if (FnInfo->isStr("memcmp")) in getMemoryFunctionKind()
4484 if (FnInfo->isStr("bcmp")) in getMemoryFunctionKind()
4486 if (FnInfo->isStr("strncpy")) in getMemoryFunctionKind()
[all …]
H A DItaniumMangle.cpp965 return II && II->isStr("std"); in isStd()
6803 if (!SD || !SD->getIdentifier()->isStr(Name)) in isSpecializedAs()
6828 if (!SD->getIdentifier()->isStr(Name)) in isStdCharSpecialization()
6874 if (TD->getIdentifier()->isStr("allocator")) { in mangleStandardSubstitution()
6880 if (TD->getIdentifier()->isStr("basic_string")) { in mangleStandardSubstitution()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp641 if (II->isStr("pthread_setspecific")) in argumentsMayEscape()
646 if (II->isStr("xpc_connection_set_context")) in argumentsMayEscape()
650 if (II->isStr("funopen")) in argumentsMayEscape()
655 if (II->isStr("__cxa_demangle")) in argumentsMayEscape()
1378 Sel.getIdentifierInfoForSlot(0)->isStr("valueWithPointer")) in argumentsMayEscape()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DIdentifierTable.h228 bool isStr(const char (&Str)[StrLen]) const { in isStr() function
234 bool isStr(llvm::StringRef Str) const { in isStr() function
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGVTables.cpp1293 if (II->isStr("std") || II->isStr("stdext")) in AlwaysHasLTOVisibilityPublic()

12