Home
last modified time | relevance | path

Searched refs:StrLen (Results 1 – 13 of 13) sorted by relevance

/openbsd/gnu/llvm/clang/include/clang/Basic/
H A DIdentifierTable.h176 template <std::size_t StrLen> in alignas()
177 bool isStr(const char (&Str)[StrLen]) const { in alignas()
178 return getLength() == StrLen-1 && in alignas()
179 memcmp(getNameStart(), Str, StrLen-1) == 0; in alignas()
/openbsd/gnu/llvm/clang/include/clang/Sema/
H A DTypoCorrection.h207 template<std::size_t StrLen>
208 bool isKeyword(const char (&Str)[StrLen]) const { in isKeyword() argument
/openbsd/gnu/llvm/llvm/lib/Target/BPF/
H A DBTF.h88 uint32_t StrLen; ///< Length of string section member
H A DBTFDebug.cpp1045 uint32_t TypeLen = 0, StrLen; in emitBTFSection() local
1048 StrLen = StringTable.getSize(); in emitBTFSection()
1053 OS.emitInt32(StrLen); in emitBTFSection()
/openbsd/gnu/llvm/llvm/lib/Support/
H A DAPInt.cpp507 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()
/openbsd/gnu/llvm/clang/lib/Basic/
H A DDiagnostic.cpp576 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()
/openbsd/gnu/usr.bin/perl/os2/OS2/OS2-Process/
H A DProcess.pm473 $lim = StrLen($data, $lim); # Look for 1-byte 0
482 $lim = StrLen($data, $lim, 2); # Look for 2-byte 0
H A DProcess.xs1360 StrLen(ULONG addr, ULONG lim, I32 unitsize) in StrLen() function
1712 StrLen(ULONG addr, ULONG lim, I32 unitsize = 1)
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp462 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI)) in optimizeStrChr() local
684 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStpCpy() local
685 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStpCpy()
1115 if (!StrLen) in optimizeStrStr()
1118 StrLen, B, DL, TLI); in optimizeStrStr()
3065 Value *StrLen = ConstantInt::get(CI->getType(), Str.size()); in emitSnPrintfMemCpy() local
3067 return StrLen; in emitSnPrintfMemCpy()
3091 return StrLen; in emitSnPrintfMemCpy()
3098 return StrLen; in emitSnPrintfMemCpy()
3848 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStrpCpyChk() local
[all …]
/openbsd/gnu/llvm/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp436 size_t StrLen = StrEnd - Offset; in terminatedSubstr() local
437 return Str.substr(Offset, StrLen); in terminatedSubstr()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaInit.cpp2957 uint64_t StrLen = SL->getLength(); in CheckDesignatedInitializer() local
2958 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
2959 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue(); in CheckDesignatedInitializer()
2960 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer()
2964 for (unsigned i = 0, e = StrLen; i != e; ++i) { in CheckDesignatedInitializer()
2980 uint64_t StrLen = Str.size(); in CheckDesignatedInitializer() local
2981 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
2982 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue(); in CheckDesignatedInitializer()
2983 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer()
2987 for (unsigned i = 0, e = StrLen; i != e; ++i) { in CheckDesignatedInitializer()
H A DSemaChecking.cpp1213 size_t StrLen = in checkFortifiedBuiltinMemoryFunction() local
1217 FormatBytes + StrLen, getLangOpts(), in checkFortifiedBuiltinMemoryFunction()
1245 size_t StrLen = in checkFortifiedBuiltinMemoryFunction() local
1248 H, FormatBytes, FormatBytes + StrLen, getLangOpts(), in checkFortifiedBuiltinMemoryFunction()
10868 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in CheckFormatString() local
10873 Str, Str + StrLen, S.getLangOpts(), S.Context.getTargetInfo())) in CheckFormatString()
10888 if (StrLen == 0 && numDataArgs > 0) { in CheckFormatString()
10907 H, Str, Str + StrLen, S.getLangOpts(), S.Context.getTargetInfo(), in CheckFormatString()
10930 return analyze_format_string::ParseFormatStringHasSArg(Str, Str + StrLen, in FormatStringHasSArg()
11228 template <std::size_t StrLen>
[all …]
/openbsd/gnu/llvm/clang/lib/AST/
H A DExprConstant.cpp12203 uint64_t StrLen; in VisitBuiltinCallExpr() local
12204 if (EvaluateBuiltinStrLen(E->getArg(0), StrLen, Info)) in VisitBuiltinCallExpr()
12205 return Success(StrLen, E); in VisitBuiltinCallExpr()