Home
last modified time | relevance | path

Searched refs:StrLit (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp1081 if (auto *StrLit = dyn_cast<StringLiteral>(Init)) { in getCStringLength() local
1084 return SvalBuilder.makeIntVal(StrLit->getLength(), SizeTy); in getCStringLength()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp935 if (auto *StrLit = dyn_cast<ObjCStringLiteral>(Key)) { in CheckObjCDictionaryLiteralDuplicateKeys() local
936 StringRef Bytes = StrLit->getString()->getBytes(); in CheckObjCDictionaryLiteralDuplicateKeys()
937 SourceLocation Loc = StrLit->getExprLoc(); in CheckObjCDictionaryLiteralDuplicateKeys()
H A DSemaDeclAttr.cpp361 if (const auto *StrLit = dyn_cast<StringLiteral>(ArgExp)) { in checkAttrArgsAreCapabilityObjs() local
362 if (StrLit->getLength() == 0 || in checkAttrArgsAreCapabilityObjs()
363 (StrLit->isOrdinary() && StrLit->getString() == "*")) { in checkAttrArgsAreCapabilityObjs()
H A DSemaExprCXX.cpp4107 if (StringLiteral *StrLit = dyn_cast<StringLiteral>(From->IgnoreParens())) in IsStringLiteralToNonConstPointerConversion() local
4114 switch (StrLit->getKind()) { in IsStringLiteralToNonConstPointerConversion()