reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp
  270     return Name[Name.size() - 1];
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
  270     return Name[Name.size() - 1];
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp
  270     return Name[Name.size() - 1];
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp
  270     return Name[Name.size() - 1];
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
  287     return Name[Name.size() - 1];
examples/Kaleidoscope/Chapter6/toy.cpp
  253     return Name[Name.size() - 1];
examples/Kaleidoscope/Chapter7/toy.cpp
  275     return Name[Name.size() - 1];
examples/Kaleidoscope/Chapter8/toy.cpp
  276     return Name[Name.size() - 1];
examples/Kaleidoscope/Chapter9/toy.cpp
  378     return Name[Name.size() - 1];
include/llvm/ADT/StringExtras.h
  321     Len += (*Begin).size();
  352   return Str.size();
include/llvm/ExecutionEngine/Orc/RemoteObjectLayer.h
  450       init(this->Buffer.data(), this->Buffer.data() + this->Buffer.size(),
include/llvm/ProfileData/InstrProfData.inc
  222                    CoverageMapping.size()))
include/llvm/Support/GraphWriter.h
  335   N = N.substr(0, std::min<std::size_t>(N.size(), 140));
include/llvm/Support/raw_ostream.h
  511   uint64_t current_pos() const override { return OS.size(); }
include/llvm/TableGen/StringToOffsetTable.h
   33         StringOffset.insert(std::make_pair(Str, AggregateString.size()));
   52     for (unsigned i = 0, e = AggregateString.size(); i != e; ++i) {
   64       assert(i + 1 < AggregateString.size() && "Incomplete escape sequence!");
lib/AsmParser/LLLexer.cpp
  117   char *Buffer = &Str[0], *EndBuffer = Buffer+Str.size();
lib/Bitcode/Writer/BitcodeWriter.cpp
 2327       Record.push_back(AsmStr.size());
 2332       Record.push_back(ConstraintStr.size());
 3597   NameVals.push_back(Wpd.SingleImplName.size());
 3609   NameVals.push_back(Id.size());
 3628   NameVals.push_back(Id.size());
 4139         NameVals.push_back(S.size());
 4153         NameVals.push_back(S.size());
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  248       void *CKMem = OS.getContext().allocate(Checksum.size(), 1);
  249       memcpy(CKMem, Checksum.data(), Checksum.size());
  251           reinterpret_cast<const uint8_t *>(CKMem), Checksum.size());
lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp
   56   size_t Letter = SymName.size();
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4492       assert(OpInfo.Codes[i].size() == 1 &&
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1603   unsigned Size = HexString.size();
lib/DebugInfo/PDB/Native/DbiModuleDescriptor.cpp
   88   uint32_t M = ModuleName.str().size() + 1;
   89   uint32_t O = ObjFileName.str().size() + 1;
lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
  100   uint32_t M = ModuleName.size() + 1;
  101   uint32_t O = ObjFileName.size() + 1;
lib/ExecutionEngine/ExecutionEngine.cpp
  349     unsigned Size = InputArgv[i].size()+1;
lib/ExecutionEngine/Orc/OrcCBindings.cpp
   38   *MangledName = new char[Mangled.size() + 1];
lib/FuzzMutate/FuzzerCLI.cpp
  195   if (Buf.size() > MaxSize)
  197   memcpy(Dest, Buf.data(), Buf.size());
  198   return Buf.size();
lib/LineEditor/LineEditor.cpp
   43     size_t Len = std::min(CommonPrefix.size(), I->TypedText.size());
   43     size_t Len = std::min(CommonPrefix.size(), I->TypedText.size());
  132                Data->ContinuationOutput.size(), 1, Out);
lib/MC/MCContext.cpp
  587             (Twine(Entry.second) + Path.substr(Entry.first.size())).str();
lib/MC/MCParser/AsmParser.cpp
 3449       char *SourceBuf = static_cast<char *>(Ctx.allocate(SourceString.size()));
 3450       memcpy(SourceBuf, SourceString.data(), SourceString.size());
 3451       Source = StringRef(SourceBuf, SourceString.size());
 3623   void *CKMem = Ctx.allocate(Checksum.size(), 1);
 3624   memcpy(CKMem, Checksum.data(), Checksum.size());
 3626                                     Checksum.size());
lib/MC/MachObjectWriter.cpp
  426     Size += Option.size() + 1;
  444     BytesWritten += Option.size() + 1;
lib/MC/WinCOFFObjectWriter.cpp
  446   if (S.Name.size() <= COFF::NameSize) {
  447     std::memcpy(S.Header.Name, S.Name.c_str(), S.Name.size());
  840     unsigned Count = (Name.size() + SymbolSize - 1) / SymbolSize;
  848     unsigned Length = Name.size();
  979     if (S->Name.size() > COFF::NameSize)
lib/Object/ArchiveWriter.cpp
  337     Pos += M.Header.size() + M.Data.size() + M.Padding.size();
  497     Pos += Header.size() + Data.size() + Padding.size();
  579       MaxOffset += M.Header.size() + M.Data.size() + M.Padding.size();
lib/ObjectYAML/COFFEmitter.cpp
   83         if (str.size() > 7) {
  141       unsigned Index = StringTable.size();
  302   if (NumberOfSymbols > 0 || CP.StringTable.size() > 4)
  308       CP.StringTable.size();
  590     OS.write(&CP.StringTable[0], CP.StringTable.size());
lib/ObjectYAML/WasmEmitter.cpp
   80     encodeULEB128(OutString.size(), OS);
  484     encodeULEB128(OutString.size(), OS);
  599     encodeULEB128(OutString.size(), OS);
  617     encodeULEB128(OutString.size(), OS);
lib/Option/OptTable.cpp
  495     unsigned Length = OptionHelp[i].Name.size();
  503     int Pad = OptionFieldWidth - int(Option.size());
lib/ProfileData/SampleProfWriter.cpp
  100   if (UncompressedStrings.size() == 0)
  108   encodeULEB128(UncompressedStrings.size(), OS);
lib/Support/ConvertUTFWrapper.cpp
  118   UTF8 *DstEnd = Dst + Out.size();
  217         reinterpret_cast<const UTF8 *>(Source.data() + Source.size());
  220     Result.resize(Source.size());
  221     memcpy(&Result[0], Source.data(), Source.size());
  226                               Source.size()),
  231         reinterpret_cast<const UTF32 *>(Source.data() + Source.size());
  232     Result.resize(UNI_MAX_UTF8_BYTES_PER_CODE_POINT * Source.size());
  234     UTF8 *ResultEnd = reinterpret_cast<UTF8 *>(&Result[0] + Result.size());
lib/Support/DebugCounter.cpp
   38       size_t NumSpaces = GlobalWidth - Info.first.size() - 8;
lib/Support/Error.cpp
  159   char *ErrMsg = new char[Tmp.size() + 1];
  160   memcpy(ErrMsg, Tmp.data(), Tmp.size());
  161   ErrMsg[Tmp.size()] = '\0';
lib/Support/FileCheck.cpp
  436       size_t SubstInsertIdx = RegExStr.size();
  654       InsertOffset += Value->size();
 1152         CmdLine->getBuffer().substr(Prefix.size(), PatternString.size());
 1152         CmdLine->getBuffer().substr(Prefix.size(), PatternString.size());
 1787       CmdlineDefsIndices.push_back(std::make_pair(CmdlineDefsDiag.size(), 0));
 1799           std::make_pair(CmdlineDefsDiag.size(), SubstitutionStr.size()));
 1799           std::make_pair(CmdlineDefsDiag.size(), SubstitutionStr.size()));
 1804           std::make_pair(CmdlineDefsDiag.size(), CmdlineDef.size()));
lib/Support/JSON.cpp
  557   ConvertUTF32toUTF8(&In32, In32 + Codepoints.size(), &Out8, Out8 + Res.size(),
lib/Support/ScaledNumber.cpp
  242     DigitsOut = Str.size();
  260   size_t AfterDot = Str.size();
  286       std::max(Str.size() - (DigitsOut - Precision), AfterDot + 1);
  289   if (Truncate >= Str.size())
lib/Support/SourceMgr.cpp
  320     if (LastColumnModified > FixItLine.size())
  423   size_t NumColumns = LineContents.size();
  432               &CaretLine[std::min((size_t)R.second, CaretLine.size())],
  441                               LineContents.size()));
  460     for (unsigned i = 0, e = CaretLine.size(), OutCol = 0; i != e; ++i) {
  461       if (i >= LineContents.size() || LineContents[i] != '\t') {
  480   for (size_t i = 0, e = FixItInsertionLine.size(), OutCol = 0; i < e; ++i) {
  481     if (i >= LineContents.size() || LineContents[i] != '\t') {
lib/Support/Statistic.cpp
  177                          (unsigned)utostr(Stats.Stats[i]->getValue()).size());
lib/Support/TarWriter.cpp
   75   int Total = Len + Twine(Len).str().size();
   76   Total = Len + Twine(Total).str().size();
  108   snprintf(Hdr.Size, sizeof(Hdr.Size), "%011zo", PaxAttr.size());
lib/Support/Twine.cpp
   45       return StringRef(str->c_str(), str->size());
lib/Support/YAMLParser.cpp
  717       EscapedInput += "\\x" + std::string(2 - HexStr.size(), '0') + HexStr;
  742         if (HexStr.size() <= 2)
  743           EscapedInput += "\\x" + std::string(2 - HexStr.size(), '0') + HexStr;
  744         else if (HexStr.size() <= 4)
  745           EscapedInput += "\\u" + std::string(4 - HexStr.size(), '0') + HexStr;
  746         else if (HexStr.size() <= 8)
  747           EscapedInput += "\\U" + std::string(8 - HexStr.size(), '0') + HexStr;
lib/TableGen/StringMatcher.cpp
   31   for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) {
   40   return Matches[0]->first.size();
   56   if (CharNo == Matches[0]->first.size()) {
  139     MatchesByLength[Matches[i].first.size()].push_back(&Matches[i]);
lib/TableGen/TableGenBackend.cpp
   24   assert((Prefix.str().size() + Suffix.size() <= MAX_LINE_LEN) &&
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  269     DisasmLineMaxLen = std::max(DisasmLineMaxLen, DisasmLines.back().size());
  282     DisasmLineMaxLen = std::max(DisasmLineMaxLen, DisasmLines.back().size());
  558         Comment = std::string(DisasmLineMaxLen - DisasmLines[i].size(), ' ');
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  366       DisasmLineMaxLen = std::max(DisasmLineMaxLen, DisasmLine.size());
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
 1038                          RegName.Value.size(), SourceMgr::DK_Error,
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
  428   EmitNote(Vendor, MCConstantExpr::create(Blob.size(), getContext()), Type,
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
 1049       Result += item.StringValue.size() + 1; // string + '\0'
 1054       Result += item.StringValue.size() + 1; // string + '\0';
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  796   assert(TypeName.size());
lib/Target/BPF/BTFDebug.cpp
  750     StringOffset += S.size() + 1;
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
 1465                           .drop_back(myImmStr.size())
 1471                           .drop_back(myImmStr.size())
lib/Target/Hexagon/HexagonAsmPrinter.cpp
  200       Name.drop_back(ImmString.size()).str() + ImmString;
lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp
  158     unsigned Param = atoi(Sym.data()+ParamBaseName.size());
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  210         OutStreamer->EmitULEB128IntValue(Producer.first.size());
  212         OutStreamer->EmitULEB128IntValue(Producer.second.size());
lib/Testing/Support/Annotations.cpp
   36       Points[Name.getValueOr("")].push_back(Code.size());
   41       OpenRanges.emplace_back(Name.getValueOr(""), Code.size());
   50       R.End = Code.size();
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  639     Asm.replace(Pos, SearchStr.size(),
lib/Transforms/Instrumentation/GCOVProfiling.cpp
   66   if (DefaultGCOVVersion.size() != 4) {
lib/Transforms/Instrumentation/InstrProfiling.cpp
  928   NamesSize = CompressedNameStr.size();
lib/Transforms/Utils/ASanStackFrameLayout.cpp
  110                      << Name.size() << " " << Name;
tools/bugpoint/ToolRunner.cpp
  363   for (std::size_t Pos = 0u; Pos <= CommandLine.size(); ++Pos) {
  365       if (Pos + 1 < CommandLine.size())
  370     if (' ' == CommandLine[Pos] || CommandLine.size() == Pos) {
tools/clang/include/clang/AST/TextNodeDumper.h
  109       this->Prefix.resize(Prefix.size() - 2);
tools/clang/include/clang/Driver/Multilib.h
   47            (StringRef(GCCSuffix).front() == '/' && GCCSuffix.size() > 1));
   58            (StringRef(OSSuffix).front() == '/' && OSSuffix.size() > 1));
   69            (StringRef(IncludeSuffix).front() == '/' && IncludeSuffix.size() > 1));
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  538                        PropertyNameString.size() > 1 &&
  548     char LastChar = TypeString[TypeString.size()-1];
tools/clang/lib/AST/Expr.cpp
  833       TemplateParams.resize(TemplateParams.size() - 2);
tools/clang/lib/AST/ExprConstant.cpp
 2938     assert(Index <= Str.size() && "Index too large");
tools/clang/lib/AST/FormatString.cpp
  550       Alias += (Alias[Alias.size()-1] == '*') ? "*" : " *";
tools/clang/lib/AST/RawCommentList.cpp
  193   const unsigned BriefTextLength = Result.size();
tools/clang/lib/CodeGen/BackendUtil.cpp
 1628           ArrayRef<uint8_t>((const uint8_t *)OS.str().data(), OS.str().size());
tools/clang/lib/CodeGen/CGBlocks.cpp
  165   Name += "e" + llvm::to_string(TypeAtEncoding.size()) + "_" + TypeAtEncoding;
 1895     Str += llvm::to_string(FuncStr.size()) + "_" + FuncStr;
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  565       PrioritySuffix = std::string(6-PrioritySuffix.size(), '0')+PrioritySuffix;
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 2480   Fields.addInt(IntTy, Str.size());
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2821     for (unsigned i = 0, e = BitMap.size(); i != e; i++) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
  592   if (getCodeGenOpts().CodeModel.size() > 0) {
 1231     TyName.erase(ReadOnlyPos, ReadOnlyQual.size() + 1);
 1236       TyName.erase(WriteOnlyPos, WriteOnlyQual.size() + 1);
 1241         TyName.erase(ReadWritePos, ReadWriteQual.size() + 1);
 4970   StringRef StrWithNull(Str.c_str(), Str.size() + 1);
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1396     CoverageMappingSize += S.size();
 1404   size_t FilenamesSize = OS.str().size() - CoverageMappingSize;
 1407   if (size_t Rem = OS.str().size() % 8) {
tools/clang/lib/CodeGen/TargetInfo.cpp
 1170   while (Pos < AsmString.size()) {
 1173       DollarStart = AsmString.size();
 1176       DollarEnd = AsmString.size();
 1180     if (NumDollars % 2 != 0 && Pos < AsmString.size()) {
 1185         DigitEnd = AsmString.size();
 8819     assert(E.State==Recursive && E.Str.size() == Str.size() &&
tools/clang/lib/Driver/Driver.cpp
  174   StringRef Value = Opt.drop_front(OptName.size());
  886       if (ArchPrefixLen < CfgFileName.size())
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
   43   else if (CPU.size())
tools/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
   59   In = In.substr(Major.size());
   65     In = In.substr(Major.size());
tools/clang/lib/Driver/ToolChains/Clang.cpp
 5721   bool HaveDash = (I + 1 < EH.size() && EH[I + 1] == '-');
 5747     for (size_t I = 0, E = EHVal.size(); I != E; ++I) {
tools/clang/lib/Driver/ToolChains/MinGW.cpp
  317   return Ver.size();
  375   if (getDriver().SysRoot.size())
tools/clang/lib/Format/BreakableToken.cpp
  597           PrefixWithTrailingIndent.size());
tools/clang/lib/Format/ContinuationIndenter.cpp
 1583       RawStringStyle, RawText, {tooling::Range(0, RawText.size())},
tools/clang/lib/Format/Format.cpp
 1952       *Cursor = IncludesBeginOffset + result.size() - CursorToEOLOffset;
tools/clang/lib/Format/SortJavaScriptImports.cpp
  181     while (ReferencesText.size() < PreviousSize) {
tools/clang/lib/Format/WhitespaceManager.cpp
  148                                    Changes[i].PreviousLinePostfix.size() +
  149                                    Changes[i - 1].CurrentLinePrefix.size();
  152           NewlinePos + Changes[i - 1].CurrentLinePrefix.size();
tools/clang/lib/Frontend/CompilerInstance.cpp
 1233           FakeModuleMapFile, InferredModuleMapContent.size(), 0);
 2023         ModuleMapFileName, NullTerminatedSource.size(), 0);
tools/clang/lib/Frontend/DependencyGraph.cpp
  120       FileName = FileName.substr(SysRoot.size());
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  404     return Storage.asMemory().Data.size();
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
  696       Callbacks->OS.write(&TokSpell[0], TokSpell.size());
  780       OS.write(Name.data(), Name.size());
  781       Callbacks->HandleNewlinesInToken(Name.data(), Name.size());
  803       OS.write(S.data(), S.size());
  808         Callbacks->HandleNewlinesInToken(S.data(), S.size());
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 1255     int len = selString.size();
 5127     unsigned nameSize = Name.size();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 1087     int len = selString.size();
 4260     unsigned nameSize = Name.size();
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  707     Record.push_back(Fix.CodeToInsert.size());
tools/clang/lib/Frontend/TextDiagnostic.cpp
  163   size_t i = SourceLine.size();
  326   unsigned CaretColumns = CaretLine.size();
  340   unsigned CaretStart = 0, CaretEnd = CaretLine.size();
  355     unsigned FixItStart = 0, FixItEnd = FixItInsertionLine.size();
  415   while (SourceStart>0 || SourceEnd<SourceLine.size()) {
  444     if (SourceEnd<SourceLine.size()) {
  450       while (NewEnd < SourceLine.size() && isWhitespace(SourceLine[NewEnd]))
  454       while (NewEnd < SourceLine.size() && isWhitespace(SourceLine[NewEnd]))
  483     = map.byteToColumn(SourceLine.size())-map.byteToColumn(SourceEnd);
 1023       EndColNo = CaretLine.size();
 1062   if (CaretLine.size() < EndColNo)
 1112         unsigned NewFixItLineSize = FixItInsertionLine.size() +
 1113           (HintCol - PrevHintEndCol) + I->CodeToInsert.size();
 1114         if (NewFixItLineSize > FixItInsertionLine.size())
 1118                   FixItInsertionLine.end() - I->CodeToInsert.size());
 1230       if (CaretLine.size() < CaretColNo + 1)
 1255     while (!CaretLine.empty() && CaretLine[CaretLine.size() - 1] == ' ')
tools/clang/lib/Lex/Lexer.cpp
  231   typename T::size_type i = 0, e = Str.size();
tools/clang/lib/Lex/PPDirectives.cpp
  504       size_t IdLen = DirectiveStr.size();
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1733         if (WarningName.size() < 3 || WarningName[0] != '-' ||
tools/clang/lib/Lex/Pragma.cpp
  273     assert(StrVal[1] == '"' && StrVal[StrVal.size() - 1] == '"' &&
  279       assert(NumDChars < (StrVal.size() - 5) / 2 &&
  283     assert(StrVal[StrVal.size() - 2 - NumDChars] == ')');
  288     StrVal.erase(StrVal.size() - 1 - NumDChars);
  290     assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' &&
  295     for (size_t i = 1, e = StrVal.size() - 1; i != e; ++i) {
  310   StrVal[StrVal.size()-1] = '\n';
  322                                         StrVal.size(), *this);
  582   assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' &&
  589   CreateString(StringRef(&StrVal[1], StrVal.size() - 2), MacroTok);
 1217     if (WarningName.size() < 3 || WarningName[0] != '-' ||
tools/clang/lib/Parse/ParsePragma.cpp
 1835       (SecName.size()? Sema::PragmaClangSectionAction::PCSA_Set :
tools/clang/lib/Rewrite/HTMLRewrite.cpp
  622     unsigned LineLen = Expansion.size();
  640       LineLen -= Expansion.size();
  650       LineLen += Expansion.size();
tools/clang/lib/Sema/SemaDeclObjC.cpp
 3639   unsigned MinPossibleEditDistance = abs((int)MethodName.size() - (int)Typo.size());
tools/clang/lib/Sema/SemaExprObjC.cpp
 1100     StrTy = Context.getStringLiteralArrayType(Context.CharTy, Str.size());
tools/clang/lib/Sema/SemaInit.cpp
 2894       uint64_t StrLen = Str.size();
tools/clang/lib/Serialization/ASTReaderDecl.cpp
  634   memcpy(D->getTrailingObjects<char>(), Arg.data(), Arg.size());
  635   D->getTrailingObjects<char>()[Arg.size()] = '\0';
  642   memcpy(D->getTrailingObjects<char>(), Name.data(), Name.size());
  643   D->getTrailingObjects<char>()[Name.size()] = '\0';
  645   D->ValueStart = Name.size() + 1;
  648          Value.size());
  649   D->getTrailingObjects<char>()[D->ValueStart + Value.size()] = '\0';
tools/clang/lib/Serialization/ASTWriter.cpp
 4541   Record.push_back(Metadata.BlockName.size());
 4542   Record.push_back(Metadata.UserInfo.size());
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  375     Val = Val.substr(ContextPrefix.size() + 1);
tools/clang/lib/Tooling/Core/Lookup.cpp
  100       return NewName.substr(NS.size());
tools/clang/lib/Tooling/Core/Replacement.cpp
  372     Delta += MergeSecond ? 0 : Text.size() - Length;
  373     DeltaFirst = MergeSecond ? Text.size() - Length : 0;
  382       unsigned End = Offset + Text.size();
  411       return Offset + Text.size() < R.getOffset() + Delta;
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
  334   assert(InsertOffset <= Code.size());
  340   if (InsertOffset == Code.size() && (!Code.empty() && Code.back() != '\n'))
tools/clang/lib/Tooling/Refactoring/Rename/SymbolOccurrences.cpp
   25         Locations[0], Locations[0].getLocWithOffset(NamePieces[0].size()));
   34         Loc.value().getLocWithOffset(NamePieces[Loc.index()].size()));
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  329       HeaderSize += T.size(); // The triple.
  346       Write8byteIntegerToBuffer(OS, T.size());
  545     size_t TripleStart = ReadChars = ReadChars + BundleStartString.size();
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  384     Prefix = (StringRef(FullOldNs).drop_back(DiffOldNamespace.size()) +
  818       if (FromDeclNameRef.size() < ReplaceName.size())
  844             StringRef(AliasQualifiedName).drop_back(AliasName.size() + 2);
  850       if (NameWithAliasNamespace.size() < ReplaceName.size())
  850       if (NameWithAliasNamespace.size() < ReplaceName.size())
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
  123     for (size_t J = 0; J < Tokens[I].size(); ++J) {
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  260                           QueryString.size());
tools/clang/tools/extra/clang-move/Move.cpp
  375     for (size_t i = 0; i < GuardName.size(); ++i) {
tools/clang/tools/extra/clang-query/Query.cpp
  105       OS << "  " << std::string(prefixText.size() + Source.size(), '=') << '\n';
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
   52       Message = Message.substr(0, Message.size() - CheckNameInMessage.size());
tools/clang/tools/extra/clang-tidy/bugprone/CopyConstructorInitCheck.cpp
  102   std::string FixItMsg{FixItInitList.substr(0, FixItInitList.size() - 2)};
tools/clang/tools/extra/clang-tidy/google/FunctionNamingCheck.cpp
   62   while (Index < NewName.size()) {
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  132                        DeclText.data(), DeclText.data() + DeclText.size());
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  339   size_t InitialAutoLength = Auto.size();
  357     while (TOffsetInRT + TLengthWithWS < ReturnType.size() &&
  363     Auto.insert(Auto.size() - InitialAutoLength, Specifier);
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  267     Name = Name.drop_front(Style.Prefix.size());
  272     Name = Name.drop_back(Style.Suffix.size());
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  306             ReplacementText.data() + ReplacementText.size());
tools/clang/tools/extra/clangd/CodeComplete.cpp
  896       if (L.Signature.label.size() != R.Signature.label.size())
  896       if (L.Signature.label.size() != R.Signature.label.size())
  897         return L.Signature.label.size() < R.Signature.label.size();
  897         return L.Signature.label.size() < R.Signature.label.size();
tools/clang/tools/extra/clangd/Format.cpp
  276       R = tooling::Range(R.getOffset() + Incremental.CursorPlaceholder.size(),
  281       tooling::Range(Cursor, Incremental.CursorPlaceholder.size()));
  283   FormatLimit += Incremental.CursorPlaceholder.size();
  313                Cursor + Incremental.CursorPlaceholder.size());
tools/clang/tools/extra/clangd/JSONTransport.cpp
  111     Out << "Content-Length: " << S.size() << "\r\n\r\n" << S;
tools/clang/tools/extra/clangd/SourceCode.cpp
 1096     if (CurrentNamespace.size() > ER.EnclosingNamespace.size()) {
 1096     if (CurrentNamespace.size() > ER.EnclosingNamespace.size()) {
 1100     if (CurrentNamespace.size() == ER.EnclosingNamespace.size())
 1100     if (CurrentNamespace.size() == ER.EnclosingNamespace.size())
tools/clang/tools/extra/clangd/XRefs.cpp
  907       Style, HI->Definition, tooling::Range(0, HI->Definition.size()));
tools/clang/tools/extra/clangd/index/Serialization.cpp
  178       write32(RawTable.size(), OS);
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
  171   bool More = !Req.Query.empty() && Req.Query.size() < 3;
tools/clang/tools/extra/clangd/index/dex/Trigram.cpp
   39   std::vector<std::array<unsigned, 3>> Next(LowercaseIdentifier.size());
   41   for (int I = LowercaseIdentifier.size() - 1; I >= 0; --I) {
   57   for (size_t I = 0; I < LowercaseIdentifier.size(); ++I) {
   75   if (LowercaseIdentifier.size() >= 2)
   77   for (size_t I = 1; I < LowercaseIdentifier.size(); ++I)
  103     if (Chars.size() > 3)
  105     if (Chars.size() == 3)
tools/clang/tools/extra/clangd/unittests/FormattedStringTests.cpp
   89   EscapedPunctuation.reserve(2 * Punctuation.size());
tools/clang/tools/extra/clangd/unittests/FuzzyMatchTests.cpp
   25     if (Word.size() == Annotated->size())
tools/clang/tools/extra/clangd/unittests/JSONTransportTests.cpp
   36     In = {fmemopen(&InBuf[0], InBuf.size(), "r"), &fclose};
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp
   60         if (SpecializationArgs.size() > 0)
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
   80   if (Name.size() != 0) {
  109   if (Name.size() != 0) {
tools/clang/tools/extra/unittests/clang-doc/BitcodeTest.cpp
   67   EXPECT_TRUE(WriteResult.size() > 0);
   96   EXPECT_TRUE(WriteResult.size() > 0);
  116   EXPECT_TRUE(WriteResult.size() > 0);
  138   EXPECT_TRUE(WriteResult.size() > 0);
  156   EXPECT_TRUE(WriteResult.size() > 0);
  272   EXPECT_TRUE(WriteResult.size() > 0);
tools/clang/tools/extra/unittests/clang-move/ClangMoveTests.cpp
  392     std::string ExpectedOldHeader = Header.substr(0, Header.size() - 32);
tools/clang/tools/libclang/CIndex.cpp
 3859       result->EvalData.stringVal = new char[strRef.size() + 1];
 3861               strRef.size());
 3862       result->EvalData.stringVal[strRef.size()] = '\0';
 3880     result->EvalData.stringVal = new char[strRef.size() + 1];
 3881     strncpy((char *)result->EvalData.stringVal, strRef.c_str(), strRef.size());
 3882     result->EvalData.stringVal[strRef.size()] = '\0';
 3899         result->EvalData.stringVal = new char[strLiteral.size() + 1];
 3901                 strLiteral.size());
 3902         result->EvalData.stringVal[strLiteral.size()] = '\0';
 3924         result->EvalData.stringVal = new char[strLiteral.size() + 1];
 3926                 strLiteral.size());
 3927         result->EvalData.stringVal[strLiteral.size()] = '\0';
 3937       result->EvalData.stringVal = new char[strName.size() + 1];
 3938       strncpy(result->EvalData.stringVal, strName.c_str(), strName.size());
 3939       result->EvalData.stringVal[strName.size()] = '\0';
tools/clang/unittests/Format/CleanupTest.cpp
   74   std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
   98   std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
  115   std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
  134   std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
  287   std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
tools/clang/unittests/Format/FormatTestUtils.h
   27   for (unsigned i = 0, e = MessedUp.size() - 1; i != e; ++i) {
   56   for (unsigned i = 1, e = MessedUp.size(); i != e; ++i) {
tools/clang/unittests/Tooling/TransformerTest.cpp
   71     Actual.erase(I, HL.size());
tools/clang/unittests/libclang/TestUtils.h
   74         it.first->second->size()    // length
tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp
   43     for (unsigned i = 0; i < S.size(); ++i)
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
  782     Width = std::max(Width, I->size());
  784     (*I) += std::string(Width - I->size(), ' ');
  859       std::string Empty(Lines[0].size(), ' ');
 1456     MaxLen = std::max(MaxLen, (unsigned)I.first.size());
 1469     OS << I.first << " */ " << std::string(MaxLen - I.first.size(), ' ');
 1471     std::string Name = char(I.first.size()) + I.first;
 1556     std::string Name = char(I->first.size()) + I->first;
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp
   85     if (Name.size() >= 4) {
  208      << std::string(Heading.size(), "=~-_'+<>"[Depth]) << "\n";
tools/clang/utils/TableGen/NeonEmitter.cpp
  416   unsigned getNumParams() const { return Proto.size() - 1; }
 1164     if (Name.size() >= 3 && isdigit(Name.back()) &&
 1225   for (unsigned I = 1; I < Proto.size(); ++I) {
 1881   S.replace(Idx, ToReplace.size(), ReplaceWith);
tools/lld/COFF/DriverUtils.cpp
  498       createMemoryBufferForManifestRes(manifest.size());
  502   writeResEntryHeader(buf, manifest.size());
tools/lld/ELF/InputFiles.cpp
 1454   for (size_t i = 0; i < s.size(); ++i)
tools/lld/wasm/OutputSections.cpp
   87   bodySize = codeSectionHeader.size();
  101   log(" headersize=" + Twine(header.size()));
  102   log(" codeheadersize=" + Twine(codeSectionHeader.size()));
  106   memcpy(buf, header.data(), header.size());
  107   buf += header.size();
  110   memcpy(buf, codeSectionHeader.data(), codeSectionHeader.size());
  137   bodySize = dataSectionHeader.size();
  164     bodySize += segment->header.size() + segment->size;
  169       inputSeg->outputOffset = segment->sectionOffset + segment->header.size() +
  182   memcpy(buf, header.data(), header.size());
  183   buf += header.size();
  186   memcpy(buf, dataSectionHeader.data(), dataSectionHeader.size());
  193     memcpy(segStart, segment->header.data(), segment->header.size());
  224   encodeULEB128(name.size(), os);
  234   createHeader(payloadSize + nameData.size());
  245   memcpy(buf, header.data(), header.size());
  246   buf += header.size();
  247   memcpy(buf, nameData.data(), nameData.size());
  248   buf += nameData.size();
tools/lld/wasm/OutputSections.h
   63   size_t getSize() const override { return header.size() + bodySize; }
   81   size_t getSize() const override { return header.size() + bodySize; }
  107     return header.size() + nameData.size() + payloadSize;
  107     return header.size() + nameData.size() + payloadSize;
tools/lld/wasm/SyntheticSections.cpp
   44     writeUleb128(to, body.size(), "subsection size");
   45     to.write(body.data(), body.size());
tools/lld/wasm/SyntheticSections.h
   47     memcpy(buf + offset, header.data(), header.size());
   48     memcpy(buf + offset + header.size(), body.data(), body.size());
   48     memcpy(buf + offset + header.size(), body.data(), body.size());
   51   size_t getSize() const override { return header.size() + body.size(); }
   51   size_t getSize() const override { return header.size() + body.size(); }
   60     createHeader(body.size());
tools/lld/wasm/Writer.cpp
  179   memcpy(buffer->getBufferStart(), header.data(), header.size());
 1095   fileSize += header.size();
tools/lldb/include/lldb/DataFormatters/FormatClasses.h
  137     if (m_type.m_type_name.size())
tools/lldb/include/lldb/Interpreter/CommandObject.h
   60     size_t len = pos->first.size();
tools/lldb/include/lldb/Utility/StringExtractor.h
   53     if (m_index < m_packet.size())
   54       return m_packet.size() - m_index;
  101     if (m_index < m_packet.size())
tools/lldb/source/API/SBCommandInterpreter.cpp
  390     const size_t partial_name_len = command_partial_str.size();
tools/lldb/source/API/SBStream.cpp
  106     m_opaque_up->Write(&local_data[0], local_data.size());
  141     m_opaque_up->Write(&local_data[0], local_data.size());
  162     m_opaque_up->Write(&local_data[0], local_data.size());
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp
   69     AddNameLookup(ConstString(name.c_str(), name.size()), name_type_mask);
tools/lldb/source/Commands/CommandCompletions.cpp
  230   CompletionRequest request(partial_name_str, partial_name_str.size(), result);
  307       g_property_names.SplitIntoLines(str.c_str(), str.size());
tools/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
  248       cmd_data->user_source.SplitIntoLines(line.c_str(), line.size());
tools/lldb/source/Commands/CommandObjectMemory.cpp
  432           switch (type_str[type_str.size() - 1]) {
  438             type_str.erase(type_str.size() - 1);
  444               type_str.erase(type_str.size() - 1);
tools/lldb/source/Commands/CommandObjectPlatform.cpp
  684                                  m_options.m_data.size(), error);
tools/lldb/source/Core/Communication.cpp
  257       return m_bytes.size();
  259     const size_t len = std::min<size_t>(dst_len, m_bytes.size());
tools/lldb/source/Core/Disassembler.cpp
  794     size_t len = line.size();
  800     if ((line.size() == 1) && line[0] == ']') {
  855     size_t len = line.size();
  861     if ((line.size() == 1) && (line[0] == '}')) {
  895         assert(value.size() == 1);
  903         assert(value.size() == 1);
  917         size_t len = value.size();
 1270     if (thumb_arch_name.size() > 3) {
tools/lldb/source/Core/DumpDataExtractor.cpp
  126     s->Write(apint_str.c_str(), apint_str.size());
tools/lldb/source/Core/FormatEntity.cpp
 2163               } else if (entry.printf_format.size() == 1) {
tools/lldb/source/Core/IOHandler.cpp
  193   if (line.size() == 1) {
 1445     if (static_cast<size_t>(m_max_submenu_name_length) < submenu->m_name.size())
 1446       m_max_submenu_name_length = submenu->m_name.size();
 1448         submenu->m_key_name.size())
 1449       m_max_submenu_key_name_length = submenu->m_key_name.size();
 1455   if (static_cast<size_t>(m_max_submenu_name_length) < menu_sp->m_name.size())
 1456     m_max_submenu_name_length = menu_sp->m_name.size();
 1458       menu_sp->m_key_name.size())
 1459     m_max_submenu_key_name_length = menu_sp->m_key_name.size();
tools/lldb/source/Core/StreamAsynchronousIO.cpp
   28     m_debugger.PrintAsync(m_data.data(), m_data.size(), m_for_stdout);
tools/lldb/source/DataFormatters/ValueObjectPrinter.cpp
  398     if (m_error.size()) {
  431       if (m_summary.size()) {
tools/lldb/source/Expression/DiagnosticManager.cpp
   27   if (str.size() && str.back() == '\n') {
tools/lldb/source/Expression/IRExecutionUnit.cpp
  655   if (!scope_qualified_name.size())
tools/lldb/source/Expression/REPL.cpp
  409               size_t bytes_written = code.size();
tools/lldb/source/Host/common/Editline.cpp
  893   const size_t max_len = longest->GetCompletion().size();
tools/lldb/source/Host/common/ProcessLaunchInfo.cpp
  279           const size_t empty_path_len = new_path.size();
  290             if (new_path.size() > empty_path_len)
tools/lldb/source/Host/common/Socket.cpp
  292       host_str = host_str.substr(1, host_str.size() - 2);
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1293   const size_t s_len = s.size();
 1332         if (end_quote_pos + 1 < command_string.size())
tools/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
   47             idx += percent_var_idx + match_str.size();
tools/lldb/source/Interpreter/CommandReturnObject.cpp
   25     strm.Write(s.c_str(), s.size());
tools/lldb/source/Interpreter/Options.cpp
 1088       if (input_line.size() > 0) {
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
 1107     if (thumb_arch_name.size() > 3) {
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
 1345         if (ku.first.size() > longest_name)
 1346           longest_name = ku.first.size();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
  506   start_loc += m_start_marker.size();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  322     expr.replace(offset, from.size(), to);
tools/lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.cpp
  194   if (!stop_reason_description.size()) {
  198     for (unsigned I = 1; I < stop_reason_description.size(); ++I)
tools/lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp
  142         ConstString(child_name.c_str(), child_name.size())));
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxAtomic.cpp
   77         summary.size() > 0) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
 1507   if (res_name.size() > 0) {
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 1969       if (name.size() > 1) {
 1971         e.entry.name.SetCStringWithLength(name.c_str() + 1, name.size() - 1);
 5080           rpath.erase(0, loader_path.size());
 5083           rpath.erase(0, executable_path.size());
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
  230            static_cast<int>(packet.size()));
  238   m_conn->Write(packet.c_str(), packet.size(), status, &error);
tools/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
  792   size_t path_len = path.size() + 1;
  859       size_t path_size = path.size();
  867     path_array_addr = process->AllocateMemory(path_array.size(), 
  884                          path_array.size(), utility_error);
  893     buffer_size += path.size() + 2;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
  417   size_t pkt_size = m_bytes.size();
  433   if (hash_mark_idx + 2 >= m_bytes.size())
  634                   new_packet.size());
  669     size_t original_packet_size = m_bytes.size();
  693           if (hash_pos + 2 < m_bytes.size()) {
  716       const size_t bytes_len = m_bytes.size();
  745       assert(content_length <= m_bytes.size());
  746       assert(total_length <= m_bytes.size());
  840         assert(checksum_idx < m_bytes.size());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 1611   if (!xml_document.ParseMemory(xml.c_str(), xml.size())) {
 3028             std::min<uint64_t>(dst_len, buffer.size());
 3571       module_spec.GetUUID().SetFromStringRef(uuid, uuid.size() / 2);
 3902               packet.PutBytesAsRawHex8(symbol_name.data(), symbol_name.size());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
  618         size_t count = buffer.size();
  757         response.PutEscapedBytes(output.c_str(), output.size());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
  400       AppendHexValue(response, zeros.data(), zeros.size(), false);
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 4507   if (xml_document.ParseMemory(raw.c_str(), raw.size(), xml_filename.c_str())) {
 4660     if (!doc.ParseMemory(raw.c_str(), raw.size(), "noname.xml"))
 4749     if (!doc.ParseMemory(raw.c_str(), raw.size(), "noname.xml"))
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
 2550     ret_val.SetCStringWithLength(buffer.c_str(), buffer.size());
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
 2990       if (scope_qualified_name.size()) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  182   if (qname.size() < 4 || child.asTag().getUniqueName().size() < 4)
tools/lldb/source/Symbol/TypeList.cpp
  145           const size_t type_scope_size = type_scope.size();
tools/lldb/source/Symbol/TypeMap.cpp
  175           const size_t type_scope_size = type_scope.size();
tools/lldb/source/Symbol/Variable.cpp
  419           variable_expr_path.drop_front(variable_name.size());
tools/lldb/source/Target/ModuleCache.cpp
   40   size_t size = result.size();
tools/lldb/source/Target/Process.cpp
 1982   return out_str.size();
 4234   size_t bytes_available = one_profile_data.size();
 4255   size_t bytes_available = m_stdout_data.size();
 4274   size_t bytes_available = m_stderr_data.size();
tools/lldb/source/Target/Target.cpp
 1821   return out_str.size();
tools/lldb/source/Utility/Args.cpp
  403   while (prev_pos < safe_arg.size()) {
  615   res.reserve(arg.size());
tools/lldb/source/Utility/CompletionRequest.cpp
   53   result.append(std::to_string(m_completion.size()));
tools/lldb/source/Utility/Event.cpp
  129   if (num_printable_chars == m_bytes.size())
  135                                                            m_bytes.size())));
  142 size_t EventDataBytes::GetByteSize() const { return m_bytes.size(); }
tools/lldb/source/Utility/GDBRemote.cpp
  101   if (Packet.bytes_transmitted != Packet.packet.data.size())
tools/lldb/source/Utility/StreamString.cpp
   38 size_t StreamString::GetSize() const { return m_packet.size(); }
   41   const size_t length = m_packet.size();
   54   const size_t length = m_packet.size();
tools/lldb/source/Utility/StringExtractor.cpp
   45   if (m_index < m_packet.size()) {
   85     if (set_eof_on_fail || m_index >= m_packet.size())
   95   if (m_index < m_packet.size()) {
  110   if (m_index < m_packet.size()) {
  125   if (m_index < m_packet.size()) {
  140   if (m_index < m_packet.size()) {
  162     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  172       if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  186     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  213     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  223       if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  237     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  305   return str.size();
  318   return str.size();
  328     return str.size();
  331   return str.size();
  339   if (m_index >= m_packet.size())
  358     m_index = m_packet.size();
  367   const size_t n = m_packet.size();
tools/lldb/source/Utility/StringExtractorGDBRemote.cpp
   22       if (m_packet.size() == 3)
   36     if (m_packet.size() == 2 && m_packet[1] == 'K')
   41     if (m_packet.size() == 1)
   46     if (m_packet.size() == 1)
   65   const size_t packet_size = m_packet.size();
  491   return str.size();
tools/lldb/source/Utility/StringLexer.cpp
   64   return (m_data.size() - m_position) >= s;
tools/lldb/source/Utility/StringList.cpp
   73     const size_t len = s.size();
  109     for (count = 0; count < std::min(prefix.size(), arg.size()); ++count) {
  147   return SplitIntoLines(lines.c_str(), lines.size());
tools/lldb/tools/lldb-server/lldb-gdbserver.cpp
  168           attach_target.size())
  204   return port_pipe.Write(socket_id.c_str(), socket_id.size() + 1,
tools/lldb/tools/lldb-vscode/IOStream.cpp
  144   line.erase(line.size() - 2);
tools/lldb/tools/lldb-vscode/JSONUtils.cpp
  543       const uint32_t comment_row = std::max(line_strm.str().size(), (size_t)60);
  545         if (line.size() < comment_row)
  546           line_strm.indent(comment_row - line_strm.str().size());
tools/lldb/tools/lldb-vscode/VSCode.cpp
   86   output.write_full(llvm::utostr(json_str.size()));
   92          << "Content-Length: " << json_str.size() << "\r\n\r\n"
tools/lldb/unittests/Host/FileSystemTest.cpp
   91       if (Path.size() < S.size() && S.find(Path) == 0) {
   93         if (LastSep == Path.size() || LastSep == Path.size() - 1)
   93         if (LastSep == Path.size() || LastSep == Path.size() - 1)
tools/lldb/unittests/Process/minidump/MinidumpParserTest.cpp
   65         std::make_shared<DataBufferHeap>(data.data(), data.size());
   91       duplicate_streams.data(), duplicate_streams.size());
tools/lldb/unittests/Utility/CompletionRequestTest.cpp
   36   const unsigned cursor_pos = command.size();
tools/lldb/unittests/Utility/VASprintfTest.cpp
   39   EXPECT_EQ(TestStr.size(), BigBuffer.size());
   47   EXPECT_EQ(TestStr.size(), SmallBuffer.size());
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp
  139     command << hex_encoded.size() << ',' << i << ',' << hex_encoded;
tools/lli/lli.cpp
  239         this->CacheDir[this->CacheDir.size() - 1] != '/')
  939       ChildPath.reset(new char[ChildExecPath.size() + 1]);
  941       ChildPath[ChildExecPath.size()] = '\0';
  943       ChildIn.reset(new char[ChildInStr.size() + 1]);
  945       ChildIn[ChildInStr.size()] = '\0';
  947       ChildOut.reset(new char[ChildOutStr.size() + 1]);
  949       ChildOut[ChildOutStr.size()] = '\0';
tools/llvm-ar/llvm-ar.cpp
  296   for (unsigned i = 0; i < Options.size(); ++i) {
tools/llvm-cov/CodeCoverage.cpp
  408           RemapTo + NativeFilename.substr(RemapFrom.size()).str();
tools/llvm-cov/SourceCoverageView.cpp
  104   int Len = Number.size();
tools/llvm-cov/SourceCoverageViewHTML.cpp
  547       Snippets[0] = Highlight(Snippets[0], 1, 1 + Snippets[0].size());
  561                                   CurSeg->Col + Snippets[I + 1].size());
  565     Snippets.back() = Highlight(Snippets.back(), 1, 1 + Snippets.back().size());
tools/llvm-cov/SourceCoverageViewText.cpp
  154   OS.indent(LineCoverageColumnWidth - C.size());
  195     PrevColumn += C.size();
tools/llvm-objcopy/MachO/MachOWriter.cpp
  207   assert(Sec.Segname.size() <= sizeof(Temp.segname) && "too long segment name");
  208   assert(Sec.Sectname.size() <= sizeof(Temp.sectname) &&
  211   memcpy(Temp.segname, Sec.Segname.data(), Sec.Segname.size());
  212   memcpy(Temp.sectname, Sec.Sectname.data(), Sec.Sectname.size());
tools/llvm-objdump/ELFDump.cpp
  287   uint16_t VerdefIndexWidth = std::to_string(Shdr.sh_info).size();
tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
   81   if (Buf.size() > MaxSize)
   91       reinterpret_cast<const uint8_t*>(Buf.data()), Buf.size(), Context);
  100   memcpy(Data, Buf.data(), Buf.size());
  101   return Buf.size();
tools/llvm-opt-report/OptReport.cpp
  289     unsigned VFDigits = llvm::utostr(MaxLI.VectorizationFactor).size();
  290     unsigned ICDigits = llvm::utostr(MaxLI.InterleaveCount).size();
  291     unsigned UCDigits = llvm::utostr(MaxLI.UnrollCount).size();
  298     unsigned LNDigits = llvm::utostr(NumLines).size();
  372             RS << std::string(UCDigits - RS.str().size(), ' ');
  385             RS << std::string(VFDigits + ICDigits + 1 - RS.str().size(), ' ');
tools/llvm-pdbutil/DumpOutputStyle.cpp
 1942       MaxNameLen = (Max == Names.end() ? 0 : Max->size());
tools/llvm-xray/xray-graph.cpp
  408        << (VA.SymbolName.size() > 40 ? VA.SymbolName.substr(0, 40) + "..."
tools/llvm-xray/xray-stacks.cpp
  466                     FuncId.size() > 60 ? FuncId.substr(0, 57) + "..." : FuncId,
  475                   LeafFuncId.size() > 60 ? LeafFuncId.substr(0, 57) + "..."
tools/sancov/sancov.cpp
  422             auto ColStr = Loc.substr(ColonPos + 1, Loc.size());
  459   return Path.substr(Pos + ClStripPathPrefix.size());
unittests/ADT/HashingTest.cpp
  106   EXPECT_EQ(hash_combine_range(s.c_str(), s.c_str() + s.size()), hash_value(s));
  107   EXPECT_EQ(hash_combine_range(s.c_str(), s.c_str() + s.size() - 1),
  108             hash_value(s.substr(0, s.size() - 1)));
  109   EXPECT_EQ(hash_combine_range(s.c_str() + 1, s.c_str() + s.size() - 1),
  110             hash_value(s.substr(1, s.size() - 2)));
  113   EXPECT_EQ(hash_combine_range(ws.c_str(), ws.c_str() + ws.size()),
  115   EXPECT_EQ(hash_combine_range(ws.c_str(), ws.c_str() + ws.size() - 1),
  116             hash_value(ws.substr(0, ws.size() - 1)));
  117   EXPECT_EQ(hash_combine_range(ws.c_str() + 1, ws.c_str() + ws.size() - 1),
  118             hash_value(ws.substr(1, ws.size() - 2)));
unittests/BinaryFormat/MsgPackWriterTest.cpp
   42     EXPECT_EQ(Output.size(), 1u);
  130     EXPECT_EQ(Output.size(), 1u);
unittests/Support/ARMAttributeParser.cpp
   34     reinterpret_cast<const uint8_t*>(OS.str().c_str()), OS.str().size());
unittests/Support/CommandLineTest.cpp
 1255   size_t ExpectedStrSize = ("  --" + ArgName + "=<value> - ").str().size();
 1263   size_t ExpectedStrSize = ("    =" + OptName + " - ").str().size();
 1272   size_t ExpectedStrSize = ("    =" + OptName + " - ").str().size();
 1297   size_t ExpectedStrSize = ("  -" + ArgName + "=<value> - ").str().size();
unittests/Support/Path.cpp
 1528             *FD, makeMutableArrayRef(&*Buf.begin(), Buf.size())))
 1548             *FD, makeMutableArrayRef(&*Buf.begin(), Buf.size()), Offset))
unittests/Support/VirtualFileSystemTest.cpp
   97       if (Path.size() < S.size() && S.find(Path) == 0) {
   99         if (LastSep == Path.size() || LastSep == Path.size() - 1)
   99         if (LastSep == Path.size() || LastSep == Path.size() - 1)
  624     int Index = Name[Name.size() - 1] - 'a';
  699       int Index = Name[Name.size() - 1] - 'a';
unittests/XRay/FDRTraceWriterTest.cpp
  141   ASSERT_THAT(Data.size(), Eq(32u));
  159   ASSERT_THAT(Data.size(), Eq(BufferSize + 32));
usr/include/c++/7.4.0/bits/basic_string.h
  301 	if (__pos > this->size())
  304 				   __s, __pos, this->size());
  311 	if (this->max_size() - (this->size() - __n1) < __n2)
  320 	const bool __testoff =  __off < this->size() - __pos;
  321 	return __testoff ? __off : this->size() - __pos;
  664 		if (__str.size() <= _S_local_capacity)
  672 		    const auto __len = __str.size();
  740 	    if (__str.size())
  741 	      this->_S_copy(_M_data(), __str._M_data(), __str.size());
  742 	    _M_set_length(__str.size());
  833       { return iterator(_M_data() + this->size()); }
  841       { return const_iterator(_M_data() + this->size()); }
  967 	if (capacity() > size())
 1022       { return this->size() == 0; }
 1097 	if (__n >= size())
 1101 				   __n, this->size());
 1136 	return operator[](this->size() - 1);
 1147 	return operator[](this->size() - 1);
 1212       { return _M_append(__str._M_data(), __str.size()); }
 1271       { return _M_replace_aux(this->size(), size_type(0), __n, __c); }
 1341 	const size_type __size = this->size();
 1394       { return _M_replace(size_type(0), this->size(), __str._M_data()
 1412 	return _M_replace(size_type(0), this->size(), __s, __n);
 1428 	return _M_replace(size_type(0), this->size(), __s,
 1443       { return _M_replace_aux(size_type(0), this->size(), __n, __c); }
 1623 			     __str._M_data(), __str.size()); }
 1848 	_M_erase(size() - 1, 1);
 1871       { return this->replace(__pos, __n, __str._M_data(), __str.size()); }
 2343       { return this->find(__str.data(), __pos, __str.size()); }
 2405       { return this->rfind(__str.data(), __pos, __str.size()); }
 2484       { return this->find_first_of(__str.data(), __pos, __str.size()); }
 2651       { return this->find_first_not_of(__str.data(), __pos, __str.size()); }
 2835 	const size_type __size = this->size();
 2836 	const size_type __osize = __str.size();
 5968       const auto __size = __lhs.size() + __rhs.size();
 5968       const auto __size = __lhs.size() + __rhs.size();
 6019     { return (__lhs.size() == __rhs.size()
 6019     { return (__lhs.size() == __rhs.size()
 6021 						    __lhs.size())); }
 6289       return __ostream_insert(__os, __str.data(), __str.size());
usr/include/c++/7.4.0/bits/basic_string.tcc
  387 			  __s.size());
 1165       __str.reserve(__len + __rhs.size());
 1178       const __size_type __len = __rhs.size();
usr/include/c++/7.4.0/bits/locale_facets.tcc
   88 	  _M_grouping_size = __g.size();
  296 		    if (__found_grouping.size())
  319 		    if (__found_grouping.size() && !__found_dec)
  355       if (__found_grouping.size())
  554 	if (__found_grouping.size())
  567 	if ((!__sep_pos && !__found_zero && !__found_grouping.size())
usr/include/c++/7.4.0/bits/locale_facets_nonio.tcc
   85 	  _M_grouping_size = __g.size();
  310 	    if (__res.size() > 1)
  315 		  __res.erase(0, __only_zeros ? __res.size() - 1 : __first);
  323 	    if (__grouping_tmp.size())
  394       const size_type __len = __str.size();
usr/include/c++/7.4.0/bits/regex.h
  235 	  return __fclt.transform(__s.data(), __s.data() + __s.size());
  493 	: basic_regex(__s.data(), __s.data() + __s.size(), __f)
usr/include/c++/7.4.0/bits/regex_compiler.h
  468 						 __s.data() + __s.size());
  481 						 __s.data() + __s.size());
  486 					   __st.data() + __st.size());
  496 						 __s.data() + __s.size(),
usr/include/c++/7.4.0/bits/regex_compiler.tcc
  480 	  if (__symbol.size() == 1)
usr/include/c++/7.4.0/sstream
  115       : __streambuf_type(), _M_mode(), _M_string(__str.data(), __str.size())
  194 	_M_string.assign(__s.data(), __s.size());
  206 	  __len = _M_string.size();
utils/FileCheck/FileCheck.cpp
  322     LabelWidth = std::max((std::string::size_type)LabelWidth, A.Label.size());
utils/TableGen/AsmWriterEmitter.cpp
  235     if (Instrs.size() > 70) {
  247   for (unsigned i = 0; i != Str.size(); ++i) {
  248     if (Str[i] == '\\' && i != Str.size()-1) {
utils/TableGen/AsmWriterInst.cpp
   30     if (Str.size() == 1)
   61   while (LastEmitted != AsmString.size()) {
   64     if (DollarPos == std::string::npos) DollarPos = AsmString.size();
   87       if (DollarPos+1 != AsmString.size()) {
  104     } else if (DollarPos+1 != AsmString.size() &&
  116       if (VarEnd < AsmString.size() && '{' == AsmString[VarEnd]) {
  122       while (VarEnd < AsmString.size() && isIdentChar(AsmString[VarEnd]))
  135         if (VarEnd >= AsmString.size())
  144           if (VarEnd >= AsmString.size())
  151           while (VarEnd < AsmString.size() && isIdentChar(AsmString[VarEnd]))
utils/TableGen/CodeGenRegisters.cpp
 1851         if (RegUnitSets[SubIdx].Name.size() < RegUnitSets[SuperIdx].Name.size())
 1851         if (RegUnitSets[SubIdx].Name.size() < RegUnitSets[SuperIdx].Name.size())
utils/TableGen/CodeGenTarget.cpp
  619   if (DefName.size() <= 4 ||
  638     for (unsigned i = 0, e = EnumName.size(); i != e; ++i)
  642     if (Name.size() <= 5 ||
  651     if (Name.size() < 6+TargetPrefix.size() ||
  651     if (Name.size() < 6+TargetPrefix.size() ||
  652         std::string(Name.begin() + 5, Name.begin() + 6 + TargetPrefix.size())
utils/TableGen/IntrinsicEmitter.cpp
  122     if (Ints[i].EnumName.size() < 40)
  123       OS << std::string(40-Ints[i].EnumName.size(), ' ');
utils/TableGen/SequenceToOffsetTable.h
   59     return A.size() <= B.size() && std::equal(A.rbegin(), A.rend(), B.rbegin());
   59     return A.size() <= B.size() && std::equal(A.rbegin(), A.rend(), B.rbegin());
   98       Entries += I->first.size() + 1;
  108     return I->second + (I->first.size() - Seq.size());
  108     return I->second + (I->first.size() - Seq.size());
utils/TableGen/SubtargetEmitter.cpp
 1321       if (SchedClass.Name.size() < 18)
 1322         OS.indent(18 - SchedClass.Name.size());
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp
   74         if (CGIP.second->AsmString.size() <= CGI.AsmString.size())
   74         if (CGIP.second->AsmString.size() <= CGI.AsmString.size())
utils/benchmark/src/benchmark.cc
  401         std::max<size_t>(name_field_width, benchmark.name.size());
  405       stat_field_width = std::max<size_t>(stat_field_width, Stat.name_.size());
utils/benchmark/src/sysinfo.cc
  406     if (ln.size() >= Key.size() && ln.compare(0, Key.size(), Key) == 0) {
  406     if (ln.size() >= Key.size() && ln.compare(0, Key.size(), Key) == 0) {
  406     if (ln.size() >= Key.size() && ln.compare(0, Key.size(), Key) == 0) {
  464     if (Key.size() > Value.size()) return false;
  464     if (Key.size() > Value.size()) return false;
utils/unittest/googletest/include/gtest/internal/gtest-param-util.h
  646     for (std::string::size_type index = 0; index < name.size(); ++index) {
utils/unittest/googletest/src/gtest-printers.cc
  355   PrintCharsAsStringTo(s.data(), s.size(), os);
  367   PrintCharsAsStringTo(s.data(), s.size(), os);
utils/unittest/googletest/src/gtest.cc
 1274   size_t start = 0, end = str.size();
 3480   for (size_t i = 0; i < str.size(); ++i) {
 3525   output.reserve(str.size());
utils/yaml-bench/YAMLBench.cpp
  181   while (JSONText.size() < MemoryBytes) {
  188     if (JSONText.size() < MemoryBytes) Stream << ",";