| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | MisplacedOperatorInStrlenInAllocCheck.cpp | 81 const auto *StrLen = Result.Nodes.getNodeAs<CallExpr>("StrLen"); in check() local 85 CharSourceRange::getTokenRange(StrLen->getSourceRange()), in check() 88 CharSourceRange::getTokenRange(StrLen->getArg(0)->getSourceRange()), in check() 102 StrLen->getSourceRange(), in check() 108 << StrLen->getDirectCallee()->getName() << Hint; in check()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.cons/ |
| H A D | from_literal.pass.cpp | 24 size_t StrLen ( const CharT *s ) { in StrLen() function 37 assert ( sv1.size() == StrLen( s )); in test()
|
| /llvm-project-15.0.7/llvm/unittests/Remarks/ |
| H A D | BitstreamRemarksParsingTest.cpp | 138 unsigned StrLen = Str.size(); in checkStr() local 139 EXPECT_EQ(StrLen, ExpectedLen); in checkStr() 140 return StringRef(StrData, StrLen); in checkStr() 228 unsigned StrLen = LLVMRemarkStringGetLen(Str); in checkStr() local 229 EXPECT_EQ(StrLen, ExpectedLen); in checkStr() 230 return StringRef(StrData, StrLen); in checkStr()
|
| H A D | YAMLRemarksParsingTest.cpp | 380 unsigned StrLen = Str.size(); in checkStr() local 381 EXPECT_EQ(StrLen, ExpectedLen); in checkStr() 382 return StringRef(StrData, StrLen); in checkStr() 470 unsigned StrLen = LLVMRemarkStringGetLen(Str); in checkStr() local 471 EXPECT_EQ(StrLen, ExpectedLen); in checkStr() 472 return StringRef(StrData, StrLen); in checkStr()
|
| /llvm-project-15.0.7/compiler-rt/lib/orc/unittests/ |
| H A D | adt_test.cpp | 73 size_t StrLen = strlen(Str); in TEST() local 77 EXPECT_EQ(S.size(), StrLen) << "string_view has unexpected size"; in TEST() 78 EXPECT_EQ(static_cast<size_t>(std::distance(S.begin(), S.end())), StrLen) in TEST()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/ |
| H A D | path.concat.pass.cpp | 98 std::size_t ReserveSize = StrLen(E) + 1; in doConcatSourceAllocTest() 271 assert(StrLen(RStr) == 1); in doConcatECharTest() 376 PathReserve(LHS, StrLen(E) + 5); in main() 388 PathReserve(LHS, StrLen(E) + 5); in main()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | IdentifierTable.h | 175 template <std::size_t StrLen> in alignas() 176 bool isStr(const char (&Str)[StrLen]) const { in alignas() 177 return getLength() == StrLen-1 && in alignas() 178 memcmp(getNameStart(), Str, StrLen-1) == 0; in alignas()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | TypoCorrection.h | 207 template<std::size_t StrLen> 208 bool isKeyword(const char (&Str)[StrLen]) const { in isKeyword() argument
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BTF.h | 88 uint32_t StrLen; ///< Length of string section member
|
| H A D | BTFDebug.cpp | 1007 uint32_t TypeLen = 0, StrLen; in emitBTFSection() local 1010 StrLen = StringTable.getSize(); in emitBTFSection() 1015 OS.emitInt32(StrLen); in emitBTFSection()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APInt.cpp | 507 size_t StrLen = Str.size(); in getSufficientBitsNeeded() local 513 StrLen--; in getSufficientBitsNeeded() 514 assert(StrLen && "String is only a sign, needs a value."); in getSufficientBitsNeeded() 520 return StrLen + IsNegative; in getSufficientBitsNeeded() 522 return StrLen * 3 + IsNegative; in getSufficientBitsNeeded() 524 return StrLen * 4 + IsNegative; in getSufficientBitsNeeded() 531 return (StrLen == 1 ? 4 : StrLen * 64 / 18) + IsNegative; in getSufficientBitsNeeded() 534 return (StrLen == 1 ? 7 : StrLen * 16 / 3) + IsNegative; in getSufficientBitsNeeded()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Diagnostic.cpp | 576 template <std::size_t StrLen> 578 const char (&Str)[StrLen]) { in ModifierIs() argument 579 return StrLen-1 == ModifierLen && memcmp(Modifier, Str, StrLen-1) == 0; in ModifierIs()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IdentifierNamingCheck.cpp | 301 intptr_t StrLen = End - Begin; in getDeclTypeName() local 318 StrLen = EOL - Begin; in getDeclTypeName() 320 if (StrLen > 0) { in getDeclTypeName() 321 std::string Type(Begin, StrLen); in getDeclTypeName()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 450 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI)) in optimizeStrChr() local 451 return B.CreateInBoundsGEP(B.getInt8Ty(), SrcStr, StrLen, "strchr"); in optimizeStrChr() 670 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStpCpy() local 671 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStpCpy() 992 Value *StrLen = emitStrLen(CI->getArgOperand(1), B, DL, TLI); in optimizeStrStr() local 993 if (!StrLen) in optimizeStrStr() 996 StrLen, B, DL, TLI); in optimizeStrStr() 3667 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStrpCpyChk() local 3668 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStrpCpyChk()
|
| /llvm-project-15.0.7/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 435 size_t StrLen = StrEnd - Offset; in terminatedSubstr() local 436 return Str.substr(Offset, StrLen); in terminatedSubstr()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | filesystem_test_helper.h | 510 std::size_t StrLen(CharT const* P) { in StrLen() function
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 2943 uint64_t StrLen = SL->getLength(); in CheckDesignatedInitializer() local 2944 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer() 2945 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue(); in CheckDesignatedInitializer() 2946 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer() 2950 for (unsigned i = 0, e = StrLen; i != e; ++i) { in CheckDesignatedInitializer() 2966 uint64_t StrLen = Str.size(); in CheckDesignatedInitializer() local 2967 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer() 2968 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue(); in CheckDesignatedInitializer() 2969 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer() 2973 for (unsigned i = 0, e = StrLen; i != e; ++i) { in CheckDesignatedInitializer()
|
| H A D | SemaChecking.cpp | 1172 size_t StrLen = in checkFortifiedBuiltinMemoryFunction() local 1176 FormatBytes + StrLen, getLangOpts(), in checkFortifiedBuiltinMemoryFunction() 1204 size_t StrLen = in checkFortifiedBuiltinMemoryFunction() local 1207 H, FormatBytes, FormatBytes + StrLen, getLangOpts(), in checkFortifiedBuiltinMemoryFunction() 10546 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in CheckFormatString() local 10551 Str, Str + StrLen, S.getLangOpts(), S.Context.getTargetInfo())) in CheckFormatString() 10566 if (StrLen == 0 && numDataArgs > 0) { in CheckFormatString() 10584 H, Str, Str + StrLen, S.getLangOpts(), S.Context.getTargetInfo(), in CheckFormatString() 10607 return analyze_format_string::ParseFormatStringHasSArg(Str, Str + StrLen, in FormatStringHasSArg() 10905 template <std::size_t StrLen> [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 12115 uint64_t StrLen; in VisitBuiltinCallExpr() local 12116 if (EvaluateBuiltinStrLen(E->getArg(0), StrLen, Info)) in VisitBuiltinCallExpr() 12117 return Success(StrLen, E); in VisitBuiltinCallExpr()
|