Home
last modified time | relevance | path

Searched refs:NumChars (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/llvm/lib/TableGen/
H A DStringMatcher.cpp85 unsigned NumChars = FirstNonCommonLetter-CharNo; in EmitStringMatcherForChar() local
88 if (NumChars == 1) { in EmitStringMatcherForChar()
98 << ", \"" << Matches[0]->first.substr(CharNo, NumChars) << "\", " in EmitStringMatcherForChar()
99 << NumChars << ") != 0)\n"; in EmitStringMatcherForChar()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp33 size_t NumChars = 0; in getTypeNameLength() local
48 ++NumChars; // Count the non-space character. in getTypeNameLength()
50 ++NumChars; // Count a single space character between two words. in getTypeNameLength()
55 return NumChars; in getTypeNameLength()
/llvm-project-15.0.7/llvm/lib/Support/
H A DNativeFormatting.cpp148 unsigned NumChars = in write_hex() local
155 char *EndPtr = NumberBuffer + NumChars; in write_hex()
163 S.write(NumberBuffer, NumChars); in write_hex()
H A Draw_ostream.cpp475 static raw_ostream &write_padding(raw_ostream &OS, unsigned NumChars) { in write_padding() argument
483 if (NumChars < array_lengthof(Chars)) in write_padding()
484 return OS.write(Chars, NumChars); in write_padding()
486 while (NumChars) { in write_padding()
487 unsigned NumToWrite = std::min(NumChars, in write_padding()
490 NumChars -= NumToWrite; in write_padding()
/llvm-project-15.0.7/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp1209 static unsigned guessCharByteSize(const uint8_t *StringBytes, unsigned NumChars, in guessCharByteSize() argument
1221 unsigned TrailingNulls = countTrailingNullBytes(StringBytes, NumChars); in guessCharByteSize()
1235 unsigned Nulls = countEmbeddedNulls(StringBytes, NumChars); in guessCharByteSize()
1236 if (Nulls >= 2 * NumChars / 3 && NumBytes % 4 == 0) in guessCharByteSize()
1238 if (Nulls >= NumChars / 3) in guessCharByteSize()
1369 const unsigned NumChars = BytesDecoded / CharBytes; in demangleStringLiteral() local
1370 for (unsigned CharIndex = 0; CharIndex < NumChars; ++CharIndex) { in demangleStringLiteral()
1373 if (CharIndex + 1 < NumChars || Result->IsTruncated) in demangleStringLiteral()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGRecordLayoutBuilder.cpp139 llvm::Type *getByteArrayType(CharUnits NumChars) { in getByteArrayType()
140 assert(!NumChars.isZero() && "Empty byte arrays aren't allowed."); in getByteArrayType()
142 return NumChars == CharUnits::One() ? Type : in getByteArrayType()
143 (llvm::Type *)llvm::ArrayType::get(Type, NumChars.getQuantity()); in getByteArrayType()
/llvm-project-15.0.7/clang/lib/Format/
H A DBreakableToken.cpp81 for (unsigned NumChars = 0; in getCommentSplit() local
82 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit()
85 NumChars += in getCommentSplit()
/llvm-project-15.0.7/clang/utils/TableGen/
H A DSveEmitter.cpp859 unsigned NumChars = End - Pos + 1; in replaceTemplatedArgs() local
860 assert(NumChars == 3 && "Unexpected template argument"); in replaceTemplatedArgs()
888 Ret.replace(Pos, NumChars, TypeCode + utostr(T.getElementSizeInBits())); in replaceTemplatedArgs()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DPath.cpp2314 const size_t NumChars = MAX_PATH - Input.size() - 1; in TEST_F() local
2315 for (size_t i = 0; i < NumChars; ++i) in TEST_F()