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

References

gen/include/llvm/IR/IntrinsicImpl.inc
26954       return strncmp(getName(), RHS.data(), RHS.size()) < 0;
31814       return strncmp(getName(), RHS.data(), RHS.size()) < 0;
gen/lib/Target/AArch64/AArch64GenAsmMatcher.inc
  262   switch (Name.size()) {
 7799   switch (Name.size()) {
gen/lib/Target/AArch64/AArch64GenGICombiner.inc
   39   switch (RuleIdentifier.size()) {
gen/lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc
  205   switch (Mnemonic.size()) {
 4421   switch (Name.size()) {
gen/lib/Target/ARM/ARMGenAsmMatcher.inc
  188   switch (Name.size()) {
  681   switch (Mnemonic.size()) {
 6128   switch (Name.size()) {
gen/lib/Target/AVR/AVRGenAsmMatcher.inc
   78   switch (Name.size()) {
  294   switch (Name.size()) {
  696   switch (Name.size()) {
gen/lib/Target/BPF/BPFGenAsmMatcher.inc
   52   switch (Name.size()) {
  397   switch (Name.size()) {
gen/lib/Target/Hexagon/HexagonGenAsmMatcher.inc
   66   switch (Name.size()) {
  928   switch (Name.size()) {
 3287   switch (Name.size()) {
gen/lib/Target/Lanai/LanaiGenAsmMatcher.inc
   60   switch (Name.size()) {
  571   switch (Name.size()) {
gen/lib/Target/MSP430/MSP430GenAsmMatcher.inc
   52   switch (Name.size()) {
  105   switch (Name.size()) {
gen/lib/Target/Mips/MipsGenAsmMatcher.inc
 2104   switch (Name.size()) {
gen/lib/Target/PowerPC/PPCGenAsmMatcher.inc
   72       switch (Mnemonic.size()) {
   87   switch (Mnemonic.size()) {
 3223   switch (Name.size()) {
gen/lib/Target/RISCV/RISCVGenAsmMatcher.inc
   97   switch (Name.size()) {
  292   switch (Name.size()) {
  544       switch (Mnemonic.size()) {
  583   switch (Mnemonic.size()) {
 1225   switch (Name.size()) {
gen/lib/Target/Sparc/SparcGenAsmMatcher.inc
   94       switch (Mnemonic.size()) {
  230   switch (Mnemonic.size()) {
 1862   switch (Name.size()) {
gen/lib/Target/X86/X86GenAsmMatcher.inc
   59   switch (Name.size()) {
  952       switch (Mnemonic.size()) {
 1652       switch (Mnemonic.size()) {
 1901   switch (Mnemonic.size()) {
 5441   switch (Name.size()) {
gen/tools/clang/include/clang/AST/Attrs.inc
  479         char *Mem = new (Ctx, 1) char[Ref.size()];
  480         std::memcpy(Mem, Ref.data(), Ref.size());
  481         tags_[I] = StringRef(Mem, Ref.size());
  792               , aliaseeLength(Aliasee.size()),aliasee(new (Ctx, 1) char[aliaseeLength])
  809     aliaseeLength = S.size();
 1284               , annotationLength(Annotation.size()),annotation(new (Ctx, 1) char[annotationLength])
 1301     annotationLength = S.size();
 1744               , labelLength(Label.size()),label(new (Ctx, 1) char[labelLength])
 1755               , labelLength(Label.size()),label(new (Ctx, 1) char[labelLength])
 1773     labelLength = S.size();
 2120               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
 2122               , replacementLength(Replacement.size()),replacement(new (Ctx, 1) char[replacementLength])
 2171     messageLength = S.size();
 2188     replacementLength = S.size();
 3286               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
 3314     nameLength = S.size();
 3488               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
 3505     nameLength = S.size();
 4147               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
 4148               , replacementLength(Replacement.size()),replacement(new (Ctx, 1) char[replacementLength])
 4175     messageLength = S.size();
 4188     replacementLength = S.size();
 4330               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
 4346               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
 4370     messageLength = S.size();
 4531               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
 4552     messageLength = S.size();
 4785               , languageLength(Language.size()),language(new (Ctx, 1) char[languageLength])
 4786               , definedInLength(DefinedIn.size()),definedIn(new (Ctx, 1) char[definedInLength])
 4815     languageLength = S.size();
 4828     definedInLength = S.size();
 5545               , resolverLength(Resolver.size()),resolver(new (Ctx, 1) char[resolverLength])
 5562     resolverLength = S.size();
 5653               , sectionLength(Section.size()),section(new (Ctx, 1) char[sectionLength])
 5670     sectionLength = S.size();
 7930         char *Mem = new (Ctx, 1) char[Ref.size()];
 7931         std::memcpy(Mem, Ref.data(), Ref.size());
 7932         sanitizers_[I] = StringRef(Mem, Ref.size());
 8945         char *Mem = new (Ctx, 1) char[Ref.size()];
 8946         std::memcpy(Mem, Ref.data(), Ref.size());
 8947         implVendors_[I] = StringRef(Mem, Ref.size());
10446               , metadataNameLength(MetadataName.size()),metadataName(new (Ctx, 1) char[metadataNameLength])
10463     metadataNameLength = S.size();
11631               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
11648     nameLength = S.size();
11691               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
11708     nameLength = S.size();
11751               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
11768     nameLength = S.size();
11811               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
11828     nameLength = S.size();
11871               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
11888     nameLength = S.size();
12960               , nameLength(Name.size()),name(new (Ctx, 1) char[nameLength])
12985     nameLength = S.size();
13368         char *Mem = new (Ctx, 1) char[Ref.size()];
13369         std::memcpy(Mem, Ref.data(), Ref.size());
13370         diagnosticIdentifiers_[I] = StringRef(Mem, Ref.size());
13630               , modelLength(Model.size()),model(new (Ctx, 1) char[modelLength])
13647     modelLength = S.size();
13690               , featuresStrLength(FeaturesStr.size()),featuresStr(new (Ctx, 1) char[featuresStrLength])
13707     featuresStrLength = S.size();
14507               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
14518               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
14544     messageLength = S.size();
14727               , guidLength(Guid.size()),guid(new (Ctx, 1) char[guidLength])
14744     guidLength = S.size();
15042               , messageLength(Message.size()),message(new (Ctx, 1) char[messageLength])
15076     messageLength = S.size();
15205               , aliaseeLength(Aliasee.size()),aliasee(new (Ctx, 1) char[aliaseeLength])
15229     aliaseeLength = S.size();
15272               , importModuleLength(ImportModule.size()),importModule(new (Ctx, 1) char[importModuleLength])
15289     importModuleLength = S.size();
15332               , importNameLength(ImportName.size()),importName(new (Ctx, 1) char[importNameLength])
15349     importNameLength = S.size();
gen/tools/clang/include/clang/AST/CommentCommandInfo.inc
  137   switch (Name.size()) {
gen/tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.inc
   11   switch (Name.size()) {
gen/tools/clang/include/clang/AST/CommentHTMLTags.inc
   10   switch (Name.size()) {
gen/tools/clang/include/clang/AST/CommentHTMLTagsProperties.inc
   10   switch (Name.size()) {
   73   switch (Name.size()) {
gen/tools/clang/include/clang/Sema/AttrParsedAttrKinds.inc
   11   switch (Name.size()) {
 1596   switch (Name.size()) {
 1806   switch (Name.size()) {
 1814   switch (Name.size()) {
 3366   switch (Name.size()) {
 4075   switch (Name.size()) {
 4378   switch (Name.size()) {
gen/tools/clang/lib/Sema/OpenCLBuiltins.inc
12697   switch (Name.size()) {
gen/tools/lldb/scripts/LLDBWrapPython.cpp
16643       arg3 = str.size();
include/llvm/ADT/CachedHashString.h
   40       : P(S.data()), Size(S.size()), Hash(Hash) {
   41     assert(S.size() <= std::numeric_limits<uint32_t>::max());
  105       : P(new char[S.size()]), Size(S.size()), Hash(Hash) {
  105       : P(new char[S.size()]), Size(S.size()), Hash(Hash) {
  106     memcpy(P, S.data(), S.size());
include/llvm/ADT/StringExtras.h
  144   size_t Length = Input.size();
  175   Output.reserve((Input.size() + 1) / 2);
  176   if (Input.size() % 2 == 1) {
  181   assert(Input.size() % 2 == 0);
  319   size_t Len = (std::distance(Begin, End) - 1) * Separator.size();
  321     Len += (*Begin).size();
  352   return Str.size();
include/llvm/ADT/StringMap.h
  180     size_t KeyLength = Key.size();
include/llvm/ADT/StringRef.h
  331           return size() - S.size();
  331           return size() - S.size();
  608       if (N >= size())
  610       return drop_back(size() - N);
  618       if (N >= size())
  620       return drop_front(size() - N);
  641       assert(size() >= N && "Dropping more elements than exist");
  649       assert(size() >= N && "Dropping more elements than exist");
  650       return substr(0, size()-N);
  673       *this = drop_front(Prefix.size());
  683       *this = drop_back(Suffix.size());
  735       return std::make_pair(slice(0, Idx), slice(Idx + Separator.size(), npos));
  753       return std::make_pair(slice(0, Idx), slice(Idx + Separator.size(), npos));
  909     return buffer.append(string.data(), string.size());
include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1036                     << std::string(F.getName().size(), '=') << "\n");
include/llvm/BinaryFormat/MsgPackDocument.h
  364     Strings.push_back(std::unique_ptr<char[]>(new char[S.size()]));
  365     memcpy(&Strings.back()[0], S.data(), S.size());
  366     return StringRef(&Strings.back()[0], S.size());
include/llvm/Bitstream/BitstreamWriter.h
  299     unsigned BlobLen = (unsigned) Blob.size();
  364           assert(Blob.size() == BlobLen && "BlobLen got changed");
  403     emitBlob(makeArrayRef((const uint8_t *)Bytes.data(), Bytes.size()),
include/llvm/DebugInfo/CodeView/TypeRecord.h
  586     assert(GuidStr.size() == 16 && "guid isn't 16 bytes");
include/llvm/DebugInfo/DWARF/DWARFDataExtractor.h
   59   size_t size() const { return Section == nullptr ? 0 : Section->Data.size(); }
include/llvm/DebugInfo/DWARF/DWARFExpression.h
  109           Offset >= Expr->Data.getData().size() ||
  115       Offset = Op.isError() ? Expr->Data.getData().size() : Op.EndOffset;
  117           Offset >= Expr->Data.getData().size() ||
  136   iterator end() const { return iterator(this, Data.getData().size()); }
include/llvm/DebugInfo/DWARF/DWARFListTable.h
  258                      dwarf::RangeListEncodingString(Entry.EntryKind).size());
include/llvm/DebugInfo/GSYM/StringTable.h
   30     if (Offset < Data.size()) {
   42   const size_t Size = S.Data.size();
   46     Offset += Str.size() + 1;
include/llvm/ExecutionEngine/JITLink/JITLink.h
  159         Size(Content.size()), Ordinal(Ordinal) {
  205     Size = Content.size();
include/llvm/ExecutionEngine/Orc/RawByteChannel.h
  140     if (auto Err = serializeSeq(C, static_cast<uint64_t>(S.size())))
  142     return C.appendBytes((const char *)S.data(), S.size());
include/llvm/ExecutionEngine/RuntimeDyldChecker.h
   82         : ContentPtr(Content.data()), Size(Content.size()),
   99       Size = Content.size();
include/llvm/IR/Constants.h
  665     return Str.substr(0, Str.size()-1);
include/llvm/IR/Metadata.h
  622   unsigned getLength() const { return (unsigned)getString().size(); }
include/llvm/MC/MCAsmMacro.h
   92     return Str.slice(1, Str.size() - 1);
include/llvm/MC/MCParser/MCTargetAsmParser.h
   92     return BaseReg.size();
   95     return IndexReg.size();
include/llvm/Object/ELF.h
   40   if (Object.size() < ELF::EI_NIDENT)
  111   size_t getBufSize() const { return Buf.size(); }
  406       Offset + Size > Buf.size())
  497   if (sizeof(Elf_Ehdr) > Object.size())
  498     return createError("invalid buffer: the size (" + Twine(Object.size()) +
  514   const uint64_t FileSize = Buf.size();
  572   if (Pos + sizeof(T) > Buf.size())
  696   if (Offset >= DotShstrtab.size())
include/llvm/Object/ELFTypes.h
  250   if (Offset >= StrTab.size())
  255                              Offset, StrTab.size());
include/llvm/ObjectYAML/CodeViewYAMLTypeHashing.h
   34     assert(S.size() == 8 && "Invalid hash size!");
include/llvm/Passes/PassBuilder.h
  748     PipelineName = PipelineName.substr(11, PipelineName.size() - 12);
  757     PipelineName = PipelineName.substr(8, PipelineName.size() - 9);
include/llvm/ProfileData/GCOV.h
  200     if (Buffer->getBuffer().size() < Cursor + 4) {
  226     if (Buffer->getBuffer().size() < Cursor + Len) {
include/llvm/ProfileData/SampleProf.h
  513         if (Dit == It + Suffix.size() - 1)
include/llvm/Support/CommandLine.h
 1209     assert((MF != Grouping || O.ArgStr.size() == 1) &&
include/llvm/Support/DataExtractor.h
  537   bool eof(const Cursor &C) const { return Data.size() == C.Offset; }
  544   bool isValidOffset(uint64_t offset) const { return Data.size() > offset; }
include/llvm/Support/MemoryBuffer.h
  278   size_t getBufferSize() const { return Buffer.size(); }
include/llvm/Support/SHA1.h
   41                              Str.size()));
include/llvm/Support/ScopedPrinter.h
  299                           Value.size());
  314                           Value.size());
include/llvm/Support/TypeName.h
   34   Name = Name.drop_front(Key.size());
include/llvm/Support/YAMLTraits.h
  541         std::min(Input.find_first_not_of("0123456789"), Input.size()));
  564     return S.size() > 2 &&
  568     return S.size() > 2 && S.drop_front(2).find_first_not_of(
  579        (S.size() > 1 && std::strchr("0123456789", S[1]) == nullptr)))
include/llvm/Support/raw_ostream.h
  181     size_t Size = Str.size();
include/llvm/TableGen/Record.h
 1797       for (size_t I = 0, E = Rec.size(); I != E; ++I, ++Len) {
 1845       if (LHSPart.second.size() != RHSPart.second.size())
 1845       if (LHSPart.second.size() != RHSPart.second.size())
 1846         return LHSPart.second.size() < RHSPart.second.size();
 1846         return LHSPart.second.size() < RHSPart.second.size();
include/llvm/Target/TargetIntrinsicInfo.h
   51     return lookupName(Name.data(), Name.size());
include/llvm/TextAPI/MachO/InterfaceFile.h
  390     void *Ptr = Allocator.Allocate(String.size(), 1);
  391     memcpy(Ptr, String.data(), String.size());
  392     return StringRef(reinterpret_cast<const char *>(Ptr), String.size());
lib/Analysis/ConstantFolding.cpp
  655     size_t StrLen = Str.size();
 1535     if (Name.size() < 12 || Name[1] != '_')
lib/AsmParser/Parser.cpp
  165   if (Read != Asm.size()) {
lib/BinaryFormat/Magic.cpp
   35   if (Magic.size() < 4)
   43       if (Magic.size() < MinSize)
   54     if (Magic.size() >= sizeof(COFF::WinResMagic) &&
   87     if (startswith(Magic, "\177ELF") && Magic.size() >= 18) {
  115       if (Magic.size() >= 8 && Magic[7] < 43)
  135       if (Magic.size() >= MinSize)
  145       if (Magic.size() >= MinSize)
  195     if (startswith(Magic, "MZ") && Magic.size() >= 0x3c + 4) {
lib/BinaryFormat/MsgPackWriter.cpp
  102   size_t Size = s.size();
lib/Bitcode/Reader/BitcodeAnalyzer.cpp
  527     if (Strings.size() < Size)
  964             for (unsigned i = 0, e = Blob.size(); i != e; ++i)
  973               O->OS << "unprintable, " << Blob.size() << " bytes.";
lib/Bitcode/Reader/BitcodeReader.cpp
  476   if (Record[0] + Record[1] > Strtab.size())
lib/Bitcode/Reader/MetadataLoader.cpp
 1936   if (StringsOffset > Blob.size())
 1951     if (Strings.size() < Size)
lib/Bitcode/Writer/BitcodeWriter.cpp
  588   for (unsigned i = 0, e = Str.size(); i != e; ++i) {
 1098     Vals.push_back(C->getName().size());
 1269     Vals.push_back(GV.getName().size());
 1298       Vals.push_back(GV.getPartition().size());
 1314     Vals.push_back(F.getName().size());
 1337     Vals.push_back(F.getPartition().size());
 1350     Vals.push_back(A.getName().size());
 1361     Vals.push_back(A.getPartition().size());
 1373     Vals.push_back(I.getName().size());
 1381     Vals.push_back(I.getPartition().size());
 4573     Vals.push_back(GV.getName().size());
 4587     Vals.push_back(F.getName().size());
 4601     Vals.push_back(A.getName().size());
 4615     Vals.push_back(I.getName().size());
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2332   for (unsigned i = 1, e = Data.size(); i != e; ++i)
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  118     Str = Str.substr(0, Str.size()-1);
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1096         assert(Str.data()[Str.size()] == '\0' && "non-nullterminated MDString");
 1097         OS.EmitBytes(StringRef(Str.data(), Str.size() + 1));
lib/CodeGen/AsmPrinter/DIE.cpp
  617   return S.size() + 1;
lib/CodeGen/AsmPrinter/DwarfStringPool.cpp
   35     NumBytes += Str.size() + 1;
lib/CodeGen/MIRParser/MILexer.cpp
   44     End = Ptr + Str.size();
  119   Cursor C = Cursor(Value.substr(1, Value.size() - 2));
  122   Str.reserve(C.remaining().size());
  288   unsigned StringOffset = PrefixLength + Number.size(); // Drop '%bb.<id>'
  308   if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size())))
  311   C.advance(Rule.size());
  321   if (!C.remaining().startswith(Rule) || !isdigit(C.peek(Rule.size())))
  324   C.advance(Rule.size());
  329   unsigned StringOffset = Rule.size() + Number.size();
  329   unsigned StringOffset = Rule.size() + Number.size();
  363   return lexName(C, Token, MIToken::SubRegisterIndex, Rule.size(),
  372   if (isdigit(C.peek(Rule.size())))
  374   return lexName(C, Token, MIToken::NamedIRBlock, Rule.size(), ErrorCallback);
  382   if (isdigit(C.peek(Rule.size())))
  384   return lexName(C, Token, MIToken::NamedIRValue, Rule.size(), ErrorCallback);
  477   C.advance(Rule.size());
  483     StringRef String = Start.upto(C).drop_front(Rule.size());
  504   StringRef String = Start.upto(R).drop_front(Rule.size());
  551   if (StrVal.size() <= PrefLen)
lib/CodeGen/MIRParser/MIParser.cpp
  538   assert(Loc >= Source.data() && Loc <= (Source.data() + Source.size()));
 1522     if (SizeStr.size() == 0 || !llvm::all_of(SizeStr, isdigit))
 1566   if (SizeStr.size() == 0 || !llvm::all_of(SizeStr, isdigit))
 1601   if (SizeStr.size() == 0 || !llvm::all_of(SizeStr, isdigit))
 2658   APInt A(V.size()*4, V, 16);
lib/CodeGen/MachineFunction.cpp
  458   char *Dest = Allocator.Allocate<char>(Name.size() + 1);
  460   Dest[Name.size()] = 0;
lib/CodeGen/MachineOperand.cpp
  689       size_t e = CFI.getValues().size() - 1;
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 3976   unsigned S = Constraint.size();
 4124   StringRef RegName(Constraint.data() + 1, Constraint.size() - 2);
lib/CodeGen/TargetInstrInfo.cpp
   72                  MAI.getCommentString().size()) == 0;
lib/CodeGen/TargetLoweringBase.cpp
 1862   if (RefStepString.size() == 1) {
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
  206     auto NullTerminatedString = StringRef(Value.data(), Value.size() + 1);
  209     incrStreamedLen(NullTerminatedString.size());
lib/DebugInfo/CodeView/DebugStringTableSubsection.cpp
   54     StringSize += S.size() + 1; // +1 for '\0'
lib/DebugInfo/CodeView/TypeRecordMapping.cpp
  155       size_t BytesNeeded = Name.size() + UniqueName.size() + 2;
  155       size_t BytesNeeded = Name.size() + UniqueName.size() + 2;
  160         size_t DropN = std::min(N.size(), BytesToDrop / 2);
  161         size_t DropU = std::min(U.size(), BytesToDrop - DropN);
  487       NamesLen += Name.size() + 1;
lib/DebugInfo/DWARF/DWARFContext.cpp
  140   uint64_t SectionSize = StringOffsetsSection.Data.size();
  222     uint64_t size = StringOffsetsSection.Data.size();
  740   LocDWO->parse(LocData, 0, LocData.getData().size(), 4 /* Version */);
  864   if (stmtOffset >= U->getLineSection().Data.size())
lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp
  126   if (Data && CUAbbrOffset < Data->getData().size()) {
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
  412         for (unsigned i = 0, e = AugmentationString.size(); i != e; ++i) {
lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
  132   while (Offset < data.getData().size()) {
  238                  MaxEncodingStringLength - EncodingString.size() + 1, '(');
  311                    dwarf::LocListEncodingString(Entry.Kind).size());
lib/DebugInfo/DWARF/DWARFDebugPubTable.cpp
   36     while (Offset < Sec.Data.size()) {
lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp
  195                  MaxEncodingStringLength - EncodingString.size() + 1, ']');
lib/DebugInfo/DWARF/DWARFDie.cpp
  144   OS << TagStr.substr(7, TagStr.size() - 12) << " ";
lib/DebugInfo/DWARF/DWARFExpression.cpp
  293       while (FailOffset < Data.getData().size())
  311     if (Op.getEndOffset() < Data.getData().size())
lib/DebugInfo/DWARF/DWARFUnit.cpp
  213   if (AddrOffsetSection->Data.size() < Offset + getAddressByteSize())
  227   if (StringOffsetSection.Data.size() < Offset + ItemSize)
  469     if (RangeSection->Data.size()) {
  899             {0, StringOffsetSection.Data.size(), 4, DWARF32})};
lib/DebugInfo/DWARF/DWARFVerifier.cpp
  454       if (*SectionOffset >= DObj.getRangesSection().Data.size())
  463       if (*SectionOffset >= DObj.getLineSection().Data.size())
  570       if (*RefVal >= DieCU->getInfoSection().Data.size()) {
  586     if (SecOffset && *SecOffset >= DObj.getStrSection().size()) {
  613     if (DObj.getStrOffsetsSection().Data.size() < Offset + ItemSize) {
  622     if (StringOffset >= DObj.getStrSection().size()) {
  669     if (LineTableOffset < DCtx.getDWARFObj().getLineSection().Data.size()) {
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
  119   size_t LS = S1.size();
  120   size_t RS = S2.size();
lib/DebugInfo/PDB/Native/Hash.cpp
   22   uint32_t Size = Str.size();
lib/DebugInfo/PDB/Native/PDBFileBuilder.cpp
   94   Expected<uint32_t> ExpectedIndex = allocateNamedStream(Name, Data.size());
lib/ExecutionEngine/ExecutionEngine.cpp
 1171     memcpy(Addr, Data.data(), Data.size());
lib/ExecutionEngine/JITLink/JITLinkGeneric.h
  194                  << B->getContent().size() << " bytes, from "
  198         memcpy(BlockDataPtr, B->getContent().data(), B->getContent().size());
  214         B->setContent(StringRef(BlockDataPtr, B->getContent().size()));
  217         LastBlockEnd = BlockDataPtr + B->getContent().size();
lib/ExecutionEngine/JITLink/MachO.cpp
   36   if (Data.size() < 4) {
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
  146         if (DataOffset + NSec.Size > Obj.getData().size())
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
   62           G.addAnonymousSymbol(B, 0, RecordContent.size(), false, false);
   84           G.addAnonymousSymbol(B, 0, RecordContent.size(), false, false);
lib/ExecutionEngine/JITLink/MachO_arm64.cpp
  238             BlockToFix->getAddress() + BlockToFix->getContent().size())
lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
  246             BlockToFix->getAddress() + BlockToFix->getContent().size())
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  212                     (*Name).size() - HasGlobalPrefix);
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
 1077     if (Name.size() == 0) {
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
  450         FirstNonDigit = Expr.size();
  454         FirstNonDigit = Expr.size();
  667     ArrayRef<uint8_t> SymbolBytes(SymbolMem.bytes_begin(), SymbolMem.size());
  721       DidAllTestsPass &= check(Line.substr(RulePrefix.size()));
lib/IR/AsmWriter.cpp
  405     for (unsigned i = 0, e = Name.size(); i != e; ++i) {
 3148     for (unsigned i = 1, e = Name.size(); i != e; ++i) {
lib/IR/AutoUpgrade.cpp
  495   if (Name.size() <= 8 || !Name.startswith("llvm."))
 2818                          (Name.size() > 18 && Name[18] == 'i');
 2886                          (Name.size() > 18 && Name[18] == 'i');
 2954                          (Name.size() > 18 && Name[18] == 'i');
 3171         if (Name[Name.size()-5] == 's')
 3226         if (Name[Name.size()-5] == 's')
 4096       C, (Twine("llvm.loop.vectorize.") + OldTag.drop_front(OldPrefix.size()))
lib/IR/Constants.cpp
 2583     return get(Context, makeArrayRef(Data, Str.size()));
lib/IR/Core.cpp
  176   *Length = S.size();
  183   *Length = S.size();
  342     Result[i].KeyLen = ModuleFlag.Key->getString().size();
  821   *Length = V->getName().size();
 1116       *Length = S->getString().size();
 1174   *NameLen = NamedNode->getName().size();
 1238   *Length = S.size();
 1262   *Length = S.size();
 1393   *Length = Str.size();
 2335   *NameLength = Str.size();
lib/IR/DataLayout.cpp
  427       if (Rest.size() > 1)
lib/IR/DebugInfo.cpp
  913   *Len = Dir.size();
  919   *Len = Name.size();
  925     *Len = Src->size();
 1230   *Length = Str.size();
lib/IR/Function.cpp
  561   assert(Name.size() >= MatchSize && "Expected either exact or prefix match");
  562   bool IsExactMatch = Name.size() == MatchSize;
lib/IR/IntrinsicInst.cpp
   74   while (CmpEnd < Name.size() && High - Low > 0) {
   77     CmpEnd = CmpEnd == StringRef::npos ? Name.size() : CmpEnd;
   91       (Name.startswith(NameFound) && Name[NameFound.size()] == '.'))
lib/IR/Type.cpp
  421     unsigned NameSize = Name.size();
lib/IR/Value.cpp
  242   if (NameRef.size() > NonGlobalValueMaxNameSize && !isa<GlobalValue>(this))
lib/IR/Verifier.cpp
 1039     AssertDI(Checksum->Value.size() == Size, "invalid checksum length", &N);
 2160   bool isLLVMdotName = F.getName().size() >= 5 &&
lib/LTO/LTOCodeGenerator.cpp
  432     MangledName.reserve(GV.getName().size() + 1);
lib/LTO/LTOModule.cpp
  464   assert(NameRef.data()[NameRef.size()] == '\0');
  676   *size = S.size();
lib/LTO/ThinLTOCodeGenerator.cpp
  274     if (TheTriple.isOSBinFormatMachO() && Name.size() > 0 && Name[0] == '_')
 1032         Modules[LeftIndex]->getSingleBitcodeModule().getBuffer().size();
 1034         Modules[RightIndex]->getSingleBitcodeModule().getBuffer().size();
lib/Linker/IRMover.cpp
  796     if (STTypePrefix.size()== ST->getName().size())
  796     if (STTypePrefix.size()== ST->getName().size())
lib/MC/ELFObjectWriter.cpp
  859   if (Size <= Magic.size() + sizeof(Size) + CompressedContents.size())
lib/MC/MCAsmStreamer.cpp
  407     ExplicitCommentToEmit.append(c.slice(2, c.size()).str());
  409     size_t p = 2, len = c.size() - 2;
  428     ExplicitCommentToEmit.append(c.slice(1, c.size()).str());
  885   for (unsigned i = 0, e = Data.size(); i != e; ++i) {
  922   if (Data.size() == 1 ||
  940     Data = Data.substr(0, Data.size()-1);
  952   for (size_t I = 0, EI = alignTo(Data.size(), Cols); I < EI; I += Cols) {
  953     size_t J = I, EJ = std::min(I + Cols, Data.size());
 1563     size_t e = Values.size() - 1;
 1949   if (Comments.size() && Comments.back() != '\n')
 2002     String = String.substr(0, String.size()-1);
lib/MC/MCCodeView.cpp
  662       size_t RecordSize = FixedSizePortion.size() +
lib/MC/MCContext.cpp
  194       NewName.resize(Name.size());
lib/MC/MCDwarf.cpp
 1222     Name = Name.substr(1, Name.size()-1);
lib/MC/MCParser/AsmLexer.cpp
  536   if (CommentString.size() == 1)
  543   return strncmp(Ptr, CommentString.data(), CommentString.size()) == 0;
lib/MC/MCParser/AsmParser.cpp
 1198       if (Split.first.size() != IDVal.size()) {
 1198       if (Split.first.size() != IDVal.size()) {
 1391   for (size_t Pos = 0; Pos < AltMacroStr.size(); Pos++) {
 1833         Info.AsmRewrites->emplace_back(AOK_Label, IDLoc, IDVal.size(),
 2202     return parseDirectiveMSEmit(IDLoc, Info, IDVal.size());
 2315   Filename = Filename.substr(1, Filename.size() - 2);
 2404     std::size_t End = Body.size(), Pos = 0;
 2512           Pos += 1 + Argument.size();
 2877         StringRef(PrefixLoc.getPointer(), getTok().getIdentifier().size() + 1);
 2910   for (unsigned i = 0, e = Str.size(); i != e; ++i) {
 2924       size_t length = Str.size();
 4521     std::size_t End = Body.size(), Pos = 0;
 4579         Pos += 1 + Argument.size();
 5658   for (std::size_t I = 0, End = Values.size(); I != End; ++I) {
 5845         AsmStrRewrites.emplace_back(AOK_Output, Start, SymName.size());
 5850         AsmStrRewrites.emplace_back(AOK_Input, Start, SymName.size());
lib/MC/MCParser/ELFAsmParser.cpp
  259       CurSize = getTok().getIdentifier().size() + 2;
  262       CurSize = getTok().getIdentifier().size();
  265       CurSize = getTok().getString().size();
  800   getStreamer().EmitIntValue(Data.size()+1, 4); // namesz.
lib/MC/MCParser/MCAsmLexer.cpp
   32   return SMLoc::getFromPointer(Str.data() + Str.size());
lib/MC/MCSectionMachO.cpp
   88   assert(Segment.size() <= 16 && Section.size() <= 16 &&
   88   assert(Segment.size() <= 16 && Section.size() <= 16 &&
   91     if (i < Segment.size())
   96     if (i < Section.size())
  203   if (Segment.empty() || Segment.size() > 16)
  212   if (Section.size() > 16)
lib/MC/MachObjectWriter.cpp
  165   assert(Size >= Str.size());
  167   W.OS.write_zeros(Size - Str.size());
lib/MC/StringTableBuilder.cpp
   69       memcpy(Buf + P.second, Data.data(), Data.size());
   82   if (Pos >= S.size())
   84   return (unsigned char)S[S.size() - Pos - 1];
  147         size_t Pos = Size - S.size() - (K != RAW);
  157       Size += S.size();
lib/MC/WasmObjectWriter.cpp
  306     encodeULEB128(Str.size(), W.OS);
 1531     if (WS.getSectionName().size() > PrefixLength) {
lib/MC/XCOFFObjectWriter.cpp
  378   return SymbolName.size() > XCOFF::NameSize;
lib/Object/Archive.cpp
  149     if (Name.size() == 1) // Linker member.
  151     if (Name.size() == 2 && Name[1] == '/') // String table.
  170     if (StringOffset >= Parent->getStringTable().size()) {
  219   if (Name[Name.size() - 1] != '/')
  323     : Parent(Parent), Header(Parent, Data.data(), Data.size(), nullptr),
  331                ? Parent->getData().size() - (Start - Parent->getData().data())
  401   return Data.size() - StartOfFile;
  457   size_t SpaceToSkip = Data.size();
lib/Object/ArchiveWriter.cpp
  178   uint64_t PosAfterHeader = Pos + 60 + Name.size();
  181   unsigned NameWithPadding = Name.size() + Pad;
  191   return Thin || Name.size() >= 16 || Name.contains('/');
  246   unsigned Size = Names.size();
  306   Size += StringTable.size();
  337     Pos += M.Header.size() + M.Data.size() + M.Padding.size();
  337     Pos += M.Header.size() + M.Data.size() + M.Padding.size();
  342     printNBits(Out, Kind, StringTable.size());
  468         isDarwin(Kind) ? offsetToAlignment(Data.size(), Align(8)) : 0;
  470         offsetToAlignment(Data.size() + MemberPadding, Align(2));
  497     Pos += Header.size() + Data.size() + Padding.size();
  497     Pos += Header.size() + Data.size() + Padding.size();
  579       MaxOffset += M.Header.size() + M.Data.size() + M.Padding.size();
  579       MaxOffset += M.Header.size() + M.Data.size() + M.Padding.size();
lib/Object/COFFImportFile.cpp
  126   return (Twine(S.substr(0, Pos)) + To + S.substr(Pos + From.size())).str();
  195           (ImportName.size() + 1)),
  219        u32(ImportName.size() + 1),
  250   Buffer.resize(S + ImportName.size() + 1);
  251   memcpy(&Buffer[S], ImportName.data(), ImportName.size());
  252   Buffer[S + ImportName.size()] = '\0';
  466   size_t ImpSize = ImportName.size() + Sym.size() + 2; // +2 for NULs
  466   size_t ImpSize = ImportName.size() + Sym.size() + 2; // +2 for NULs
  483   memcpy(P, Sym.data(), Sym.size());
  484   P += Sym.size() + 1;
  485   memcpy(P, ImportName.data(), ImportName.size());
  560       sizeof(uint32_t) + Sym.size() + Prefix.size() + 1;
  560       sizeof(uint32_t) + Sym.size() + Prefix.size() + 1;
lib/Object/COFFObjectFile.cpp
   70   assert(Str.size() <= 6 && "String too long, possible overflow.");
   71   if (Str.size() > 6)
lib/Object/Decompressor.cpp
   43   if (SectionData.size() < 8)
   55   if (SectionData.size() < HdrSize)
lib/Object/IRObjectFile.cpp
   80       if (Contents->size() <= 1)
lib/Object/IRSymtab.cpp
   96     S.Size = Value.size();
  383       BFC.Symtab.size() < sizeof(storage::Header))
  398   FC.TheReader = {{BFC.Symtab.data(), BFC.Symtab.size()},
  399                   {BFC.StrtabForSymtab.data(), BFC.StrtabForSymtab.size()}};
lib/Object/MachOObjectFile.cpp
  109   assert(Offset <= O.getData().size());
  222   if (sizeof(T) > Obj.getData().size()) {
  285     uint64_t FileSize = Obj.getData().size();
  414   uint64_t FileSize = Obj.getData().size();
  473   uint64_t FileSize = Obj.getData().size();
  607   uint64_t FileSize = Obj.getData().size();
  645   uint64_t FileSize = Obj.getData().size();
  832   uint64_t FileSize = Obj.getData().size();
  913   uint64_t FileSize = Obj.getData().size();
 1202   uint64_t FileSize = Obj.getData().size();
 1787   if (NValue >= StringTable.size())
 1940   uint64_t FileSize = getData().size();
 2322   if (Idx != Foo.npos && Foo.size() >= 2) {
 2336   F = Name.slice(Idx, Idx + Foo.size());
 2337   DotFramework = Name.slice(Idx + Foo.size(),
 2338                             Idx + Foo.size() + sizeof(".framework/")-1);
 2358   F = Name.slice(Idx, Idx + Foo.size());
 2359   DotFramework = Name.slice(Idx + Foo.size(),
 2360                             Idx + Foo.size() + sizeof(".framework/")-1);
 2401   if (Lib.size() >= 3) {
 2402     Dot = Lib.slice(Lib.size()-2, Lib.size()-1);
 2402     Dot = Lib.slice(Lib.size()-2, Lib.size()-1);
 2404       Lib = Lib.slice(0, Lib.size()-2);
 2418   if (Lib.size() >= 3) {
 2419     Dot = Lib.slice(Lib.size()-2, Lib.size()-1);
 2419     Dot = Lib.slice(Lib.size()-2, Lib.size()-1);
 2421       Lib = Lib.slice(0, Lib.size()-2);
 2449       if (D.dylib.name+Name.size() >= D.cmdsize)
lib/Object/MachOUniversal.cpp
  141   if (Buf.size() < MinSize) {
  151     if (bigSize > Buf.size()) {
lib/Object/RecordStreamer.cpp
  147     MangledName.reserve(GV.getName().size() + 1);
lib/Object/WasmObjectFile.cpp
  260   Ctx.End = Ctx.Start + getData().size();
lib/Object/WindowsResource.cpp
  439             Contents.size()));
  723   assert(Src.size() <= COFF::NameSize &&
lib/ObjectYAML/COFFEmitter.cpp
   77       if (Name.size() <= COFF::NameSize) {
  115       if (Name.size() <= COFF::NameSize) {
  290           (i->File.size() + CP.getSymbolSize() - 1) / CP.getSymbolSize();
  563           (i->File.size() + SymbolSize - 1) / SymbolSize;
  565       uint32_t NumZeros = NumberOfAuxBytes - i->File.size();
  566       OS.write(i->File.data(), i->File.size());
lib/ObjectYAML/CodeViewYAMLTypes.cpp
  149   if (Scalar.size() != 38)
lib/ObjectYAML/DWARFEmitter.cpp
   73     OS.write(Str.data(), Str.size());
  128     OS.write(Entry.Name.data(), Entry.Name.size());
  185     OS.write(String.data(), String.size());
  205   OS.write(File.Name.data(), File.Name.size());
  231       OS.write(IncludeDir.data(), IncludeDir.size());
  342   virtual void onValue(const StringRef String) { Length += String.size() + 1; }
lib/ObjectYAML/ELFEmitter.cpp
 1063       support::endian::write<uint32_t>(OS, NE.Name.size() + 1,
lib/ObjectYAML/MachOEmitter.cpp
  337       OS.write(Opcode.Symbol.data(), Opcode.Symbol.size());
  463     OS.write(Str.data(), Str.size());
lib/ObjectYAML/MachOYAML.cpp
   44   size_t CopySize = 16 >= Scalar.size() ? 16 : Scalar.size();
   44   size_t CopySize = 16 >= Scalar.size() ? 16 : Scalar.size();
   47   if (Scalar.size() < 16) {
   48     memset((void *)&Val[Scalar.size()], 0, 16 - Scalar.size());
   48     memset((void *)&Val[Scalar.size()], 0, 16 - Scalar.size());
   64   for (size_t Idx = 0; Idx < Scalar.size(); ++Idx) {
lib/ObjectYAML/MinidumpYAML.cpp
  187     if (Scalar.size() < 2 * N)
  189     if (Scalar.size() > 2 * N)
  222     if (Scalar.size() < N)
  224     if (Scalar.size() > N)
lib/ObjectYAML/WasmEmitter.cpp
  112   encodeULEB128(Str.size(), OS);
lib/ObjectYAML/YAML.cpp
   29   if (Scalar.size() % 2 != 0)
   33   for (unsigned I = 0, N = Scalar.size(); I != N; ++I)
lib/Option/ArgList.cpp
  178   if (Cur.size() == LHS.size() + RHS.size() &&
  178   if (Cur.size() == LHS.size() + RHS.size() &&
  178   if (Cur.size() == LHS.size() + RHS.size() &&
  272       BaseArgs.getArgString(Index) + Opt.getName().size(), BaseArg));
lib/Option/OptTable.cpp
  185       StringRef Rest = Str.substr(Prefix.size());
  190         return Prefix.size() + StringRef(I->Name).size();
  190         return Prefix.size() + StringRef(I->Name).size();
  264     if (CandidateName.empty() || CandidateName.size() < MinimumLength)
  290       if (Option.find(Last) == LHS.size())
lib/ProfileData/Coverage/CoverageMappingReader.cpp
   63   if (N > Data.size())
   81   if (Result > Data.size())
  370   if (Offset + Size > Data.size())
  578   for (const char *Buf = Data.data(), *End = Buf + Data.size(); Buf < End;) {
  627   Data = Data.substr(StringRef(TestingFormatMagic).size());
  632   if (N > Data.size())
  639   if (N > Data.size())
  642   if (Data.size() < ProfileNamesSize)
  652   if (CoverageMapping.size() < Pad)
lib/ProfileData/Coverage/CoverageMappingWriter.cpp
   40     encodeULEB128(Filename.size(), OS);
lib/ProfileData/InstrProf.cpp
  281     PGOFuncName = PGOFuncName.drop_front(FileName.size() + 1);
 1123       if (Pos < MemOPSizeRange.size() - 1)
lib/ProfileData/InstrProfReader.cpp
  661     Out.reserve(OrigName.size() + Replacement.size() - ExtractedName.size());
  661     Out.reserve(OrigName.size() + Replacement.size() - ExtractedName.size());
  661     Out.reserve(OrigName.size() + Replacement.size() - ExtractedName.size());
lib/ProfileData/InstrProfWriter.cpp
  118     offset_type N = K.size();
lib/ProfileData/SampleProf.cpp
  208     Size += Str.size() + 1;
lib/ProfileData/SampleProfReader.cpp
  159         n4 = (n4 != StringRef::npos) ? n3 + n4 + 1 : Rest.size();
  173       if (n4 == Rest.size())
  313   if (Data + Str.size() + 1 > End) {
  319   Data += Str.size() + 1;
lib/Remarks/Remark.cpp
   37   return unwrap(String)->size();
lib/Remarks/RemarkParser.cpp
   47       (Index == Offsets.size() - 1) ? Buffer.size() : Offsets[Index + 1];
lib/Remarks/RemarkStringTable.cpp
   36     SerializedSize += KV.first->first().size() + 1; // +1 for the '\0'
lib/Remarks/YAMLRemarkParser.cpp
   65   if (Buf.size() < 1 || !Buf.consume_front(StringRef("\0", 1)))
   72   if (Buf.size() < sizeof(uint64_t))
   89   if (Buf.size() < sizeof(uint64_t))
  101   if (Buf.size() < StrTabSize)
lib/Support/AArch64TargetParser.cpp
   22   if (Arch.size() >= 2 && Arch[0] == 'v' && std::isdigit(Arch[1]))
lib/Support/APFloat.cpp
 2621   size_t slen = str.size();
lib/Support/APInt.cpp
  499   size_t slen = str.size();
 2100   size_t slen = str.size();
lib/Support/APSInt.cpp
   24   unsigned NumBits = ((Str.size() * 64) / 19) + 2;
lib/Support/ARMTargetParser.cpp
  303     A = A.substr(0, A.size() - 2);
  315     if (A.size() >= 2 && (A[0] != 'v' || !std::isdigit(A[1])))
lib/Support/CachePruning.cpp
   56   StringRef NumStr = Duration.slice(0, Duration.size()-1);
lib/Support/Chrono.cpp
   63   for (unsigned I = 0; I < Style.size(); ++I) {
   64     if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) {
lib/Support/CommandLine.cpp
   96   size_t Len = ArgName.size();
   98     return Len + ArgPrefix.size() + ArgHelpPrefix.size();
   98     return Len + ArgPrefix.size() + ArgHelpPrefix.size();
   99   return Len + ArgPrefixLong.size() + ArgHelpPrefix.size();
   99   return Len + ArgPrefixLong.size() + ArgHelpPrefix.size();
  103   if (ArgName.size() == 1)
  442   if (ArgStr.size() == 1)
  716   while (OMI == OptionsMap.end() && Name.size() > 1) {
  717     Name = Name.substr(0, Name.size() - 1); // Chop off the last character.
  724     Length = Name.size();
  738   if (Arg.size() == 1)
  749         (Length < Arg.size()) ? Arg.substr(Length) : StringRef();
  813   for (size_t I = 0, E = Src.size(); I != E; ++I) {
  888   size_t E = Src.size();
  916   for (size_t I = 0, E = Src.size(); I != E; ++I) {
 1684     Len += getValueStr(O, ValName).size() + FormattingLen;
 1712   outs().indent(GlobalWidth - O.ArgStr.size());
 1832 static size_t OptionPrefixesSize = OptionPrefix.size() + ArgHelpPrefix.size();
 1832 static size_t OptionPrefixesSize = OptionPrefix.size() + ArgHelpPrefix.size();
 1844         argPlusPrefixesSize(O.ArgStr) + EqValue.size();
 1849       size_t NameSize = Name.empty() ? EmptyOption.size() : Name.size();
 1849       size_t NameSize = Name.empty() ? EmptyOption.size() : Name.size();
 1856       BaseSize = std::max(BaseSize, getOption(i).size() + 8);
 1882                          EqValue.size() +
 1889       assert(GlobalWidth >= OptionName.size() + OptionPrefixesSize);
 1890       size_t NumSpaces = GlobalWidth - OptionName.size() - OptionPrefixesSize;
 1894         assert(NumSpaces >= EmptyOption.size());
 1895         NumSpaces -= EmptyOption.size();
 1907       Option::printHelpStr(getDescription(i), GlobalWidth, Option.size() + 8);
 1921   outs().indent(GlobalWidth - O.ArgStr.size());
 1929     size_t L = getOption(i).size();
 1981   size_t NumSpaces = MaxOptWidth > V.size() ? MaxOptWidth - V.size() : 0;
 1981   size_t NumSpaces = MaxOptWidth > V.size() ? MaxOptWidth - V.size() : 0;
lib/Support/ConvertUTFWrapper.cpp
   30       memcpy(ResultPtr, Source.data(), Source.size());
   31       ResultPtr += Source.size();
   40         &sourceStart, sourceStart + Source.size(),
   41         &targetStart, targetStart + Source.size(), flags);
   53         &sourceStart, sourceStart + Source.size(),
   54         &targetStart, targetStart + Source.size(), flags);
  161   DstUTF16.resize(SrcUTF8.size()+1);
  190   Result.resize(Source.size() + 1);
lib/Support/DataExtractor.cpp
  176   assert(*offset_ptr <= Data.size());
  185       reinterpret_cast<const uint8_t *>(Data.data() + Data.size()), &error);
  196   assert(*offset_ptr <= Data.size());
  202       reinterpret_cast<const uint8_t *>(Data.data() + Data.size()), &error);
lib/Support/DebugCounter.cpp
   33     Option::printHelpStr(HelpStr, GlobalWidth, ArgStr.size() + 6);
lib/Support/ErrorHandling.cpp
  116     ssize_t written = ::write(2, MessageStr.data(), MessageStr.size());
lib/Support/FileCheck.cpp
   86   for (unsigned E = Str.size(); I != E; ++I) {
  331       PatternStr = PatternStr.substr(0, PatternStr.size() - 1);
  355       (PatternStr.size() < 2 || (PatternStr.find("{{") == StringRef::npos &&
  617     return Buffer.size();
  622     MatchLen = FixedStr.size();
  700   MatchLen = FullMatch.size() - MatchStartSkip;
  716   StringRef BufferPrefix = Buffer.substr(0, ExampleString.size());
  793   for (size_t i = 0, e = std::min(size_t(4096), Buffer.size()); i != e; ++i) {
  988   if (Buffer.size() <= Prefix.size())
  988   if (Buffer.size() <= Prefix.size())
  991   char NextChar = Buffer[Prefix.size()];
  993   StringRef Rest = Buffer.drop_front(Prefix.size() + 1);
 1043   while (Loc < Str.size() && IsPartOfWord(Str[Loc]))
 1086            Prefix.data() < Buffer.data() + Buffer.size() &&
 1111     Buffer = Buffer.drop_front(SkipWord(Buffer, Prefix.size()));
 1181            AfterSuffix.data() < Buffer.data() + Buffer.size() &&
 1189     Buffer = AfterSuffix.empty() ? Buffer.drop_front(UsedPrefix.size())
 1358       SM, Loc, Pat.getCheckTy(), Buffer, 0, Buffer.size(), Diags);
 1415     if (Range.size() > 1 && (Range[1] == '\n' || Range[1] == '\r') &&
 1804           std::make_pair(CmdlineDefsDiag.size(), CmdlineDef.size()));
lib/Support/FileUtilities.cpp
  292                                OS.write(Buffer.data(), Buffer.size());
lib/Support/FoldingSet.cpp
   87   unsigned Size =  String.size();
lib/Support/FormatVariadic.cpp
   34   if (Spec.size() > 1) {
   94   while (From < Fmt.size() && From != StringRef::npos) {
  104     if (Braces.size() > 1) {
  105       size_t NumEscapedBraces = Braces.size() / 2;
lib/Support/GlobPattern.cpp
   32     if (S.size() < 3)
  166       for (size_t I = 0, E = S.size(); I < E; ++I)
lib/Support/ItaniumManglingCanonicalizer.cpp
  251       if (Str.size() == 2 && P->Demangler.consumeIf("St"))
lib/Support/JSON.cpp
  538   if (LLVM_LIKELY(isLegalUTF8String(&Rest, Data + S.size())))
  548   std::vector<UTF32> Codepoints(S.size()); // 1 codepoint per byte suffices.
  551   ConvertUTF8toUTF32(&In8, In8 + S.size(), &Out32, Out32 + Codepoints.size(),
lib/Support/MD5.cpp
  228   ArrayRef<uint8_t> SVal((const uint8_t *)Str.data(), Str.size());
lib/Support/MemoryBuffer.cpp
   61     memcpy(Memory, Data.data(), Data.size());
   62   Memory[Data.size()] = 0; // Null terminate string.
   76   char *Mem = static_cast<char *>(operator new(N + NameRef.size() + 1));
  127   auto Buf = WritableMemoryBuffer::getNewUninitMemBuffer(InputData.size(), BufferName);
  130   memcpy(Buf->getBufferStart(), InputData.data(), InputData.size());
  282   size_t AlignedStringLen = alignTo(sizeof(MemBuffer) + NameRef.size() + 1, 16);
lib/Support/Path.cpp
   71       if (path.size() >= 2 &&
   77     if ((path.size() > 2) && is_separator(path[0], style) &&
   96     if (str.size() > 0 && is_separator(str[str.size() - 1], style))
   96     if (str.size() > 0 && is_separator(str[str.size() - 1], style))
   97       return str.size() - 1;
   99     size_t pos = str.find_last_of(separators(style), str.size() - 1);
  103         pos = str.find_last_of(':', str.size() - 2);
  117       if (str.size() > 2 && str[1] == ':' && is_separator(str[2], style))
  122     if (str.size() > 3 && is_separator(str[0], style) && str[0] == str[1] &&
  128     if (str.size() > 0 && is_separator(str[0], style))
  141         path.size() > 0 && is_separator(path[end_pos], style);
  236   i.Position  = path.size();
  241   assert(Position < Path.size() && "Tried to increment past end!");
  244   Position += Component.size();
  247   if (Position == Path.size()) {
  254   bool was_net = Component.size() > 2 && is_separator(Component[0], S) &&
  268     while (Position != Path.size() && is_separator(Path[Position], S)) {
  273     if (Position == Path.size() && Component != "/") {
  298   I.Position = Path.size();
  322   if (Position == Path.size() && !Path.empty() &&
  350         b->size() > 2 && is_separator((*b)[0], style) && (*b)[1] == (*b)[0];
  356         return path.substr(0, b->size() + pos->size());
  356         return path.substr(0, b->size() + pos->size());
  376         b->size() > 2 && is_separator((*b)[0], style) && (*b)[1] == (*b)[0];
  393         b->size() > 2 && is_separator((*b)[0], style) && (*b)[1] == (*b)[0];
  414   return path.substr(root.size());
  492   if (ext.size() > 0 && ext[0] != '.')
  510   if (OldPrefix.size() == NewPrefix.size()) {
  510   if (OldPrefix.size() == NewPrefix.size()) {
  515   StringRef RelPath = OrigPath.substr(OldPrefix.size());
  573     if ((fname.size() == 1 && fname == ".") ||
  574         (fname.size() == 2 && fname == ".."))
  586     if ((fname.size() == 1 && fname == ".") ||
  587         (fname.size() == 2 && fname == ".."))
  680   while (Path.size() > 2 && Path[0] == '.' && is_separator(Path[1], style)) {
  682     while (Path.size() > 0 && is_separator(Path[0], style))
lib/Support/RandomNumberGenerator.cpp
   43   Data.resize(2 + Salt.size());
lib/Support/Regex.cpp
   98   pm[0].rm_eo = String.size();
  154       if (Repl.size() != Split.first.size() &&
  154       if (Repl.size() != Split.first.size() &&
  186       Repl = Repl.substr(Ref.size());
  217   for (unsigned i = 0, e = String.size(); i != e; ++i) {
lib/Support/SHA1.cpp
  278   memcpy(Arr.data(), S.data(), S.size());
lib/Support/SourceMgr.cpp
  316            I->getText().size());
  319     unsigned LastColumnModified = HintCol + I->getText().size();
  342   for (unsigned i = 0, e = LineContents.size(), OutCol = 0; i != e; ++i) {
lib/Support/SpecialCaseList.cpp
  148       Section = I->slice(1, I->size() - 1);
lib/Support/StringExtras.cpp
   22   size_t N = s2.size(), M = s1.size();
   22   size_t N = s2.size(), M = s1.size();
   61   for (unsigned i = 0, e = Name.size(); i != e; ++i) {
lib/Support/StringRef.cpp
   98       makeArrayRef(data(), size()),
   99       makeArrayRef(Other.data(), Other.size()),
  108   std::string Result(size(), char());
  109   for (size_type i = 0, e = size(); i != e; ++i) {
  116   std::string Result(size(), char());
  117   for (size_type i = 0, e = size(); i != e; ++i) {
  140   size_t N = Str.size();
  183   while (This.size() >= Str.size()) {
  183   while (This.size() >= Str.size()) {
  208   size_t N = Str.size();
  220   size_t N = Str.size();
  238   for (size_type i = 0; i != Chars.size(); ++i)
  263   for (size_type i = 0; i != Chars.size(); ++i)
  279   for (size_type i = 0; i != Chars.size(); ++i)
  304   for (size_type i = 0, e = Chars.size(); i != e; ++i)
  332     S = S.slice(Idx + Separator.size(), npos);
  374   size_t N = Str.size();
  402   if (Str[0] == '0' && Str.size() > 1 && isDigit(Str[1])) {
  451   if (Str.size() == Str2.size())
  451   if (Str.size() == Str2.size())
  536   unsigned BitWidth = Log2Radix * Str.size();
lib/Support/StringSaver.cpp
   14   char *P = Alloc.Allocate<char>(S.size() + 1);
   16     memcpy(P, S.data(), S.size());
   17   P[S.size()] = '\0';
   18   return StringRef(P, S.size());
lib/Support/TarWriter.cpp
   71   int Len = Key.size() + Val.size() + 3; // +3 for " ", "=" and "\n"
   71   int Len = Key.size() + Val.size() + 3; // +3 for " ", "=" and "\n"
  128   if (Path.size() < sizeof(UstarHeader::Name)) {
  137   if (Path.size() - Sep - 1 >= sizeof(UstarHeader::Name))
  150   memcpy(Hdr.Name, Name.data(), Name.size());
  153   memcpy(Hdr.Prefix, Prefix.data(), Prefix.size());
  184     writeUstarHeader(OS, Prefix, Name, Data.size());
  187     writeUstarHeader(OS, "", "", Data.size());
lib/Support/TargetRegistry.cpp
  122     Width = std::max(Width, Targets.back().first.size());
  129     OS.indent(Width - Targets[i].first.size()) << " - "
lib/Support/TrigramIndex.cpp
   94   for (size_t I = 0; I < Query.size(); I++) {
lib/Support/Triple.cpp
 1055     EnvironmentName = EnvironmentName.substr(EnvironmentTypeName.size());
 1066     OSName = OSName.substr(OSTypeName.size());
lib/Support/Unicode.cpp
  345   for (size_t i = 0, e = Text.size(); i < e; i += Length) {
  347     if (Length <= 0 || i + Length > Text.size())
lib/Support/Unix/Path.inc
  589   StringRef Remainder = PathStr.substr(Expr.size() + 1);
  854     if ((Name.size() == 1 && Name[0] == '.') ||
  855         (Name.size() == 2 && Name[0] == '.' && Name[1] == '.'))
lib/Support/Unix/Program.inc
  482   size_t ArgLength = Program.size() + 1;
  489     if (Arg.size() >= (32 * 4096))
  492     ArgLength += Arg.size() + 1;
lib/Support/VirtualFileSystem.cpp
 1440     size_t RootPathLen = sys::path::root_path(Trimmed).size();
 1441     while (Trimmed.size() > RootPathLen &&
 1443       Trimmed = Trimmed.slice(0, Trimmed.size() - 1);
 1923   return Path.slice(Parent.size() + 1, StringRef::npos);
 1984       unsigned OverlayDirLen = OverlayDir.size();
 1987       RPath = RPath.slice(OverlayDirLen, RPath.size());
 2006         unsigned OverlayDirLen = OverlayDir.size();
 2009         RPath = RPath.slice(OverlayDirLen, RPath.size());
lib/Support/YAMLParser.cpp
   68     if (Input.size() >= 4) {
   77     if (Input.size() >= 2 && Input[1] != 0)
   81     if (  Input.size() >= 4
   87     if (Input.size() >= 2 && uint8_t(Input[1]) == 0xFE)
   91     if (Input.size() >= 2 && uint8_t(Input[1]) == 0xFF)
   95     if (  Input.size() >= 3
  103   if (Input.size() >= 4 && Input[1] == 0 && Input[2] == 0 && Input[3] == 0)
  106   if (Input.size() >= 2 && Input[1] == 0)
 1881     StringRef UnquotedValue = Value.substr(1, Value.size() - 2);
 1889     StringRef UnquotedValue = Value.substr(1, Value.size() - 2);
 1894       Storage.reserve(UnquotedValue.size());
 1916   Storage.reserve(UnquotedValue.size());
 1931       if (   UnquotedValue.size() > 1
 1937       if (UnquotedValue.size() == 1)
 1951         if (   UnquotedValue.size() > 1
 2010           if (UnquotedValue.size() < 3)
 2022           if (UnquotedValue.size() < 5)
 2034           if (UnquotedValue.size() < 9)
lib/Support/YAMLTraits.cpp
  692   unsigned End = S.size();
  751   Column += s.size();
  811   if (key.size() < strlen(spaces))
  812     Padding = &spaces[key.size()];
lib/Support/raw_ostream.cpp
  352   if (FS.Str.size() >= FS.Width || FS.Justify == FormattedString::JustifyNone) {
  356   const size_t Difference = FS.Width - FS.Str.size();
lib/Support/xxhash.cpp
   72   size_t Len = Data.size();
lib/TableGen/Record.cpp
 1164         Val.replace(found, LHSs->getValue().size(), MHSs->getValue());
 1165         idx = found + MHSs->getValue().size();
lib/TableGen/TableGenBackend.cpp
   24   assert((Prefix.str().size() + Suffix.size() <= MAX_LINE_LEN) &&
   27   for (size_t i = (size_t)OS.tell() - Pos, e = MAX_LINE_LEN - Suffix.size();
   38   size_t PSLen = Prefix.size() + Suffix.size();
   38   size_t PSLen = Prefix.size() + Suffix.size();
   42     size_t Length = std::min(Desc.size() - Pos, MAX_LINE_LEN - PSLen);
   45   } while (Pos < Desc.size());
lib/Target/AArch64/AArch64ISelLowering.cpp
 5908   if (Constraint.size() == 1) {
 5977   if (Constraint.size() == 1) {
 6033     unsigned Size = Constraint.size();
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
 1805     Op->Tok.Length = Str.size();
 1917     Op->Barrier.Length = Str.size();
 1930     Op->SysReg.Length = Str.size();
 1955     Op->Barrier.Length = Str.size();
 1968     Op->PSBHint.Length = Str.size();
 1981     Op->BTIHint.Length = Str.size();
 5228   CurLoc = incrementLoc(CurLoc, CPU.size());
 5266     CurLoc = incrementLoc(CurLoc, Name.size());
lib/Target/AMDGPU/AMDGPULibFunc.cpp
  485   size_t const savedSize = s.size();
  491   return s.size() < savedSize ? n : -1;
  496   if (Len <= 0 || static_cast<size_t>(Len) > mangledName.size())
  718     OS.write(S.data(), S.size());
  859   S << "_Z" << static_cast<int>(NameStr.size()) << NameStr;
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  285       for (size_t I = 0; I < Str.size(); ++I) {
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
  914     Res->Tok.Length = Str.size();
 2089     StringRef RegSuffix = Str.substr(RegName.size());
 2196   StringRef RegSuffix = RegName.substr(RI->Name.size());
 4467     return Name.substr(0, Name.size() - 4);
 4470     return Name.substr(0, Name.size() - 4);
 4473     return Name.substr(0, Name.size() - 4);
 4476     return Name.substr(0, Name.size() - 5);
 5546   if (Ctl.size() != BITMASK_WIDTH) {
 5555   for (size_t i = 0; i < Ctl.size(); ++i) {
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
  438   auto NameSZ = Name.size() + 1;
  471   uint16_t VendorNameSize = VendorName.size() + 1;
  472   uint16_t ArchNameSize = ArchName.size() + 1;
lib/Target/AMDGPU/SIISelLowering.cpp
10544   if (Constraint.size() == 1) {
10638   if (Constraint.size() > 1) {
10659   if (Constraint.size() == 1) {
lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
   79   for (unsigned I = 0; I != Blob.size() / sizeof(uint32_t) / 2; ++I)
lib/Target/ARM/ARMISelLowering.cpp
 3395     SmallVector<uint8_t,16> V(S.size());
15614   unsigned S = Constraint.size();
15677   switch (Constraint.size()) {
lib/Target/ARM/ARMISelLowering.h
  448       else if (ConstraintCode.size() == 2) {
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
 3444     Op->Tok.Length = Str.size();
 4108   if (Name.size() < 2 || Name[0] != CoprocOp)
 4112   switch (Name.size()) {
 4760     Opt = StringSwitch<unsigned>(OptStr.slice(0, OptStr.size()).lower())
 4905         for (int i = 0, e = IFlagsStr.size(); i != e; ++i) {
 4965     Flags = Mask.slice(Next+1, Mask.size());
 4989     for (int i = 0, e = Flags.size(); i != e; ++i) {
 6263     unsigned CC = ARMCondCodeFromString(Mnemonic.substr(Mnemonic.size()-2));
 6265       Mnemonic = Mnemonic.slice(0, Mnemonic.size() - 2);
 6285     Mnemonic = Mnemonic.slice(0, Mnemonic.size() - 1);
 6294       StringSwitch<unsigned>(Mnemonic.substr(Mnemonic.size()-2, 2))
 6299       Mnemonic = Mnemonic.slice(0, Mnemonic.size()-2);
 6311     unsigned CC = ARMVectorCondCodeFromString(Mnemonic.substr(Mnemonic.size()-1));
 6313       Mnemonic = Mnemonic.slice(0, Mnemonic.size()-1);
 6321     ITMask = Mnemonic.slice(2, Mnemonic.size());
 6326     ITMask = Mnemonic.slice(4, Mnemonic.size());
 6330     ITMask = Mnemonic.slice(3, Mnemonic.size());
 6805     if (ITMask.size() > 3) {
 6811     for (unsigned i = ITMask.size(); i != 0; --i) {
 6859     SMLoc Loc = SMLoc::getFromPointer(NameLoc.getPointer() + Mnemonic.size());
 6866     SMLoc Loc = SMLoc::getFromPointer(NameLoc.getPointer() + Mnemonic.size() +
 6883     SMLoc Loc = SMLoc::getFromPointer(NameLoc.getPointer() + Mnemonic.size() +
 6975                                          Mnemonic.size() - 1 + CarrySetting);
 6990                                          Mnemonic.size() - 1 + CarrySetting);
 7038                                           Mnemonic.size() + CarrySetting);
 7071       Mnemonic = Name.slice(0, Mnemonic.size() + 1);
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
 1096   const size_t VendorHeaderSize = 4 + CurrentVendor.size() + 1;
lib/Target/AVR/AVRISelLowering.cpp
 1689   if (Constraint.size() == 1) {
 1860   if (Constraint.size() == 1) {
lib/Target/BPF/BPFISelLowering.cpp
  178   if (Constraint.size() == 1)
lib/Target/BPF/BTFDebug.cpp
  377   Size += S.size() + 1;
  666   if (!File->getFilename().startswith("/") && File->getDirectory().size())
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
  422     Op->Tok.Length = Str.size();
  857           getContext(), String.substr(HeadTail.first.size(), 1), Loc));
  939                                    Third.getString().size());
  972                                                 Token.getString().size());
  977                           Lookahead.back().getString().size();
 1001       StringRef DotString (RawString.data() + First, RawString.size() - First);
lib/Target/Hexagon/HexagonISelLowering.cpp
 2978   if (Constraint.size() == 1) {
 2998   if (Constraint.size() == 1) {
lib/Target/Hexagon/HexagonInstrInfo.cpp
 1741                                MAI.getCommentString().size()) == 0)
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
  586     Op->Tok.Length = Str.size();
 1043     Mnemonic = Name.substr(0, Name.size() - 2);
 1075       size_t Next = Mnemonic.rfind('.', Name.size());
lib/Target/Lanai/LanaiISelLowering.cpp
  239   if (Constraint.size() == 1)
lib/Target/MSP430/MSP430ISelLowering.cpp
  367   if (Constraint.size() == 1) {
  381   if (Constraint.size() == 1) {
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  858     Op->RegIdx.Tok.Length = Str.size();
 1457     Op->Tok.Length = Str.size();
lib/Target/Mips/MipsISelLowering.cpp
 3770   if (Constraint.size() == 1) {
 3956   if (Constraint.size() == 1) {
lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
   75   for (unsigned I = 0, E = Name.size(); I != E; ++I) {
lib/Target/NVPTX/NVPTXISelLowering.cpp
 4255   if (Constraint.size() == 1) {
 4278   if (Constraint.size() == 1) {
lib/Target/NVPTX/NVVMReflect.cpp
  158     ReflectArg = ReflectArg.substr(0, ReflectArg.size() - 1);
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
  584     Op->Tok.Length = Str.size();
  598     void *Mem = ::operator new(sizeof(PPCOperand) + Str.size());
  601     Op->Tok.Length = Str.size();
  602     std::memcpy(const_cast<char *>(Op->Tok.Data), Str.data(), Str.size());
lib/Target/PowerPC/PPCISelLowering.cpp
14217   if (Constraint.size() == 1) {
14309   if (Constraint.size() == 1) {
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  668     Op->SysReg.Length = Str.size();
lib/Target/RISCV/RISCVISelLowering.cpp
 2537   if (Constraint.size() == 1) {
 2560   if (Constraint.size() == 1) {
 2671   if (ConstraintCode.size() == 1) {
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
  381     Op->Tok.Length = Str.size();
lib/Target/Sparc/SparcISelLowering.cpp
 3180   if (Constraint.size() == 1) {
 3258   if (Constraint.size() == 1) {
 3286   } else if (!Constraint.empty() && Constraint.size() <= 5
 3290     StringRef name(Constraint.data()+1, Constraint.size()-2);
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
  164     Op->Token.Length = Str.size();
  708   if (Name.size() < 2)
lib/Target/SystemZ/SystemZISelLowering.cpp
  953   if (Constraint.size() == 1) {
 1062         Constraint.slice(2, Constraint.size() - 1).getAsInteger(10, Index);
 1072   if (Constraint.size() == 1) {
 1112   if (Constraint.size() > 0 && Constraint[0] == '{') {
lib/Target/SystemZ/SystemZISelLowering.h
  436     if (ConstraintCode.size() == 1) {
lib/Target/TargetMachineC.cpp
  241       LLVMCreateMemoryBufferWithMemoryRangeCopy(Data.data(), Data.size(), "");
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  430     Name = StringRef(NameLoc.getPointer(), Name.size());
  441       Name = StringRef(Name.begin(), Name.size() + Sep.getString().size());
  441       Name = StringRef(Name.begin(), Name.size() + Sep.getString().size());
  448       Name = StringRef(Name.begin(), Name.size() + Id.getString().size());
  448       Name = StringRef(Name.begin(), Name.size() + Id.getString().size());
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  263     OutStreamer->EmitULEB128IntValue(F.Name.size());
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  479   if (Constraint.size() == 1) {
lib/Target/X86/AsmParser/X86AsmParser.cpp
 1176     if (Tok.getString().size() == 3) {
 1189     } else if (Tok.getString().size() == 4 && Tok.getString()[2] == '1') {
 1596     Loc = SMLoc::getFromPointer(SymName.data() + SymName.size());
 1597     ExprLen = End.getPointer() - (SymName.data() + SymName.size());
 1636   const char *EndPtr = Tok.getLoc().getPointer() + LineBuf.size();
 1655     assert(InternalName.size() && "We should have an internal name here.");
 1657     InstInfo->AsmRewrites->emplace_back(AOK_Label, Loc, Identifier.size(),
 1734   const char *DotExprEndLoc = DotDispStr.data() + DotDispStr.size();
 2191                        Buf[1].getIdentifier().size() + 1);
 2401           NameLoc.getFromPointer(NameLoc.getPointer() + Name.size());
 2408                                           NextTok.size() + 1);
 2415     PatchedName = PatchedName.substr(0, Name.size()-1);
 2426       PatchedName.slice(CCIdx, PatchedName.size() - 2))
 2497       PatchedName.slice(5, PatchedName.size() - SuffixSize))
 2526       PatchedName.slice(5, PatchedName.size() - SuffixSize))
lib/Target/X86/AsmParser/X86Operand.h
  155     Tok.Length = Value.size();
  583     SMLoc EndLoc = SMLoc::getFromPointer(Loc.getPointer() + Str.size());
  586     Res->Tok.Length = Str.size();
lib/Target/X86/X86ISelLowering.cpp
45215     S = S.substr(Piece.size());
45355   if (Constraint.size() == 1) {
45394   else if (Constraint.size() == 2) {
45460     unsigned Size = StringRef(constraint).size();
45793   if (Constraint.size() == 1) {
45932   } else if (Constraint.size() == 2 && Constraint[0] == 'Y') {
45978     if (Constraint.size() == 7 && Constraint[0] == '{' &&
lib/Target/X86/X86InsertPrefetch.cpp
  132           Name = Name.drop_front(HintType.first.size());
lib/Target/X86/X86TargetMachine.cpp
  255   Key.reserve(CPU.size() + FS.size());
  255   Key.reserve(CPU.size() + FS.size());
  303   FS = Key.slice(CPU.size(), CPUFSWidth);
lib/Target/XCore/XCoreISelLowering.cpp
 1930   if (Constraint.size() == 1) {
lib/Testing/Support/Annotations.cpp
   33   Code.reserve(Text.size());
   57       Text = Text.drop_front(Name->size());
lib/TextAPI/MachO/TextStub.cpp
  726       void *Ptr = Allocator.Allocate(String.size(), 1);
  727       memcpy(Ptr, String.data(), String.size());
  728       return StringRef(reinterpret_cast<const char *>(Ptr), String.size());
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  224       return (s.size() / 4) + 1;
  230       writeBytes(s.data(), s.size());
  233       assert((unsigned)(4 - (s.size() % 4)) > 0);
  234       assert((unsigned)(4 - (s.size() % 4)) <= 4);
  235       writeBytes("\0\0\0\0", 4 - (s.size() % 4));
lib/Transforms/Instrumentation/InstrProfiling.cpp
  676   StringRef Name = Inc->getName()->getName().substr(NamePrefix.size());
lib/Transforms/Scalar/MergeICmps.cpp
  578                                        return i + Cmp.BB->getName().size();
lib/Transforms/Utils/FunctionComparator.cpp
   95   if (int Res = cmpNumbers(L.size(), R.size()))
   95   if (int Res = cmpNumbers(L.size(), R.size()))
lib/Transforms/Utils/SimplifyLibCalls.cpp
  375                  ? Str.size()
  403                  ? Str.size()
  774   if (HasS2 && S2.size() == 1)
  805       Pos = S1.size();
  825       Pos = S1.size();
  884   if (HasStr2 && ToFindStr.size() == 1) {
 1047     if (Len > LHSStr.size() || Len > RHSStr.size())
 1047     if (Len > LHSStr.size() || Len > RHSStr.size())
 1285         CallerName.size() == (CalleeName.size() + 1) &&
 1285         CallerName.size() == (CalleeName.size() + 1) &&
 2342   if (FormatStr.size() == 1 || FormatStr == "%%")
 2350     if (ChrStr.size() != 1)
 2356   if (FormatStr[FormatStr.size() - 1] == '\n' &&
 2431                                     FormatStr.size() + 1)); // Copy the null byte.
 2432     return ConstantInt::get(CI->getType(), FormatStr.size());
 2437   if (FormatStr.size() != 2 || FormatStr[0] != '%' ||
 2530       return ConstantInt::get(CI->getType(), FormatStr.size());
 2531     else if (N < FormatStr.size() + 1)
 2539                          FormatStr.size() + 1)); // Copy the null byte.
 2540     return ConstantInt::get(CI->getType(), FormatStr.size());
 2545   if (FormatStr.size() == 2 && FormatStr[0] == '%' &&
 2574         return ConstantInt::get(CI->getType(), Str.size());
 2575       else if (N < Str.size() + 1)
 2579                      ConstantInt::get(CI->getType(), Str.size() + 1));
 2582       return ConstantInt::get(CI->getType(), Str.size());
 2620         ConstantInt::get(DL.getIntPtrType(CI->getContext()), FormatStr.size()),
 2626   if (FormatStr.size() != 2 || FormatStr[0] != '%' ||
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  220   Name = Name.substr(Prefix().size(), StringRef::npos);
lib/XRay/FDRTraceWriter.cpp
  101   ArrayRef<char> Bytes(D.data(), D.size());
  110   ArrayRef<char> Bytes(D.data(), D.size());
  119   ArrayRef<char> Bytes(D.data(), D.size());
lib/XRay/Trace.cpp
   39   if (Data.size() < 32)
   44   if (Data.size() - 32 == 0 || Data.size() % 32 != 0)
   44   if (Data.size() - 32 == 0 || Data.size() % 32 != 0)
  270   if (Data.size() < 32)
tools/clang/include/clang/AST/Comment.h
  400                        L.getLocWithOffset(1 + TagName.size()));
  442       return NameLocBegin.getLocWithOffset(Name.size());
  457                      LocBegin, LocBegin.getLocWithOffset(1 + TagName.size()),
  460                      LocBegin.getLocWithOffset(1 + TagName.size())) {
  516                      LocBegin.getLocWithOffset(2 + TagName.size()))
  665                        getBeginLoc().getLocWithOffset(1 + Name.size()));
  871               LocBegin.getLocWithOffset(Text.size())),
tools/clang/include/clang/AST/CommentLexer.h
  106     IntVal = Text.size();
  117     IntVal = Name.size();
  148     IntVal = Text.size();
  169     IntVal = Text.size();
  180     IntVal = Name.size();
  191     IntVal = Name.size();
  202     IntVal = Str.size();
  213     IntVal = Name.size();
tools/clang/include/clang/AST/Type.h
 2472     assert(!str.empty() && str.data()[str.size()] == '\0');
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h
  351   return ss.write(str.data(), str.size());
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  558     StartGetterSelectorLoc.getLocWithOffset(GetterSelector.getNameForSlot(0).size());
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp
   49       AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size());
   65   if (RelOffs - getARCMTMacroName().size() > 100)
tools/clang/lib/ARCMigrate/TransformActions.cpp
  486   SourceLocation afterText = loc.getLocWithOffset(text.size());
tools/clang/lib/AST/ASTContext.cpp
10362         /*Pascal*/ false, getStringLiteralArrayType(CharTy, Key.size()),
tools/clang/lib/AST/CommentCommandTraits.cpp
   49   if (Typo.size() <= 1)
   61     unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size());
   61     unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size());
   84   char *Name = Allocator.Allocate<char>(CommandName.size() + 1);
   85   memcpy(Name, CommandName.data(), CommandName.size());
   86   Name[CommandName.size()] = '\0';
tools/clang/lib/AST/CommentLexer.cpp
   71   for (unsigned i = 0, e = Name.size(); i != e; ++i) {
   81   for (unsigned i = 0, e = Name.size(); i != e; ++i) {
tools/clang/lib/AST/CommentSema.cpp
  424                                   Loc.getLocWithOffset(1 + CommandName.size()),
  448                               TextBegin.getLocWithOffset(Text.size()),
 1004       : BestDecl(nullptr), Typo(Typo), MaxEditDistance((Typo.size() + 2) / 3),
 1030   unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size());
 1030   unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size());
 1032       Typo.size() / MinPossibleEditDistance < 3)
tools/clang/lib/AST/Decl.cpp
 4522       new (C, DC, additionalSizeToAlloc<char>(Arg.size() + 1))
 4524   memcpy(PCD->getTrailingObjects<char>(), Arg.data(), Arg.size());
 4525   PCD->getTrailingObjects<char>()[Arg.size()] = '\0';
 4542   size_t ValueStart = Name.size() + 1;
 4544       new (C, DC, additionalSizeToAlloc<char>(ValueStart + Value.size() + 1))
 4546   memcpy(PDMD->getTrailingObjects<char>(), Name.data(), Name.size());
 4547   PDMD->getTrailingObjects<char>()[Name.size()] = '\0';
 4549          Value.size());
 4550   PDMD->getTrailingObjects<char>()[ValueStart + Value.size()] = '\0';
 4588   char *Buffer = new (getASTContext(), 1) char[Name.size() + 1];
 4589   memcpy(Buffer, Name.data(), Name.size());
 4590   Buffer[Name.size()] = '\0';
tools/clang/lib/AST/Expr.cpp
 1036   unsigned ByteLength = Str.size();
 1086                                1, NumConcatenated, Str.size()),
 4058   for (unsigned i = 0, e = Comp.size(); i != e; ++i)
tools/clang/lib/AST/ExprConstant.cpp
10720       if (Off >= 0 && (uint64_t)Off <= (uint64_t)Str.size() &&
10730         return Success(Str.size(), E);
tools/clang/lib/AST/ItaniumMangle.cpp
  370         Out << Tag.size();
  685   size_t EncodingPositionStart = FunctionEncodingStream.str().size();
  932   Out << Parts.second.size() << Parts.second;
 2364   Out << 'U' << name.size() << name;
 3270       QualOS << name.size() << name;
 4123     Out << "v1U" << Kind.size() << Kind;
tools/clang/lib/AST/Mangle.cpp
  290   Out << OS.str().size() << OS.str();
tools/clang/lib/AST/MicrosoftMangle.cpp
   51     if (MangledName.size() <= 4096) {
tools/clang/lib/AST/PrintfFormatString.cpp
  137         I += Matches[0].size();
  144           unsigned Size = MaskType.size();
tools/clang/lib/AST/RawCommentList.cpp
   27   if ((Comment.size() < MinCommentLength) || Comment[0] != '/')
   32     if (Comment.size() < 3)
   42     assert(Comment.size() >= 4);
   47         Comment[Comment.size() - 2] != '*' ||
   48         Comment[Comment.size() - 1] != '/')
   58   const bool TrailingComment = (Comment.size() > 3) && (Comment[3] == '<');
   63   return (Comment.size() > 3) && (Comment[3] == '<');
  403       WhitespaceLen = TokText.size();
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  360   Name = Name.drop_back(Suffix.size());
  530                  FullName.drop_back(Pattern.size()).endswith("::")) {
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp
  164           if (TokenLength == Code.size() || !isAlphanumeric(Code[TokenLength]))
  195     if (Code.size() > 1) {
  201     while (Length < Code.size() && isHexDigit(Code[Length]))
  205     while (Length < Code.size()) {
  251     for (size_t Length = 1, Size = Code.size(); Length != Size; ++Length) {
  270     Code = Code.drop_front(Code.size());
  513     Completions.emplace_back(Completion.TypedText.substr(CompToken.Text.size()),
tools/clang/lib/Analysis/PathDiagnostic.cpp
   54   for (StringRef::size_type i = s.size(); i != 0; --i)
  439   char *FileName_cstr = (char*) Alloc.Allocate(FileName.size(), 1);
  440   memcpy(FileName_cstr, FileName.data(), FileName.size());
  444                                                   FileName.size())));
tools/clang/lib/Analysis/RetainSummaryManager.cpp
 1095       if (Slot.substr(Slot.size() - 8).equals_lower("delegate")) {
tools/clang/lib/Basic/Attributes.cpp
   13   if (Name.size() >= 4 && Name.startswith("__") && Name.endswith("__"))
   14     Name = Name.substr(2, Name.size() - 4);
   64   if (ShouldNormalize && AttrName.size() >= 4 && AttrName.startswith("__") &&
   66     AttrName = AttrName.slice(2, AttrName.size() - 2);
tools/clang/lib/Basic/DiagnosticIDs.cpp
  599   unsigned BestDistance = Group.size() + 1; // Sanity threshold.
tools/clang/lib/Basic/FileManager.cpp
   78   if (llvm::sys::path::is_separator(Filename[Filename.size() - 1]))
  121   if (DirName.size() > 1 &&
  124     DirName = DirName.substr(0, DirName.size()-1);
tools/clang/lib/Basic/IdentifierTable.cpp
  502   if (name.size() < word.size()) return false;
  502   if (name.size() < word.size()) return false;
  503   return ((name.size() == word.size() || !isLowercase(name[word.size()])) &&
  503   return ((name.size() == word.size() || !isLowercase(name[word.size()])) &&
  503   return ((name.size() == word.size() || !isLowercase(name[word.size()])) &&
tools/clang/lib/Basic/Module.cpp
   87     NewLHS += LHS.slice(Pos+1, LHS.size());
tools/clang/lib/Basic/ObjCRuntime.cpp
   55   if (dash != StringRef::npos && dash + 1 != input.size() &&
tools/clang/lib/Basic/SourceManager.cpp
  178       Ptr[i] = FillStr[i % FillStr.size()];
tools/clang/lib/Basic/Targets/AVR.h
   97     if (StringRef(Name).size() > 1)
tools/clang/lib/Basic/Warnings.cpp
  135         if (Opt.size() > 5) {  // Specifier must be present.
  136           if ((Opt[5] != '=' && Opt[5] != '-') || Opt.size() == 6) {
  163         if (Opt.size() != 12) {
  164           if ((Opt[12] != '=' && Opt[12] != '-') || Opt.size() == 13) {
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1246       for (unsigned I = 0, E = Item.getMaskType().size(); I < E; ++I)
 3119               makeArrayRef(WideBytes.data(), WideBytes.size()), StrUtf8)) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  482       return (Twine(Entry.second) + Path.substr(Entry.first.size())).str();
tools/clang/lib/CodeGen/CGDebugInfo.h
  700     char *Data = DebugInfoNames.Allocate<char>(A.size() + B.size());
  700     char *Data = DebugInfoNames.Allocate<char>(A.size() + B.size());
  702       std::memcpy(Data, A.data(), A.size());
  704       std::memcpy(Data + A.size(), B.data(), B.size());
  704       std::memcpy(Data + A.size(), B.data(), B.size());
  705     return StringRef(Data, A.size() + B.size());
  705     return StringRef(Data, A.size() + B.size());
tools/clang/lib/CodeGen/CGExpr.cpp
 2444   assert(Asm->getLabel().size() < 64-Name.size() &&
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1039       unsigned NumU8CodeUnits = Str.size();
 1070       Fields.addInt(Int32Ty, Str.size());
 1072       Fields.addInt(Int32Ty, Str.size());
 1082       for (int i=0,e=Str.size() ; i<e ; ++i) {
tools/clang/lib/CodeGen/CGObjCMac.cpp
 1944   StringLength = String.size();
tools/clang/lib/CodeGen/CGStmt.cpp
 1900     for (unsigned i = 0, e = StrVal.size() - 1; i != e; ++i) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
 4586   unsigned NumBytes = String.size();
 4727         Entry.first().size() / 2);
 5706   assert(Uuid.size() == 36);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  447     TDTypeName += llvm::utostr(TypeInfoString.size());
  449         TypeDescriptorTypeMap[TypeInfoString.size()];
  455         llvm::ArrayType::get(CGM.Int8Ty, TypeInfoString.size() + 1)};
tools/clang/lib/CodeGen/TargetInfo.cpp
 8819     assert(E.State==Recursive && E.Str.size() == Str.size() &&
tools/clang/lib/Driver/Driver.cpp
  860     ArchPrefixLen = CfgFileArch.size();
 1202     for (size_t i = 0, e = ParentProcess.size(); i < e; ++i) {
tools/clang/lib/Driver/ToolChain.cpp
  159       Pos = ProgName.size() - Suffix.size();
  159       Pos = ProgName.size() - Suffix.size();
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
   94   if (Split.second.size() && !DecodeAArch64Features(D, Split.second, Features))
  110       (Split.second.size() && !DecodeAArch64Features(D, Split.second, Features)))
tools/clang/lib/Driver/ToolChains/Arch/ARM.cpp
  110       (Split.second.size() && !DecodeARMFeatures(
  126       (Split.second.size() && !DecodeARMFeatures(
tools/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
  122     StringRef Name(Ext.substr(Type.size()));
  206       (MArch.size() < 5)) {
tools/clang/lib/Driver/ToolChains/Clang.cpp
   96   for (unsigned i = 0, e = Target.size(); i != e; ++i) {
  171     if (RefStep.size() != 1) {
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  190             LibDeviceName.size(), FileName.find('.', LibDeviceName.size()));
  190             LibDeviceName.size(), FileName.find('.', LibDeviceName.size()));
tools/clang/lib/Driver/ToolChains/Darwin.cpp
  932   return PathIntoXcode.take_front(Index + XcodeAppSuffix.size());
 1070       return SDK.slice(0, SDK.size() - 4);
 1528   if (!SDK.size())
 1808     if (SDK.size() > 0) {
tools/clang/lib/Driver/ToolChains/MSVC.cpp
 1377   for (size_t I = 0, E = OptStr.size(); I != E; ++I) {
 1504     for (size_t I = 0, E = OptStr.size(); I != E; ++I) {
tools/clang/lib/Edit/Commit.cpp
  336   Len = text.size();
tools/clang/lib/Edit/EditedSource.cpp
  354   if (end == buffer.size())
  357   assert(begin < buffer.size() && end < buffer.size() && "Invalid range!");
  357   assert(begin < buffer.size() && end < buffer.size() && "Invalid range!");
  368     assert((end + 1 != buffer.size() || buffer.data()[end + 1] == 0) &&
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  700         text = text.substr(0, text.size()-suff.size());
  700         text = text.substr(0, text.size()-suff.size());
  748       CharSourceRange::getCharRange(B, B.getLocWithOffset(text.size()));
tools/clang/lib/Format/AffectedRangeManager.cpp
   79   End = End.getLocWithOffset(Last.TokenText.size());
tools/clang/lib/Format/BreakableToken.cpp
   55       size_t PrefixLength = KnownPrefix.size();
   56       while (PrefixLength < Comment.size() && Comment[PrefixLength] == ' ')
   58       if (PrefixLength > LongestPrefix.size())
   80        NumChars < MaxSplit && MaxSplitBytes < Text.size();) {
  101              SpaceOffset + 1 < Text.size() && Text[SpaceOffset + 1] == '{')
  129     if (!DecorationEndsWithStar || AfterCut.size() <= 1 || AfterCut[1] != '/')
  131     return BreakableToken::Split(BeforeCut.size(),
  161     if (Chars > MaxSplit || Text.size() <= Advance)
  224   return UnbreakableTailLength + Postfix.size() +
  231   return StartColumn + Prefix.size();
  243       Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size());
  243       Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size());
  243       Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size());
  243       Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size());
  250                         ColumnLimit - Postfix.size(), Style.TabWidth, Encoding);
  258       Tok, Prefix.size() + TailOffset + Split.first, Split.second, Postfix,
  326   return Content.size() >= 2 && !hasSpecialMeaningPrefix &&
  345   TokenText.substr(2, TokenText.size() - 4)
  388       Decoration = Decoration.substr(0, Decoration.size() - 1);
  417                                   ? Content[i].size()
  418                                   : Decoration.size();
  427   IndentAtLineBreak = std::max<unsigned>(IndentAtLineBreak, Decoration.size());
  477   size_t EndOfPreviousLine = Lines[LineIndex - 1].size();
  491     StartOfLine = Lines[LineIndex].size();
  523       LineLength -= Decoration.size();
  578       Text.size() == Split.first + Split.second) {
  589   assert(LocalIndentAtLineBreak >= Prefix.size());
  634                                      Content[LineIndex - 1].size() -
  685                                      Content[LineIndex - 1].size() -
  692       InPPDirective, /*Newlines=*/1, ContentColumn[LineIndex] - Prefix.size());
  704       return Split(TrimmedLine.size(), Line.size() - TrimmedLine.size());
  704       return Split(TrimmedLine.size(), Line.size() - TrimmedLine.size());
  704       return Split(TrimmedLine.size(), Line.size() - TrimmedLine.size());
  754       if (Lines[i].size() > Prefix[i].size() &&
  754       if (Lines[i].size() > Prefix[i].size() &&
  755           isAlphanumeric(Lines[i][Prefix[i].size()])) {
  772       Content[i] = Lines[i].substr(IndentPrefix.size());
  784         EndOfLine = Content[i].size();
  838                                Prefix[LineIndex].size() -
  839                                OriginalPrefix[LineIndex].size();
  840   assert(IndentAtLineBreak >= Prefix[LineIndex].size());
  844       /*Spaces=*/IndentAtLineBreak - Prefix[LineIndex].size());
  881                       Lines[LineIndex - 1].size() -
  926         (OriginalPrefix[LineIndex].size() - Prefix[LineIndex].size());
  926         (OriginalPrefix[LineIndex].size() - Prefix[LineIndex].size());
  946         tokenAt(LineIndex), OriginalPrefix[LineIndex].size(), 0, "", "",
tools/clang/lib/Format/ContinuationIndenter.cpp
  150   if (TokenText.size() < 5 // The smallest raw string possible is 'R"()"'.
  163   size_t RParenPos = TokenText.size() - Delimiter.size() - 2;
  163   size_t RParenPos = TokenText.size() - Delimiter.size() - 2;
 1512   unsigned OldPrefixSize = 3 + OldDelimiter.size();
 1513   unsigned OldSuffixSize = 2 + OldDelimiter.size();
 1526   unsigned NewPrefixSize = 3 + NewDelimiter.size();
 1527   unsigned NewSuffixSize = 2 + NewDelimiter.size();
 1599           SourceMgr, PrefixDelimiterStart, OldDelimiter.size(), NewDelimiter));
 1608           Current.Tok.getLocation().getLocWithOffset(Current.TokenText.size() -
 1609                                                      1 - OldDelimiter.size());
 1611           SourceMgr, SuffixDelimiterStart, OldDelimiter.size(), NewDelimiter));
tools/clang/lib/Format/Encoding.h
   55   return Text.size();
   99   if (Text.size() < 2)
  109     while (I < Text.size() && isHexDigit(Text[I]))
  116       while (I < Text.size() && I < 4 && isOctDigit(Text[I]))
tools/clang/lib/Format/Format.cpp
 1300         for (size_t i = 1; i < Input.size() - 1; i++) {
 1303             if (!Escaped && i + 1 < Input.size() &&
 1849     unsigned End = Start + Includes[Indices[i]].Text.size();
 1900       Includes.back().Offset + Includes.back().Text.size();
 2005         Code.substr(Prev, (Pos != StringRef::npos ? Pos : Code.size()) - Prev);
 2040     if (Pos == StringRef::npos || Pos + 1 == Code.size())
 2079       Imports.back().Offset + Imports.back().Text.size();
 2164         Code.substr(Prev, (Pos != StringRef::npos ? Pos : Code.size()) - Prev);
 2187     } else if (Trimmed.size() > 0 && !ImportsInBlock.empty()) {
 2192     if (Pos == StringRef::npos || Pos + 1 == Code.size())
 2205   return Code.size() > 188 && Code[0] == 0x47 && Code[188] == 0x47;
tools/clang/lib/Format/FormatToken.h
  468     return Content.size() > 1 &&
tools/clang/lib/Format/FormatTokenLexer.cpp
  314     AddLength += First[i]->TokenText.size();
  318                                   First[0]->TokenText.size() + AddLength);
  383   const char *RegexBegin = Offset - RegexToken->TokenText.size();
  413   RegexToken->ColumnWidth = RegexToken->TokenText.size();
  441   const char *TmplBegin = Offset - BacktickToken->TokenText.size(); // at "`"
  475         LiteralText.substr(LastBreak + 1, LiteralText.size()), StartColumn,
  491       Lex->getBufferLocation() - HashToken->TokenText.size(); // at "#"
  495     To = Lex->getBuffer().size();
  500   SourceLocation Loc = To < Lex->getBuffer().size()
  525   const char *End = Last->TokenText.data() + Last->TokenText.size();
  657     for (int i = 0, e = Text.size(); i != e; ++i) {
  711       if (BackslashPos + 1 < FormatTok->TokenText.size() &&
  714         Offset -= FormatTok->TokenText.size();
  731   while (FormatTok->TokenText.size() > 1 && FormatTok->TokenText[0] == '\\') {
  733     if (FormatTok->TokenText.size() > 2 &&
  758     TrailingWhitespace = UntrimmedText.size() - FormatTok->TokenText.size();
  758     TrailingWhitespace = UntrimmedText.size() - FormatTok->TokenText.size();
tools/clang/lib/Format/SortJavaScriptImports.cpp
  180     unsigned PreviousSize = getSourceText(InsertionPoint).size();
  342           Current->TokenText.substr(1, Current->TokenText.size() - 2);
  356           Current->TokenText.substr(1, Current->TokenText.size() - 2);
tools/clang/lib/Format/TokenAnnotator.cpp
 2424     bool is_short_annotation = Right.TokenText.size() < 10;
tools/clang/lib/Format/UnwrappedLineParser.cpp
 1370         if (FollowedByNewline && (Text.size() >= 5 || FunctionLike) &&
tools/clang/lib/Frontend/CompilerInstance.cpp
  758         StringRef(OutFile).drop_back(OutputExtension.size());
tools/clang/lib/Frontend/CompilerInvocation.cpp
 1026       if (CoverageVersion.size() != 4) {
 3204         (Major == 3 ? VerParts.second.size() == 1 &&
 3206                     : VerParts.first.size() == Ver.size() ||
 3206                     : VerParts.first.size() == Ver.size() ||
tools/clang/lib/Frontend/DependencyFile.cpp
  332     unsigned N = Target.size();
  356     unsigned N = File.size();
tools/clang/lib/Frontend/FrontendActions.cpp
  713   bool IsRaw = (Magic.size() >= 4 && Magic[0] == 'C' && Magic[1] == 'P' &&
tools/clang/lib/Frontend/InitPreprocessor.cpp
   44   if (MacroName.size() != Macro.size()) {
   44   if (MacroName.size() != Macro.size()) {
tools/clang/lib/Frontend/LayoutOverrideSource.cpp
   23   while (Offset < S.size() && isIdentifierBody(S[Offset]))
  134       while (Idx < LineStr.size() && isDigit(LineStr[Idx]))
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
  404   OS.write(S.begin(), S.size());
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
  306   if (LocalEOL.size() == 2 &&
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  600           Context->CharTy, llvm::APInt(32, Str.size() + 1), nullptr,
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  500           Context->CharTy, llvm::APInt(32, Str.size() + 1), nullptr,
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  383                                      0 /* For legacy */, Name.size()};
  530   RecordData::value_type Record[] = {RECORD_CATEGORY, category, catName.size()};
  560                                        FlagName.size()};
  652   Record.push_back(Message.size());
  823       Flag ? DiagFlagLookup[Flag] : 0, Message.size()};
  837                                      End.Offset, Text.size()};
tools/clang/lib/Frontend/TextDiagnostic.cpp
  101   assert(*i<SourceLine.size() && "must point to a valid index");
  119   end = begin + (SourceLine.size() - *i);
  206   out.resize(SourceLine.size()+1, -1);
  210   while (i<SourceLine.size()) {
  242   while (i<SourceLine.size()) {
  261     assert(m_byteToColumn.size()==SourceLine.size()+1);
  548   assert(Start < Str.size() && "Invalid start position!");
  552   if (End == Str.size())
  617   const unsigned Length = std::min(Str.find('\n'), Str.size());
 1012   unsigned EndColNo = map.getSourceLine().size();
 1032     while (StartColNo < map.getSourceLine().size() &&
 1038     if (EndColNo > map.getSourceLine().size())
 1039       EndColNo = map.getSourceLine().size();
 1054   assert(StartColNo <= map.getSourceLine().size() && "Invalid range!");
 1055   assert(EndColNo <= map.getSourceLine().size() && "Invalid range!");
 1186     const char *BufEnd = BufStart + BufData.size();
 1208            (LineNo != CaretLineNo || Line.size() > CaretColNo))
 1294   while (i<line.size()) {
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  136     PEnd = C + S.size();
  139     return memcmp(P, S.data(), S.size()) == 0;
  186         PEnd = P + S.size();
  231         P += OpenBrace.size();
  235           PEnd = P + CloseBrace.size();
  238         P += CloseBrace.size();
  449       DToken = DToken.substr(0, DToken.size()-3);
  470     DToken = DToken.substr(0, DToken.size()-DType.size());
  470     DToken = DToken.substr(0, DToken.size()-DType.size());
  622       CPos = FPos + NewlineStr.size();
  770   C2.reserve(C.size());
  773     if (loc == StringRef::npos || loc == C.size()) {
  784       if (last < C.size())
 1139         VerbatimMatchLength = S.size();
tools/clang/lib/Index/CommentToXML.cpp
 1107       Pos = S.size();
tools/clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
  170     while (Last != End && size_t(Last - First) < Terminator.size() &&
  179     if (size_t(Last - First) < Terminator.size())
tools/clang/lib/Lex/HeaderSearch.cpp
  649   char *CopyStr = Alloc.Allocate<char>(Str.size()+1);
  651   CopyStr[Str.size()] = '\0';
 1061       CacheLookup.first().size() == FrameworkName.size() &&
 1063              CacheLookup.first().size()) != 0)
 1774       if (NI->size() == 1 && DI->size() == 1 &&
 1774       if (NI->size() == 1 && DI->size() == 1 &&
tools/clang/lib/Lex/Lexer.cpp
  491   if (Offset >= Buffer.size())
tools/clang/lib/Lex/LiteralSupport.cpp
 1771     memcpy(ResultPtr, Fragment.data(), Fragment.size());
 1772     ResultPtr += Fragment.size();
 1790     Dummy.reserve(Fragment.size() * CharByteWidth);
tools/clang/lib/Lex/ModuleMap.cpp
  346     Buffer.reserve(Buffer.size() + Name.size());
  347     for (unsigned I = 0, N = Name.size(); I != N; ++I) {
 1493     Tok.StringLength = RI.size();
tools/clang/lib/Lex/PPDirectives.cpp
  110   if (Text.size() >= 2 && Text[0] == '_' &&
  177   if (Include.size() > MaxStdHeaderNameLen)
  500     if (!Tok.needsCleaning() && RI.size() < 20) {
 1534   if (Buffer.size() <= 2) {
 1541   Buffer = Buffer.substr(1, Buffer.size()-2);
 2102       Path.reserve(Name.size()+2);
 2112           Path.size() <= Filename.size() ? Filename[Path.size()-1] :
tools/clang/lib/Lex/PPLexerChange.cpp
  211         Result = FilePath.substr(Path.size());
  353             const size_t MaxHalfLength = std::max(ControllingMacroName.size(),
  354                                                   DefinedMacroName.size()) / 2;
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1099   if (Feature.startswith("__") && Feature.endswith("__") && Feature.size() >= 4)
 1100     Feature = Feature.substr(2, Feature.size() - 4);
 1126       Extension.size() >= 4)
 1127     Extension = Extension.substr(2, Extension.size() - 4);
tools/clang/lib/Lex/PreprocessingRecord.cpp
   48   char *Memory = (char *)PPRec.Allocate(FileName.size() + 1, alignof(char));
   49   memcpy(Memory, FileName.data(), FileName.size());
   50   Memory[FileName.size()] = 0;
   51   this->FileName = StringRef(Memory, FileName.size());
tools/clang/lib/Lex/Preprocessor.cpp
  485   Tok.setLength(Str.size());
  488   SourceLocation Loc = ScratchBuf->getToken(Str.data(), Str.size(), DestPtr);
  492                                        ExpansionLocEnd, Str.size());
 1055     if (Str.size() >= 2 && Str.front() == '"' && Str.back() == '"')
tools/clang/lib/Lex/TokenConcatenation.cpp
   27     if (Str.size() == 1)
   32     if (Str[1] == 'R' && Str[0] != 'R' && Str.size() == 2 && CPlusPlus11)
   37       if (Str.size() == 2) return true; // "u8"
   38       if (Str.size() == 3 && Str[2] == 'R') return true; // "u8R"
tools/clang/lib/Parse/ParseDecl.cpp
   73   if (Name.size() >= 4 && Name.startswith("__") && Name.endswith("__"))
tools/clang/lib/Parse/ParsePragma.cpp
  967       Toks[0].setLength(Section.size());
tools/clang/lib/Rewrite/HTMLRewrite.cpp
  170   unsigned len = s.size();
tools/clang/lib/Rewrite/Rewriter.cpp
  124   AddInsertDelta(OrigOffset, Str.size());
  135   if (OrigLength != NewStr.size())
  136     AddReplaceDelta(OrigOffset, NewStr.size() - OrigLength);
  390   if (parentSpace.size() >= startSpace.size())
  390   if (parentSpace.size() >= startSpace.size())
  395   StringRef indent = startSpace.substr(parentSpace.size());
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  351   char *Mem = (char *)Allocate(Ref.size() + 1, 1);
  353   Mem[Ref.size()] = 0;
tools/clang/lib/Sema/DelayedDiagnostic.cpp
   43     MessageData = new char [Msg.size()];
   44     memcpy(MessageData, Msg.data(), Msg.size());
   47   DD.AvailabilityData.MessageLen = Msg.size();
tools/clang/lib/Sema/SemaChecking.cpp
 5473     unsigned NumBytes = String.size();
 8789   size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size());
 8799   if (TypeSize <= StrRef.size() &&
 8852   size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size());
tools/clang/lib/Sema/SemaDeclAttr.cpp
 1629   if (AttrName.size() > 4 && AttrName.startswith("__") &&
 3835   switch (Str.size()) {
 3915   if (Str.size() >= 4 && Str[0] == 'V') {
 3917     size_t StrSize = Str.size();
 5333   if (StrRef.size() == 38 && StrRef.front() == '{' && StrRef.back() == '}')
 5337   if (StrRef.size() != 36) {
tools/clang/lib/Sema/SemaDeclObjC.cpp
 3639   unsigned MinPossibleEditDistance = abs((int)MethodName.size() - (int)Typo.size());
 3641       Typo.size() / MinPossibleEditDistance < 1)
tools/clang/lib/Sema/SemaExpr.cpp
 3188   Target.resize(CharByteWidth * (Source.size() + 1));
11237       (LHSStrRef.size() > 1 && LHSStrRef.startswith("0")) ||
11238       (RHSStrRef.size() > 1 && RHSStrRef.startswith("0")) ||
tools/clang/lib/Sema/SemaInit.cpp
 6719       if (Name.size() >= 2 && Name.front() == '_' &&
tools/clang/lib/Sema/SemaLookup.cpp
 4224   unsigned MinED = abs((int)Name.size() - (int)TypoStr.size());
 4224   unsigned MinED = abs((int)Name.size() - (int)TypoStr.size());
 4225   if (MinED && TypoStr.size() / MinED < 3)
 4230   unsigned UpperBound = (TypoStr.size() + 2) / 3;
 4249   if (TypoStr.size() < 3 &&
 4250       (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size()))
 4396   unsigned TypoLen = Typo->getName().size();
 5011   unsigned TypoLen = Typo->getName().size();
 5134   if (!ExternalTypo && ED > 0 && Typo->getName().size() / ED < 3)
tools/clang/lib/Serialization/ASTReader.cpp
  602     if (MacroName.size() == Macro.size())
  602     if (MacroName.size() == Macro.size())
 1188                 Blob.size() / 4));
 3150           static_cast<unsigned int>(Blob.size() / 4));
 3480       assert(Blob.size() % sizeof(PPEntityOffset) == 0);
 3481       F.NumPreprocessedEntities = Blob.size() / sizeof(PPEntityOffset);
 3512       assert(Blob.size() % sizeof(PPSkippedRange) == 0);
 3513       F.NumPreprocessedSkippedRanges = Blob.size() / sizeof(PPSkippedRange);
 3780   const unsigned char *DataEnd = Data + F.ModuleOffsetMap.size();
 4727   if (BlockNameLen + UserInfoLen > Blob.size()) return true;
 5958     StringRef FullFileName(FullFileNameStart, Blob.size() - Record[0]);
tools/clang/lib/Serialization/ASTWriter.cpp
 1369   for (; Filename[Pos] && Pos < BaseDir.size(); ++Pos)
 1400   Hasher.update(ArrayRef<uint8_t>(Bytes.bytes_begin(), Bytes.size()));
 2019       unsigned KeyLen = key.Filename.size() + 1 + 8 + 8;
 2254                                  Blob.size() - 1};
 2361                                   StringRef(Name.data(), Name.size() + 1));
 2757       Record.push_back(ID->getFileName().size());
 4597   Record.push_back(Str.size());
 5044         LE.write<uint16_t>(Name.size());
 5045         Out.write(Name.data(), Name.size());
tools/clang/lib/Serialization/ASTWriterDecl.cpp
  333   Record.push_back(Arg.size());
  345   Record.push_back(Name.size() + 1 + Value.size());
  345   Record.push_back(Name.size() + 1 + Value.size());
tools/clang/lib/Serialization/GlobalModuleIndex.cpp
  737     unsigned KeyLen = Key.size();
  803     Record.push_back(Name.size());
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
  607   unsigned n = str.size();
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
  869     if ((stringValue.trim().size() == 0 && stringValue.size() > 0) ||
  869     if ((stringValue.trim().size() == 0 && stringValue.size() > 0) ||
 1177   if ((Comment.trim().size() == 0 && Comment.size() > 0) || // Is Whitespace
 1177   if ((Comment.trim().size() == 0 && Comment.size() > 0) || // Is Whitespace
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 1587   return Snippet.size();
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  816     unsigned len = Msg.size();
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
   81   if (Checker.FullName.size() == PackageName.size())
   81   if (Checker.FullName.size() == PackageName.size())
   85   if (Checker.FullName[PackageName.size()] == PackageSeparator)
  519     size_t NameLength = Checker.FullName.size();
tools/clang/lib/Tooling/Core/Lookup.cpp
  134   auto UnspelledSpecifier = QName.drop_back(Spelling.size());
tools/clang/lib/Tooling/Core/Replacement.cpp
  391       Delta += R.getReplacementText().size() - R.getLength();
  397       if (R.getOffset() + RText.size() > End) {
  401         Length += R.getLength() - RText.size();
  403       DeltaFirst += RText.size() - R.getLength();
  539     unsigned Length = R.getReplacementText().size();
  550       Offset += R.getReplacementText().size() - R.getLength();
  554         R.getOffset() + R.getReplacementText().size() <= Position) {
  555       Position = R.getOffset() + R.getReplacementText().size();
tools/clang/lib/Tooling/FileMatchTrie.cpp
   80     Children[Element].insert(NewPath, ConsumedLength + Element.size() + 1);
  120           ConsumedLength + Element.size() + 1);
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
  253     NextLineOffset = std::min(Code.size(), Offset + Line.size() + 1);
  253     NextLineOffset = std::min(Code.size(), Offset + Line.size() + 1);
  260                       Offset, std::min(Line.size() + 1, Code.size() - Offset))),
  260                       Offset, std::min(Line.size() + 1, Code.size() - Offset))),
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
   70   size_t Limit = std::min(L.size(), R.size());
   70   size_t Limit = std::min(L.size(), R.size());
   81     StringRef V = Prefix ? Value.first.substr(0, Key.size()) : Value.first;
   85     StringRef V = Prefix ? Value.first.substr(0, Key.size()) : Value.first;
  334         if (Dir->size() > ShortDirectorySegment) // not trivial ones
  387       if (Dir->size() > ShortDirectorySegment)
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp
   96     EndPos = Code.size();
  101     if (Line.size() > ColumnLimit)
  120     int End = Start + R.getReplacementText().size();
  123         R.getOffset() > 0 && R.getOffset() <= Code.size() &&
  128     Offset += R.getReplacementText().size() - R.getLength();
  277                 RE.getExistingReplacement()->getReplacementText().size();
tools/clang/lib/Tooling/RefactoringCallbacks.cpp
  161   for (size_t Index = 0; Index < ToTemplate.size();) {
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  117   assert(Begin <= Text.size());
  118   assert(End <= Text.size());
tools/clang/tools/clang-diff/ClangDiff.cpp
  311     End = Code.size();
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  239     if (ReadChars > FC.size())
  248     if (ReadChars + 8 > FC.size())
  258       if (ReadChars + 8 > FC.size())
  265       if (ReadChars + 8 > FC.size())
  272       if (ReadChars + 8 > FC.size())
  279       if (ReadChars + TripleSize > FC.size())
  286       if (!Offset || Offset + Size > FC.size())
  439     OS.write(Content->data(), Content->size());
tools/clang/tools/diagtool/DiagTool.cpp
   46     unsigned len = it->getKey().size();
   56     unsigned spaces = (maxName + 3) - (it->size());
tools/clang/tools/diagtool/TreeView.cpp
   81     if (RootGroup.size() > UINT16_MAX) {
tools/clang/tools/driver/driver.cpp
  119              Edit.slice(2, Edit.size()-1).find('/') != StringRef::npos) {
  122     ReplPattern = ReplPattern.slice(0, ReplPattern.size()-1);
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  818       if (FromDeclNameRef.size() < ReplaceName.size())
tools/clang/tools/extra/clang-doc/BitcodeWriter.cpp
  192         assert((Init.second.Name.size() + 1) <= BitCodeConstants::RecordSize);
  272   assert(BlockIdName.data() && BlockIdName.size() && "Unknown BlockId.");
  321   assert(Str.size() < (1U << BitCodeConstants::StringLengthSize));
  322   Record.push_back(Str.size());
tools/clang/tools/extra/clang-doc/YAMLGenerator.cpp
   87     if (Scalar.size() != 40)
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
   79   for (size_t I = 0; I < Text.size(); ++I) {
  113   Flush(Text.size());
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp
   40     assert(Directory.size() <= PathStorage.size());
   41     PathStorage.resize(Directory.size()); // Shrink to parent.
tools/clang/tools/extra/clang-query/Query.cpp
  105       OS << "  " << std::string(prefixText.size() + Source.size(), '=') << '\n';
tools/clang/tools/extra/clang-query/QueryParser.cpp
   43   Line = Line.drop_front(Word.size());
   65     if (P->CompletionPos && P->CompletionPos <= Word.data() + Word.size()) {
   78     else if (CaseStr.size() != 0 && IsCompletion && WordCompletionPos <= CaseStr.size() &&
   78     else if (CaseStr.size() != 0 && IsCompletion && WordCompletionPos <= CaseStr.size() &&
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  333     AnalyzerOptions->Config[OptName.substr(AnalyzerPrefix.size())] = Opt.second;
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
   52       Message = Message.substr(0, Message.size() - CheckNameInMessage.size());
  272   size_t BracketIndex = NolintIndex + NolintDirectiveText.size();
  274   if (BracketIndex < Line.size() && Line[BracketIndex] == '(') {
tools/clang/tools/extra/clang-tidy/GlobList.cpp
   31   GlobList = GlobList.substr(UntrimmedGlob.size() + 1);
tools/clang/tools/extra/clang-tidy/abseil/AbseilMatcher.h
   49   Path = Path.drop_front(PrefixPosition + AbslPrefix.size());
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  131   unsigned UpperBound = (ArgName.size() + 2) / 3 + 1;
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedOperatorInStrlenInAllocCheck.cpp
   91       StrLenText.find(Arg0Text) + Arg0Text.size(), StrLenText.size());
   91       StrLenText.find(Arg0Text) + Arg0Text.size(), StrLenText.size());
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
   92                    MatchedDecl->getName().size()),
tools/clang/tools/extra/clang-tidy/google/GlobalVariableDeclarationCheck.cpp
   36   if (!llvm::isAlpha(FC) || Decl->getName().size() == 1) {
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.cpp
  136   if (!std::strncmp(Data, Port.data(), Port.size()) &&
  137       !isIdentifierBody(Data[Port.size()]))
tools/clang/tools/extra/clang-tidy/llvm/HeaderGuardCheck.cpp
   41     Guard = Guard.replace(PosLLVMProject, LLVMProject.size(), "/llvm/");
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
   75         StartLoc.getLocWithOffset(StringRef("cast").size() - 1);
   85         StartLoc.getLocWithOffset(StringRef("cast").size() - 1);
  122     Replacement += RHSString.substr(Func->getName().size());
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp
   63   SourceLocation EndLoc = IoStateLoc.getLocWithOffset(TypeName.size() - 1);
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  852   size_t Len = ContainerName.size();
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
  180     ConstructCallEnd = ConstructCallStart.getLocWithOffset(ExprStr.size());
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
  197   return !Invalid && std::strspn(Text.data(), " \t\r\n") == Text.size();
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
   83     int TextLength = Text.size();
tools/clang/tools/extra/clang-tidy/objc/PropertyDeclarationCheck.cpp
   49   if (Index < Name.size()) {
   90   assert(Start != llvm::StringRef::npos && Start + 1 < PropertyName.size());
  115   assert(MatchedDecl->getName().size() > 0);
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  302       if (Groups[2].size() > 0) {
  304         Substr = Substr.substr(Groups[0].size());
  305       } else if (Groups[3].size() > 0) {
  307         Substr = Substr.substr(Groups[0].size() - Groups[4].size());
  307         Substr = Substr.substr(Groups[0].size() - Groups[4].size());
  308       } else if (Groups[5].size() > 0) {
  310         Substr = Substr.substr(Groups[0].size() - Groups[6].size());
  310         Substr = Substr.substr(Groups[0].size() - Groups[6].size());
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
  181               Ifndef, Ifndef.getLocWithOffset(CurHeaderGuard.size())),
  185               Define, Define.getLocWithOffset(CurHeaderGuard.size())),
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
   21       return Str.substr(0, Str.size() - Suffix.size());
   21       return Str.substr(0, Str.size() - Suffix.size());
  231       Edits[LineNumber].second.append(SourceText.data(), SourceText.size());
tools/clang/tools/extra/clangd/ClangdServer.cpp
  282   return formatCode(Code, File, {tooling::Range(0, Code.size())});
tools/clang/tools/extra/clangd/CodeComplete.cpp
  306               Qualifier.size() < ShortestQualifier.size())
  306               Qualifier.size() < ShortestQualifier.size())
 1343     ReplacedRange.start.character -= HeuristicPrefix.Name.size();
 1710   assert(Offset <= Content.size());
 1718   Result.Name = Content.slice(Rest.size(), Offset);
 1725       Content.slice(Rest.size(), Result.Name.begin() - Content.begin());
tools/clang/tools/extra/clangd/Diagnostics.cpp
  429             Msg.resize(Rest.size());
  470   if (R.size() != Code.size())
  470   if (R.size() != Code.size())
tools/clang/tools/extra/clangd/Format.cpp
   67       return Line.substr(I, Marker.size());
   80   return Code.substr(Rest.size());
   93                               From.size(), To);
  139   StringRef NextLine = firstLine(Code.substr(Cursor + Trailing.size() + 1));
  143   if (unsigned TrailWS = Trailing.size() - TrailingTrim.size())
  143   if (unsigned TrailWS = Trailing.size() - TrailingTrim.size())
  181       tooling::Range(Leading.data() - Code.data(), Leading.size()));
  213       LengthChange += R.getReplacementText().size() - R.getLength();
  217              ReplacementSplit <= int(R.getReplacementText().size()) &&
  358       Offset += R.getReplacementText().size();
  364       if (PositionWithinReplacement > R.getReplacementText().size()) {
  365         Offset += R.getReplacementText().size();
tools/clang/tools/extra/clangd/FormattedString.cpp
   28   for (size_t From = 0; From < Input.size();) {
   46   for (size_t From = 0; From < Input.size();) {
tools/clang/tools/extra/clangd/FuzzyMatch.cpp
   77     : PatN(std::min<int>(MaxPat, Pattern.size())),
  156   assert(Text.size() == Roles.size());
  157   if (Text.size() == 0)
  166   for (unsigned I = 0; I < Text.size() - 1; ++I) {
  175   Roles[Text.size() - 1] = packedLookup<CharRole>(CharRoles, Types);
  182   WordN = std::min<int>(MaxWord, NewWord.size());
tools/clang/tools/extra/clangd/Headers.cpp
  103       return LHS.IncludeHeader.size() < RHS.IncludeHeader.size();
  103       return LHS.IncludeHeader.size() < RHS.IncludeHeader.size();
tools/clang/tools/extra/clangd/Quality.cpp
   39   return Name.size() >= 2 && Name[0] == '_' &&
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
  164   for (size_t I = 0, E = Glob.size(); I < E; ++I) {
tools/clang/tools/extra/clangd/RIFF.cpp
   21   if (Stream.size() < 8)
   28   if (Stream.size() < Len)
   43   llvm::support::endian::write32le(Size, C.Data.size());
   46   if (C.Data.size() % 2)
   57   if (RIFF->Data.size() < 4)
   73     DataLen += 4 + 4 + C.Data.size() + (C.Data.size() % 2);
   73     DataLen += 4 + 4 + C.Data.size() + (C.Data.size() % 2);
tools/clang/tools/extra/clangd/Selection.cpp
  174       bool SelectedAll = Begin == 0 && End >= FileContent.rtrim().size();
  467   if (Buf.size() == 0)
  471   if (Offset == Buf.size())
tools/clang/tools/extra/clangd/SourceCode.cpp
   59   for (size_t I = 0; I < U8.size();) {
  116   if (Result > U8.size()) {
  118     return U8.size();
  134     Count = Code.size();
  188   Offset = std::min(Code.size(), Offset);
  395   assert(Offset < Buf.size());
  598   Offset = std::min(Code.size(), Offset);
  948   std::vector<CharRole> Roles(Content.size());
  961   for (unsigned I = 0; I < Content.size(); ++I) {
 1106     ER.EligiblePoints.emplace_back(offsetToPosition(Code, Code.size()));
tools/clang/tools/extra/clangd/URI.cpp
   43     if (Body.size() > 2 && Body[0] == '/' && Body[2] == ':')
   54     if (AbsolutePath.size() > 1 && AbsolutePath[1] == ':')
tools/clang/tools/extra/clangd/XRefs.cpp
  748       if (EndOffset <= Buffer.size() && StartOffset < EndOffset)
tools/clang/tools/extra/clangd/index/Background.cpp
  190   return Path.drop_back(llvm::sys::path::extension(Path).size());
tools/clang/tools/extra/clangd/index/Serialization.cpp
  168       Index.try_emplace({Sorted[I].data(), Sorted[I].size()}, I);
  188     assert(Index.count({S.data(), S.size()}) && "string not interned");
  189     return Index.find({S.data(), S.size()})->second;
tools/clang/tools/extra/clangd/index/Symbol.h
  159     assert(!S.data()[S.size()] && "Visited StringRef must be null-terminated");
tools/clang/tools/extra/clangd/index/SymbolID.cpp
   28   assert(Raw.size() == RawSize);
   36   if (Str.size() != RawSize * 2)
tools/clang/tools/extra/clangd/index/dex/Trigram.cpp
   25   std::vector<CharRole> Roles(Identifier.size());
   27                  llvm::makeMutableArrayRef(Roles.data(), Identifier.size()));
   90   if (Query.size() < 3) // short-query trigrams only
   94   std::vector<CharRole> Roles(Query.size());
   95   calculateRoles(Query, llvm::makeMutableArrayRef(Roles.data(), Query.size()));
   99   for (unsigned I = 0; I < Query.size(); ++I) {
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp
   87                                                  ThenCode.size(), ElseCode)))
   91                                                  ElseCode.size(), ThenCode)))
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
  126     Pending = Pending.drop_front(MatchPos + Matches[0].size());
tools/clang/tools/extra/clangd/unittests/FuzzyMatchTests.cpp
   25     if (Word.size() == Annotated->size())
  290   std::vector<CharRole> Roles(Text.size());
  293   for (unsigned I = 0; I < Text.size(); ++I)
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp
   46     return Range{Position{}, offsetToPosition(Buffer, Buffer.size())};
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  300       HasValue(StartOfFile.getLocWithOffset(Source.code().size())));
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp
   48       Outer.size() >= Wrapping.first.size() + Wrapping.second.size())
   48       Outer.size() >= Wrapping.first.size() + Wrapping.second.size())
   48       Outer.size() >= Wrapping.first.size() + Wrapping.second.size())
   49     return Outer.drop_front(Wrapping.first.size()).drop_back(Wrapping.second.size());
   49     return Outer.drop_front(Wrapping.first.size()).drop_back(Wrapping.second.size());
tools/clang/tools/extra/modularize/CoverageChecker.cpp
  240   if (UmbrellaDirName.size())
  355   if (IncludePath.size())
  360     ((IncludePath.size() >= 2) && (IncludePath[1] == ':'))) {
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
   93   if (ProblemFilesPath.size() != 0) {
  143   if (HeaderPrefix.size() != 0)
  216   if (HeaderPrefix.size() != 0)
  471   if (Extension.size() == 0)
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
  228   if (HeaderPrefix.size() == 0)
  259   if ((HeaderDirectory.size() == 0) && (HeaderPrefix.size() != 0)) {
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  389     Length = MacroName.size();
tools/clang/tools/extra/unittests/clang-change-namespace/ChangeNamespaceTests.cpp
   55         format::getLLVMStyle(), Code, {tooling::Range(0, Code.size())});
tools/clang/tools/extra/unittests/clang-tidy/OverlappingReplacementsTest.cpp
  131     return OldName.substr(0, OldName.size() - 4).str() + "melo";
tools/clang/tools/libclang/BuildSystem.cpp
   81   *out_buffer_ptr = static_cast<char*>(llvm::safe_malloc(Data.size()));
   82   *out_buffer_size = Data.size();
   83   memcpy(*out_buffer_ptr, Data.data(), Data.size());
  143   *out_buffer_ptr = static_cast<char*>(llvm::safe_malloc(Data.size()));
  144   *out_buffer_size = Data.size();
  145   memcpy(*out_buffer_ptr, Data.data(), Data.size());
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
  399   if (Str.data()[Str.size()] == '\0')
  405   char *buf = IdxCtx.StrScratch.Allocate<char>(Str.size() + 1);
  407   buf[Str.size()] = '\0';
tools/clang/tools/libclang/CXLoadedDiagnostic.cpp
   51     char *mem = Alloc.Allocate<char>(Blob.size() + 1);
   52     memcpy(mem, Blob.data(), Blob.size());
   53     mem[Blob.size()] = '\0';
  324   if (Name.size() > 65536)
  332   if (Name.size() > 65536)
  342   if (Name.size() > 65536)
  368   if (CodeToInsert.size() > 65536)
tools/clang/tools/libclang/CXString.cpp
   87   if (!String.empty() && String.data()[String.size()] != 0)
   98   char *Spelling = static_cast<char *>(llvm::safe_malloc(String.size() + 1));
   99   memmove(Spelling, String.data(), String.size());
  100   Spelling[String.size()] = 0;
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
  346       Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues);
  353   Comps = Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues);
  358   Comps = Parser::completeExpression(Code, Code.size(), nullptr, &NamedValues);
tools/clang/unittests/Format/FormatTest.cpp
   39     std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
tools/clang/unittests/Format/FormatTestCSharp.cpp
   36     return format(Code, 0, Code.size(), Style);
tools/clang/unittests/Format/FormatTestComments.cpp
   42     std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
tools/clang/unittests/Format/FormatTestJS.cpp
   39     return format(Code, 0, Code.size(), Style);
tools/clang/unittests/Format/FormatTestJava.cpp
   36     return format(Code, 0, Code.size(), Style);
tools/clang/unittests/Format/FormatTestObjC.cpp
   44     std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
tools/clang/unittests/Format/FormatTestProto.cpp
   36     return format(Code, 0, Code.size(), Style);
tools/clang/unittests/Format/FormatTestRawStrings.cpp
   37     std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size()));
tools/clang/unittests/Format/FormatTestTableGen.cpp
   36     return format(Code, 0, Code.size(), Style);
tools/clang/unittests/Format/FormatTestTextProto.cpp
   34     return format(Code, 0, Code.size(), Style);
tools/clang/unittests/Format/NamespaceEndCommentsFixerTest.cpp
   42         /*Ranges=*/{1, tooling::Range(0, Code.size())}, Style);
tools/clang/unittests/Format/SortImportsTestJS.cpp
   25       Length = Code.size() - Offset;
tools/clang/unittests/Format/SortImportsTestJava.cpp
   13     return std::vector<tooling::Range>(1, tooling::Range(0, Code.size()));
tools/clang/unittests/Format/SortIncludesTest.cpp
   24     return std::vector<tooling::Range>(1, tooling::Range(0, Code.size()));
tools/clang/unittests/Format/UsingDeclarationsSorterTest.cpp
   38                                  /*Ranges=*/{1, tooling::Range(0, Code.size())},
tools/clang/unittests/Lex/HeaderMapTest.cpp
   68     assert(SI + S.size() + 1 <= sizeof(File.Bytes));
   71     SI += S.size() + 1;
tools/clang/unittests/Rename/ClangRenameTest.h
   97         format::getLLVMStyle(), Code, {tooling::Range(0, Code.size())});
tools/clang/unittests/Rewrite/RewriteBufferTest.cpp
   46   Buf.RemoveText(Pos, RemoveStr.size());
   50   tagRange(Pos, TagStr.size(), "outer", Buf);
   51   tagRange(Pos, TagStr.size(), "inner", Buf);
   91   Buf.RemoveText(Input.find(RemoveStr0), RemoveStr0.size(),
  108   Buf.RemoveText(Input.find(RemoveStr1), RemoveStr1.size());
tools/clang/unittests/Sema/CodeCompleteTest.cpp
   93   Offset = std::min(Code.size(), Offset);
tools/clang/unittests/Tooling/RefactoringTest.cpp
 1590                                                   .size(),
tools/clang/unittests/Tooling/TransformerTest.cpp
   52   const std::vector<Range> Ranges(1, Range(0, Code.size()));
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
  104               + std::string(type, 0, type.size()-1) + ">(Record.readInt())")
  152     AttrSpelling = AttrSpelling.substr(2, AttrSpelling.size() - 4);
 3959   OS << Name << "\n" << std::string(Name.size(), '=') << "\n";
tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp
   81   for (unsigned i = 0, e = Str.size(); i != e; ++i) {
tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
   40   for (size_t i = 0, e = UTF8.size(); i != e; ++i) {
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
 1012     while (End < Text.size() - 1 && Text[End] == '%' &&
 1653   OS << Str << "\n" << std::string(Str.size(), Kind) << "\n";
tools/clang/utils/TableGen/NeonEmitter.cpp
  377     for (unsigned I = 1; I < Proto.size(); ++I)
  720   for (I = 0; I < Name.size(); ++I) {
  733     for (I = 0; I < Name.size(); ++I) {
  748     for (I = 0; I < Name.size(); ++I) {
tools/dsymutil/BinaryHolder.cpp
   25   StringRef Object = Filename.substr(Archive.size() + 1).drop_back();
tools/dsymutil/DwarfLinker.cpp
 1431   return Name.size() > 2 && (Name[0] == '-' || Name[0] == '+') &&
 1449   if (!SelectorStart.size())
 1452   StringRef Selector(SelectorStart.data(), SelectorStart.size() - 1);
 1460   if (ClassName[ClassName.size() - 1] == ')') {
 2479   unsigned Size = 4 /* FORM_strp */ + File.size() + 1 +
tools/dsymutil/DwarfStreamer.cpp
  471   LineSectionSize += PrologueBytes.size() + 4;
  650     LineSectionSize += Translated.size() + 1;
  662     LineSectionSize += Translated.size() + 1;
  771   FrameSectionSize += CIEBytes.size();
  781   MS->EmitIntValue(FDEBytes.size() + 4 + AddrSize, 4);
  785   FrameSectionSize += FDEBytes.size() + 8 + AddrSize;
tools/dsymutil/MachODebugMapParser.cpp
  572     if (Name.size() == 0 || Name[0] == '\0')
tools/dsymutil/MachOUtils.cpp
  540                     EntryRef.getString().size() + 1);
tools/dsymutil/NonRelocatableStringpool.cpp
   26     CurrentEndOffset += S.size() + 1;
tools/gold/gold-plugin.cpp
  263     } else if (opt.size() == 2 && opt[0] == 'O') {
tools/lld/COFF/Chunks.cpp
   42   sectionNameSize = sectionName.size();
  658   memcpy(buf, str.data(), str.size());
  659   buf[str.size()] = '\0';
tools/lld/COFF/Chunks.h
  440   size_t getSize() const override { return str.size() + 1; }
tools/lld/COFF/DLL.cpp
   45     return alignTo(name.size() + 3, 2);
   51     memcpy(buf + 2, name.data(), name.size());
tools/lld/COFF/Driver.cpp
  971   while (cursor < altPath.size()) {
tools/lld/COFF/InputFiles.cpp
  840   const char *nameStart = buf + sizeof(coff_import_header) + name.size() + 1;
tools/lld/COFF/Symbols.cpp
   68     nameSize = nameStr.size();
   69     assert(nameSize == nameStr.size() && "name length truncated");
  100   nameSize = origName.size();
tools/lld/COFF/Symbols.h
   92         isRuntimePseudoReloc(false), nameSize(n.size()),
tools/lld/COFF/Writer.cpp
  323     assert(!config->debug || name.size() <= COFF::NameSize ||
  326             std::min(name.size(), (size_t)COFF::NameSize));
 1076   assert(str.size() > COFF::NameSize);
 1117   if (name.size() > COFF::NameSize) {
 1122     memcpy(sym.Name.ShortName, name.data(), name.size());
 1147     if (sec->name.size() <= COFF::NameSize)
tools/lld/ELF/EhFrame.cpp
  102   d = d.slice(s.size() + 1);
tools/lld/ELF/InputFiles.cpp
   85   size_t bufSize = mb.getBuffer().size();
  826       d += s.size() + 1;
 1017       if (this->stringTable.size() <= eSym.st_name)
 1207       if (val >= this->stringTable.size())
 1212       if (val >= this->stringTable.size())
tools/lld/ELF/InputSection.cpp
 1213   for (unsigned i = 0, n = s.size(); i != n; i += entSize) {
tools/lld/ELF/LTO.cpp
  152         usedStartStop.insert(s.substr(prefix.size()));
tools/lld/ELF/Relocations.cpp
  728   for (size_t i = 0, e = name.size(); i != e + 1; ++i) {
tools/lld/ELF/ScriptLexer.cpp
  156         e = s.size() - 1;
  160     size_t size = s.size();
  162     if (s.size() == size)
tools/lld/ELF/ScriptParser.cpp
  136     return s.substr(1, s.size() - 2);
 1306     phdrs.push_back((tok.size() == 1) ? next() : tok.substr(1));
tools/lld/ELF/SymbolTable.cpp
   60   if (pos != StringRef::npos && pos + 1 < name.size() && name[pos + 1] == '@')
tools/lld/ELF/Symbols.h
   49   StringRefZ(StringRef s) : data(s.data()), size(s.size()) {}
  177     nameSize = s.size();
tools/lld/ELF/SyntheticSections.cpp
   77   return {(const uint8_t *)s.data(), s.size() + 1};
  257   ArrayRef<uint8_t> contents = {(const uint8_t *)s.data(), s.size() + 1};
 1172   this->size = this->size + s.size() + 1;
 1179     memcpy(buf, s.data(), s.size());
 1180     buf[s.size()] = '\0';
 1181     buf += s.size() + 1;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp
   85   if ((reloff + nreloc*8) > buffer.size())
  100   if ((istOffset + istCount*4) > buffer.size())
  153   if (fileBuffer.size() < 32)
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
  196   memcpy(s, str.begin(), (str.size() > 16) ? 16: str.size());
  196   memcpy(s, str.begin(), (str.size() > 16) ? 16: str.size());
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  398     size += sizeof(dylib_command) + pointerAlign(_file.installName.size() + 1);
  418     size += pointerAlign(sizeof(dylinker_command) + dyldPath().size()+1);
  441     size += sizeof(dylib_command) + pointerAlign(dep.path.size()+1);
  447     size += pointerAlign(sizeof(rpath_command) + path.size() + 1);
  836       uint32_t size = sizeof(dylib_command) + pointerAlign(path.size() + 1);
  846       memcpy(lc + sizeof(dylib_command), path.begin(), path.size());
  847       lc[sizeof(dylib_command) + path.size()] = '\0';
  914       uint32_t size=pointerAlign(sizeof(dylinker_command)+dyldPath().size()+1);
  921       memcpy(lc+sizeof(dylinker_command), dyldPath().data(), dyldPath().size());
  922       lc[sizeof(dylinker_command)+dyldPath().size()] = '\0';
  963       uint32_t size = sizeof(dylib_command) + pointerAlign(dep.path.size()+1);
  973       memcpy(lc+sizeof(dylib_command), dep.path.begin(), dep.path.size());
  974       lc[sizeof(dylib_command)+dep.path.size()] = '\0';
  981       uint32_t size = pointerAlign(sizeof(rpath_command) + path.size() + 1);
  987       memcpy(lc+sizeof(rpath_command), path.begin(), path.size());
  988       lc[sizeof(rpath_command)+path.size()] = '\0';
 1071     memcpy(&_buffer[strOffset], sym.name.begin(), sym.name.size());
 1072     strOffset += sym.name.size();
 1262   StringRef partialStr = entry.name.drop_front(_cummulativeString.size());
 1271     for (int n=edgeStr.size()-1; n > 0; --n) {
 1275         bNodeStr = bNodeStr.drop_back(edgeStr.size()-n).copy(allocator);
 1326   StringRef partialStr = entry.name.drop_front(_cummulativeString.size());
 1343       nodeSize += _importedName.size();
 1356     nodeSize += edge._subString.size() + 1 // String length.
 1376                           + _importedName.size() + 1;
 1477     _symbolStringPoolSize += (sym.name.size()+1);
 1480     _symbolStringPoolSize += (sym.name.size()+1);
 1483     _symbolStringPoolSize += (sym.name.size()+1);
 1486     _symbolStringPoolSize += (sym.name.size()+1);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  877           file.ownedAllocations.Allocate<char>(newDirPath.size() + 2);
  878         memcpy(p, newDirPath.data(), newDirPath.size());
  879         p[newDirPath.size()] = '/';
  880         p[newDirPath.size() + 1] = '\0';
 1483               6 + targ->name().size() + llvm::getULEB128Size(bind.segOffset);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  704   char *strCopy = alloc.Allocate<char>(str.size() + 1);
  705   memcpy(strCopy, str.data(), str.size());
  706   strCopy[str.size()] = '\0';
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  492     if (scalar.size() != 3)
tools/lld/lib/ReaderWriter/MachO/StubsPass.cpp
  321       lazyOffset += target->name().size() + 12;
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
   97                                        << newName.size() << ")\n");
  127                                    << ", " << newName.size() << ")\n");
  141                                      << newName2.size() << ")\n");
  150                                         << ", " << atom.name().size() << ")\n");
  167     char *s = _storage.Allocate<char>(str.size());
  168     memcpy(s, str.data(), str.size());
  169     return StringRef(s, str.size());
  673       char *s = _storage.Allocate<char>(str.size());
  674       memcpy(s, str.data(), str.size());
  675       return StringRef(s, str.size());
  767                                         << ", " << _targetName.size() << ")\n");
  851                                    << ", " << _name.size() << ")\n");
 1019                       << _name.size() << ")\n");
 1088                                    << ", " << _name.size() << ")\n");
 1161                                    << ", " << _name.size() << ")\n");
tools/lld/wasm/Writer.cpp
  708     writeUleb128(os, bodyContent.size(), "function size");
tools/lld/wasm/WriterUtils.cpp
   88              msg + " [str[" + Twine(string.size()) + "]: " + string + "]");
   89   encodeULEB128(string.size(), os);
   90   os.write(string.data(), string.size());
tools/lldb/include/lldb/Utility/DataBufferHeap.h
   97   void CopyData(llvm::StringRef src) { CopyData(src.data(), src.size()); }
tools/lldb/include/lldb/Utility/ReproducerInstrumentation.h
  274   bool HasData(unsigned size) { return size <= m_buffer.size(); }
tools/lldb/source/API/SBCommandReturnObject.cpp
  109   return ref().GetOutputData().size();
  115   return ref().GetErrorData().size();
tools/lldb/source/Breakpoint/BreakpointIDList.cpp
  163             tmp_str[pos + 1] == '*' && tmp_str.size() == (pos + 2)) {
  339     llvm::StringRef to = right1.drop_front(specifier_str.size());
tools/lldb/source/Commands/CommandCompletions.cpp
  212     Name = Name.drop_front(PartialItem.size());
tools/lldb/source/Commands/CommandObjectCommands.cpp
  564       raw_command_string = raw_command_string.substr(alias_command.size());
 1040           (int)regex_sed.size(), regex_sed.data());
 1044     size_t regex_sed_size = regex_sed.size();
 1049           (int)regex_sed.size(), regex_sed.data());
 1056                                      (int)regex_sed.size(), regex_sed.data());
 1070           (int)(regex_sed.size() - first_separator_char_pos - 1),
 1072           (int)regex_sed.size(), regex_sed.data());
 1083           (int)(regex_sed.size() - second_separator_char_pos - 1),
 1085           (int)regex_sed.size(), regex_sed.data());
 1098             (int)(regex_sed.size() - third_separator_char_pos - 1),
 1105           separator_char, separator_char, separator_char, (int)regex_sed.size(),
 1111           separator_char, separator_char, separator_char, (int)regex_sed.size(),
tools/lldb/source/Commands/CommandObjectExpression.cpp
  324   const std::size_t original_code_size = code.size();
  332   assert(original_code_size >= code.size());
  333   std::size_t raw_start = original_code_size - code.size();
tools/lldb/source/Commands/CommandObjectMemory.cpp
 1503         size_t len = entry.ref().size();
 1577                                buffer.GetString().size(),
 1578                                error) == buffer.GetString().size())
tools/lldb/source/Commands/CommandObjectPlatform.cpp
   36   if (permissions.size() != 9)
tools/lldb/source/Commands/CommandObjectThread.cpp
 1610       if (command.size() != 2U)
tools/lldb/source/Core/FormatEntity.cpp
  268     : string(s.data(), s.size()), printf_format(), children(),
  287     children.back().string.append(s.data(), s.size());
  918         subpath.size() > close_bracket_index) {
 1135       s.Write(scope_stream.GetString().data(), scope_stream.GetString().size());
 1971           remainder = format_str.drop_front(format_str.size() - 1);
 2129       if (format.size() == 1) {
 2342                        match_prefix.size()) == 0)
 2344             MakeMatch(prefix, def->children[i].name + match_prefix.size()));
 2357   if (dollar_pos == str.size() - 1) {
tools/lldb/source/Core/Highlighter.cpp
   34   if (!cursor_pos || *cursor_pos >= line.size()) {
tools/lldb/source/Host/common/Editline.cpp
  950       to_add = to_add.substr(request.GetCursorArgumentPrefix().size());
  959       to_add = to_add.substr(request.GetCursorArgumentPrefix().size());
  976         longest_prefix.substr(request.GetCursorArgumentPrefix().size());
tools/lldb/source/Host/posix/DomainSocket.cpp
   36   if (name.size() + name_offset > sizeof(saddr_un->sun_path))
   42   memcpy(saddr_un->sun_path + name_offset, name.data(), name.size());
   51         offsetof(struct sockaddr_un, sun_path) + name_offset + name.size();
tools/lldb/source/Interpreter/CommandAlias.cpp
   28   if (options_args.size() < 1)
  143   help_string.Printf("'%*s", (int)command_name.size(), command_name.data());
tools/lldb/source/Interpreter/CommandHistory.cpp
   33   if (input_str.size() < 2)
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1241         end = command_string.size();
 1266           end >= command_string.size())
 1735     const std::size_t actual_cmd_name_len = cmd_obj->GetCommandName().size();
 2488   size_t line_width_max = max_columns - prefix.size();
 2490     line_width_max = help_text.size() + prefix.size();
 2490     line_width_max = help_text.size() + prefix.size();
 2492   strm.IndentMore(prefix.size());
 2510     if (this_line.size() != help_text.size())
 2510     if (this_line.size() != help_text.size())
 2519     help_text = help_text.drop_front(this_line.size()).ltrim();
 2521   strm.IndentLess(prefix.size());
 2531                        (int)separator.size(), separator.data());
 2539   int indent_size = max_word_len + separator.size() + 2;
 2555     return pos == llvm::StringRef::npos ? S.size() : pos;
 2685   size_t size = str.size();
 2977           actual_cmd_name_len = cmd_obj->GetCommandName().size();
 2982           actual_cmd_name_len += cmd_name.size();
 2997           actual_cmd_name_len = sub_cmd_name.size() + 1;
tools/lldb/source/Interpreter/OptionArgParser.cpp
   39   if (s.size() != 1)
tools/lldb/source/Interpreter/OptionValueArray.cpp
  102   if (index.size() == name.size()) {
  102   if (index.size() == name.size()) {
tools/lldb/source/Interpreter/OptionValueBoolean.cpp
   51       if (value_str.size() == 0)
tools/lldb/source/Interpreter/OptionValueDictionary.cpp
  135         if ((key.size() > 2) && (key.back() == ']')) {
  137           key = key.substr(1, key.size() - 2);
  140             if ((key.size() > 2) && (key.back() == quote_char)) {
  142               key = key.substr(1, key.size() - 2);
  221   if (left.size() == name.size()) {
  221   if (left.size() == name.size()) {
tools/lldb/source/Interpreter/OptionValueFileSpec.cpp
   66     if (value.size() > 0) {
tools/lldb/source/Interpreter/OptionValueFormatEntity.cpp
   41   dst.reserve(str.size());
   43   for (size_t i = 0, e = str.size(); i != e; ++i) {
   86         const size_t trimmed_len = trimmed_value_str.size();
tools/lldb/source/Interpreter/OptionValueProperties.cpp
  628       max_name_len = std::max<size_t>(property->GetName().size(), max_name_len);
tools/lldb/source/Interpreter/OptionValueString.cpp
   51   if (value.size() > 0) {
   55       if (value.size() <= 1 || value.back() != value.front()) {
   80     if (value.size() > 0) {
tools/lldb/source/Interpreter/Options.cpp
 1080         input_line.erase(pos, tmp_arg.size());
 1092           input_line.erase(pos, tmp_arg.size());
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
  418   if (name.size() == 0 || name[0] != '$')
  438   if (name.size() == 0)
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  668     cmd = cmd.drop_front(to_remove.size());
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  726   assert(abs_pos <= code.size() && "Absolute position outside code string?");
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1100                                                      decl_name.size());
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
   89   assert(left_right_chars.size() == 2);
  120   if (basename.size() > 0 && basename[0] == '~')
  123   if (basename.size() <= idx)
  132   while (idx < basename.size()) {
  139   return idx == basename.size();
  152     if (arg_end + 1 < full.size())
  347       Written += Search.size();
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
  646                      m_text.data(), m_text.data() + m_text.size());
tools/lldb/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp
   18   for (size_t i = 0; i < name.size(); i++) {
tools/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
  714       if (base_str.size() > 2)
tools/lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp
   90   if (name.size() > 1 && (name[0] == '+' || name[0] == '-')) {
  102     int name_len = name.size();
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
 2037           name_strref.substr(ivar_prefix.size());
 2041       if (class_and_ivar.first.size() && class_and_ivar.second.size()) {
 2041       if (class_and_ivar.first.size() && class_and_ivar.second.size()) {
 2069           name_strref.substr(class_prefix.size());
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
 1226         const ConstString base_kernel(name_ref.drop_back(expand.size()));
tools/lldb/source/Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp
  103   if (str.size() <= hex_digits<data_t::uuid_t>() ||
  104       str.size() > hex_digits<data_t>())
  208     if (Str.empty() || ID.SetFromStringRef(Str, Str.size() / 2) != Str.size())
  208     if (Str.empty() || ID.SetFromStringRef(Str, Str.size() / 2) != Str.size())
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 1967           name.append(name_slice.data(), name_slice.size());
 3741               symbol_name = symbol_name + g_objc_v2_prefix_class.size();
 3747               symbol_name = symbol_name + g_objc_v2_prefix_metaclass.size();
 3752               symbol_name = symbol_name + g_objc_v2_prefix_ivar.size();
 4213                             symbol_name + g_objc_v2_prefix_class.size();
 4220                             symbol_name + g_objc_v2_prefix_metaclass.size();
 4227                             symbol_name + g_objc_v2_prefix_ivar.size();
 4252                     symbol_name = symbol_name + g_objc_v1_prefix_class.size();
 6252           size_t bytes_written = buffer.GetString().size();
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
 1176         ::memcpy(developer_dir_path, path_ref.data(), path_ref.size());
 1177         developer_dir_path[path_ref.size()] = '\0';
tools/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
  277       reg_info.dynamic_size_dwarf_len = dwarf_opcode_string.size() / 2;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
  165                 __FUNCTION__, int(payload.size()), payload.data(), send_async);
  184                 __FUNCTION__, int(payload.size()), payload.data(), send_async);
  217         int(payload.size()), payload.data(), response.GetStringRef().data(),
  235             __FUNCTION__, int(payload.size()), payload.data());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
  124   packet.Write(payload.data(), payload.size());
  139     const size_t packet_length = packet.size();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 1939           if (extractor.GetHexByteString(arg) * 2 != hex_arg.size()) {
 2248             response.GetStringRef().size())
 2275             response.GetStringRef().size())
 3214       new DataBufferHeap(response.GetStringRef().size() / 2, 0));
 3229       new DataBufferHeap(response.GetStringRef().size() / 2, 0));
 3607   if (result.GetUUID().SetFromStringRef(string, string.size() / 2) !=
 3608       string.size())
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
 2838   if (xfer_offset >= buffer.size()) {
 2847     if (xfer_length >= buffer.size()) {
 2857     response.PutEscapedBytes(buffer.data(), buffer.size());
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  583             size_t dwarf_opcode_len = value.size() / 2;
 1127           if (new_target_triple.getVendorName().size() == 0) {
 1130             if (new_target_triple.getOSName().size() == 0) {
 1133               if (new_target_triple.getEnvironmentName().size() == 0)
 1795             reg_value_extractor.GetStringRef().size() / 2, 0));
 2132                   const size_t byte_size = bytes.GetStringRef().size() / 2;
 2333       } else if (key.size() == 2 && ::isxdigit(key[0]) && ::isxdigit(key[1])) {
 4949   AppendSTDOUT(out.data(), out.size());
 5338       packet.PutBytesAsRawHex8(command.data(), command.size());
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
  320   PyObject *str = PyString_FromStringAndSize(string.data(), string.size());
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
 2544       buffer.assign(return_data.data(), return_data.size());
 3052     dest.assign(return_data.data(), return_data.size());
 3163     dest.assign(str_data.data(), str_data.size());
tools/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
 1782   const auto len = message.size();
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp
   78       if (m_next_line >= m_section_text.size())
   97   assert(m_current_line < m_section_text.size());
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  657   if (host.size() == 1 && llvm::isAlpha(host[0]) && path.startswith("\\"))
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  182   if (qname.size() < 4 || child.asTag().getUniqueName().size() < 4)
  221   StringView sv(record.UniqueName.begin(), record.UniqueName.size());
  543   StringView name{pub->Name.begin(), pub->Name.size()};
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
  538   StringView sv(record.UniqueName.begin(), record.UniqueName.size());
tools/lldb/source/Symbol/ObjectFile.cpp
  577   size_t len = path_with_object.size();
  583   llvm::StringRef object = path_with_object.substr(archive.size() + 1).drop_back();
tools/lldb/source/Symbol/PostfixExpression.cpp
   24   if (token.size() != 1)
tools/lldb/source/Symbol/Symtab.cpp
  223     if (mangled.size() < 3 || !mangled.startswith("_Z"))
tools/lldb/source/Symbol/Type.cpp
  709   if (basename.size() < name.size()) {
  709   if (basename.size() < name.size()) {
  710     scope = name.take_front(name.size() - basename.size());
  710     scope = name.take_front(name.size() - basename.size());
tools/lldb/source/Symbol/TypeList.cpp
  146           const size_t match_type_scope_size = match_type_scope.size();
tools/lldb/source/Symbol/TypeMap.cpp
  176           const size_t match_type_scope_size = match_type_scope.size();
tools/lldb/source/Symbol/Variable.cpp
  638       if (partial_path.size() > 1 && partial_path[1] == '>' &&
  643           if (partial_path.size() > 2 && partial_path[2]) {
  667           if (partial_path.size() > 1 && partial_path[1]) {
  686         const size_t partial_path_len = partial_path.size();
tools/lldb/source/Target/PathMappingList.cpp
  215     if (orig_ref.size() < prefix_ref.size())
  215     if (orig_ref.size() < prefix_ref.size())
tools/lldb/source/Target/StackFrame.cpp
  618       if (var_expr.size() >= 2 && var_expr[1] != '>')
  744       if (var_expr.size() <= 2) {
tools/lldb/source/Utility/Args.cpp
  161   size_t size = str.size();
  646     std::size_t prev_prefix_length = original_args.size() - arg_string.size();
  646     std::size_t prev_prefix_length = original_args.size() - arg_string.size();
  662       std::size_t prefix_length = original_args.size() - arg_string.size();
  662       std::size_t prefix_length = original_args.size() - arg_string.size();
tools/lldb/source/Utility/CompletionRequest.cpp
   19   assert(raw_cursor_pos <= command_line.size() && "Out of bounds cursor?");
tools/lldb/source/Utility/ConstString.cpp
   48       return entry.getKey().size();
  142         mem_size += sizeof(StringPoolEntryType) + entry.getKey().size();
  280   m_string = StringPool().GetConstCStringWithLength(s.data(), s.size());
tools/lldb/source/Utility/Environment.cpp
   15   const size_t size = Key.size() + 1 /*=*/ + Value.size() + 1 /*\0*/;
   15   const size_t size = Key.size() + 1 /*=*/ + Value.size() + 1 /*\0*/;
tools/lldb/source/Utility/Event.cpp
  108   SetBytes(str.data(), str.size());
tools/lldb/source/Utility/FileSpec.cpp
  100   if (i < path.size())
  336   if (absolute_path.size() > 3 && llvm::isAlpha(absolute_path[0]) &&
tools/lldb/source/Utility/Stream.cpp
   63   bytes_written = Write(str.data(), str.size());
  153   Write(str.data(), str.size());
tools/lldb/source/Utility/StringExtractor.cpp
  261     m_index += str.size();
tools/lldb/source/Utility/StringList.cpp
  109     for (count = 0; count < std::min(prefix.size(), arg.size()); ++count) {
tools/lldb/source/Utility/TildeExpressionResolver.cpp
   91   Output.append(Expr.begin() + Left.size(), Expr.end());
tools/lldb/source/Utility/UUID.cpp
  106     return str.size() - rest.size();
  106     return str.size() - rest.size();
tools/lldb/source/Utility/UriParser.cpp
   31   auto host_pos = pos + kSchemeSep.size();
   40       ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos);
tools/lldb/tools/lldb-server/Acceptor.cpp
   95       name = name.drop_front(scheme.size() + strlen("://"));
tools/lldb/tools/lldb-vscode/IOStream.cpp
   76       bytes_written = ::send(descriptor.m_socket, str.data(), str.size(), 0);
   78       bytes_written = ::write(descriptor.m_fd, str.data(), str.size());
  150   if (!read_full(log, expected.size(), result))
tools/lldb/unittests/Expression/DWARFExpressionTest.cpp
  145         raw_debug_info.data(), raw_debug_info.size(),
tools/lldb/unittests/Host/FileSystemTest.cpp
   91       if (Path.size() < S.size() && S.find(Path) == 0) {
tools/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationTest.cpp
   42     return server.Write(packet.data(), packet.size(), status, nullptr) ==
   43            packet.size();
tools/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
  246       PyByteArray_FromStringAndSize(test_bytes, orig_bytes.size());
  252   EXPECT_EQ(after_bytes.size(), orig_bytes.size());
  253   EXPECT_EQ(0, ::memcmp(orig_bytes.data(), test_bytes, orig_bytes.size()));
tools/lldb/unittests/Utility/LogTest.cpp
  102   m_consumed_bytes+= result.size();
tools/lldb/unittests/Utility/StringExtractorTest.cpp
   30   ASSERT_EQ(kInitMiscString.size(), ex.GetBytesLeft());
tools/lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp
  208   if (ZeroPad && HexValue.size() < Info.byte_size * 2) {
  209     Storage.insert(Storage.begin(), Info.byte_size * 2 - HexValue.size(), '0');
  214   SmallVector<uint8_t, 64> Bytes(HexValue.size() / 2);
  230   if (Response.size() < 3)
  247     if (Key.size() != 2)
tools/llvm-ar/llvm-ar.cpp
  446   outs().write(Data.data(), Data.size());
  548     file.write(Data.data(), Data.size());
 1104       if (Arg.startswith(expected) && Arg.size() > len && Arg[len] == '=') {
tools/llvm-config/llvm-config.cpp
  427         FromEnd = StaticExt.size() + 1;
  429         FromEnd = SharedExt.size() + 1;
  435         Out = Lib.slice(3, Lib.size() - FromEnd);
tools/llvm-cov/CoverageReport.cpp
   51     if (Str.size() <= Width) {
   53         OS.indent(Width - Str.size());
   58       OS.indent(Width - Str.size());
   97     FileReportColumns[0] = std::max(FileReportColumns[0], Filename.size());
  100         std::max(FunctionReportColumns[0], Funcname.size());
tools/llvm-cov/SourceCoverageViewHTML.cpp
  520   Snip(LCol - 1, Line.size() + 1 - LCol);
tools/llvm-cov/SourceCoverageViewText.cpp
  115     unsigned End = std::min(S->Col, static_cast<unsigned>(Line.size()) + 1);
  135       << Line.substr(Col - 1, Line.size() - Col + 1);
  168   Str = Str.substr(0, std::min(Str.size(), (size_t)LineNumberColumnWidth));
  169   OS.indent(LineNumberColumnWidth - Str.size()) << Str << '|';
tools/llvm-cov/TestingSupport.cpp
   99   encodeULEB128(ProfileNamesData.size(), OS);
tools/llvm-cxxdump/llvm-cxxdump.cpp
  230           SymContents.size() / sizeof(little32_t));
tools/llvm-dwp/llvm-dwp.cpp
   89   uint64_t Size = CurStrOffsetSection.size();
  433           (CurEntry.Contributions[Index].Length = Contents.size());
tools/llvm-exegesis/lib/SnippetFile.cpp
   67           /* each hex digit is 4 bits */ HexValue.size() * 4, HexValue, 16);
tools/llvm-jitlink/llvm-jitlink.cpp
  125             << (const void *)(MRI.getContent().data() + MRI.getContent().size())
  126             << " (" << MRI.getContent().size() << " bytes)";
tools/llvm-lto2/llvm-lto2.cpp
  358     if (BFC.Symtab.size() >= sizeof(irsymtab::storage::Header)) {
tools/llvm-mca/CodeRegionGenerator.cpp
   83   if (Position >= Comment.size())
   91     if (Position < Comment.size())
  103   if (Position < Comment.size())
tools/llvm-mca/Views/InstructionInfoView.cpp
   87       unsigned EncodingSize = Encoding.size();
   92       for (unsigned i = 0, e = Encoding.size(); i != e; ++i)
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
   52   size_t CRCPos = alignTo(FileName.size() + 1, 4);
   54   memcpy(Data.data(), FileName.data(), FileName.size());
tools/llvm-objcopy/COFF/Writer.cpp
  113     if (S.Name.size() > COFF::NameSize)
  117     if (S.Name.size() > COFF::NameSize)
  124     if (S.Name.size() > COFF::NameSize) {
  128       memcpy(S.Header.Name, S.Name.data(), S.Name.size());
  132     if (S.Name.size() > COFF::NameSize) {
  151           alignTo(S.AuxFile.size(), sizeof(SymbolTy)) / sizeof(SymbolTy);
tools/llvm-objcopy/ELF/Object.cpp
  180   assert((S.size() & 1) == 0);
  211     if (R.HexData.size() == 0)
  221     if (R.HexData.size() != 4)
  228     if (R.HexData.size() != 8)
  242     if (R.HexData.size() != 4)
  264   for (size_t Pos = 1; Pos < Line.size(); ++Pos)
  275   if (Line.size() < 11)
  277                              "line is too short: %zu chars.", Line.size());
  284   if (Line.size() != getLength(DataLen))
  287                              Line.size(), getLength(DataLen));
  463   assert((HexData.size() & 1) == 0);
 1006   Size = alignTo(FileName.size() + 1, 4) + 4;
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
  151           Sec.Size = Sec.Content.size();
  162           Sec.Size = Sec.Content.size();
tools/llvm-objcopy/MachO/MachOReader.cpp
  178   assert(nlist.n_strx < StrTable.size() &&
tools/llvm-objcopy/MachO/MachOWriter.cpp
  236       assert((Sec.Size == Sec.Content.size()) && "Incorrect section size");
  238              Sec.Content.size());
tools/llvm-objdump/MachODump.cpp
 1776         uint32_t sect_size = BytesStr.size();
 1866       outs() << format("%.*s", BytesStr.size(), sect) << "\n";
 2157   uint64_t size = Buf.size();
 3028           uint64_t object_size = MachOContents.size();
 3049           uint64_t object_size = MachOContents.size();
 3238           uint64_t object_size = MachOContents.size();
 7755   if (Offset + sizeof(T) > Contents.size()) {
 7899   for (unsigned Offset = 0; Offset < Contents.size(); Offset += EntrySize) {
 8185     if (Pos + sizeof(uint32_t) > Contents.size()) {
10073                           SLC.initprot, SLC.nsects, SLC.flags, Buf.size(),
10079                      SLC.cmd, sg_segname, filetype, Buf.size(), verbose);
10087                           SLC_64.nsects, SLC_64.flags, Buf.size(), verbose);
10093                      sg_segname, filetype, Buf.size(), verbose);
10097       PrintSymtabLoadCommand(Symtab, Obj->is64Bit(), Buf.size());
10101       PrintDysymtabLoadCommand(Dysymtab, Symtab.nsyms, Buf.size(),
10106       PrintDyldInfoLoadCommand(DyldInfo, Buf.size());
10140       PrintEncryptionInfoCommand(Ei, Buf.size());
10144       PrintEncryptionInfoCommand64(Ei, Buf.size());
10187       PrintLinkEditDataCommand(Ld, Buf.size());
tools/llvm-objdump/llvm-objdump.cpp
 1703     MaxWidth = std::max(MaxWidth, Name.size());
 1772     for (std::size_t Addr = 0, End = Contents.size(); Addr < End; Addr += 16) {
 1963   outs().write(ClangASTContents.data(), ClangASTContents.size());
tools/llvm-pdbutil/DumpOutputStyle.cpp
  765     L = std::max(L, Label.size());
  817     LongestNamespace = std::max(LongestNamespace, Scope.size());
  848   LongestNamespace += StringRef(" namespace ''").size();
  858   CD = std::max(CD, CountHeader.size());
  862   SD = std::max(SD, SizeHeader.size());
 1035           if (Module.size() > 32) {
 1941           [](StringRef S1, StringRef S2) { return S1.size() < S2.size(); });
 1941           [](StringRef S1, StringRef S2) { return S1.size() < S2.size(); });
tools/llvm-pdbutil/FormatUtil.cpp
   22   if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3)
   22   if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3)
   26   uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3);
   32   if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3)
   32   if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3)
   36   uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3);
   38   StringRef Back = S.take_back(Front.size());
   43   if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3)
   43   if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3)
   53   uint32_t RequiredExtraChars = Label.size() + 1 + 2;
   54   if (MaxLen == 0 || RequiredExtraChars + Name.size() <= MaxLen)
   64   uint32_t RequiredExtraChars = Label.size() + 1 + 2;
   65   if (MaxLen == 0 || RequiredExtraChars + Name.size() <= MaxLen)
tools/llvm-pdbutil/MinimalSymbolDumper.cpp
  372   if (Name.size() > 32) {
tools/llvm-rc/ResourceFileWriter.cpp
  646   if (Str.size() == 0 || Str.size() > 2)
  646   if (Str.size() == 0 || Str.size() > 2)
  651     if (Str.size() == 1)
  670   if (Str.size() == 2)
  715   if (Buffer.size() < BITMAPFILEHEADER_size || Buffer[0] != 'B' ||
tools/llvm-rc/ResourceScriptCppFilter.cpp
   24   explicit Filter(StringRef Input) : Data(Input), DataLength(Input.size()) {}
tools/llvm-rc/ResourceScriptToken.cpp
   34   size_t Length = Representation.size();
   87   Tokenizer(StringRef Input) : Data(Input), DataLength(Input.size()) {}
tools/llvm-readobj/COFFDumper.cpp
  299          RelocPtr < SectionContents.data() + SectionContents.size() &&
  327   uint64_t OffsetEnd = OffsetStart + Block.size();
  987     if (SubSectionSize > Data.size())
  997     if (NextOffset > SectionContents.size())
 1092               EqOrEnd = FrameFunc.size();
 1936                                          AddrsigContents.size());
tools/llvm-readobj/ELFDumper.cpp
  803   if (NameOffset >= StrTab.size())
 2146   if (Value < DynamicStringTable.size())
 5948           StringRef(reinterpret_cast<const char *>(P) + Key.size() + 1);
 5952       P = P + Key.size() + Value.size() + 2;
 5952       P = P + Key.size() + Value.size() + 2;
tools/llvm-readobj/ObjDumper.cpp
  134     const uint8_t *SecEnd = SecContent + SectionContent.size();
tools/llvm-readobj/llvm-readobj.cpp
  661     if (ArgName.size() == 1)
tools/llvm-rtdyld/llvm-rtdyld.cpp
  840         uint64_t SymSize = SecContent.size() - (CSymAddr - SecContent.data());
tools/llvm-size/llvm-size.cpp
  395       max_name_len = std::max(max_name_len, name_or_err->size());
tools/llvm-strings/llvm-strings.cpp
   62     if (L.size() < static_cast<size_t>(MinLength))
tools/llvm-xray/xray-graph-diff.cpp
  306   return (S.size() > n) ? Twine(S.substr(0, n)) + "..." : Twine(S);
tools/obj2yaml/dwarf2yaml.cpp
   52   while (RemainingTable.size() > 0) {
tools/obj2yaml/macho2yaml.cpp
  341       OpCode += BindOp.Symbol.size() + 1;
  492   while (RemainingTable.size() > 0) {
unittests/ADT/StringMapTest.cpp
  541   EXPECT_EQ(LargeValue, Key.size());
  547   EXPECT_EQ(LargeValue, Key.size());
unittests/ADT/StringRefTest.cpp
   83   EXPECT_EQ((size_t) 5, StringRef("hello").size());
  939   EXPECT_EQ(StrEmptyc.size(), 0u);
  967   Dropped = Test.drop_front(Test.size());
  970   Dropped = Test.drop_back(Test.size());
  983   Taken = Test.take_front(Test.size());
  986   Taken = Test.take_back(Test.size());
unittests/AsmParser/AsmParserTest.cpp
   40   EXPECT_DEATH(Mod = parseAssemblyString(Source.substr(0, Source.size() - 2),
unittests/DebugInfo/MSF/MappedBlockStreamTest.cpp
  376   EXPECT_THAT_ERROR(Reader.readFixedString(FStr[1], FStr[0].size()),
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.cpp
  205       B.getContent().size() - Offset);
unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp
  126   std::vector<char> ObjContents(ObjBytes.size());
  140       EXPECT_EQ(RPCObjContents.size(), ObjContents.size())
unittests/FuzzMutate/StrategiesTest.cpp
   73     Mutator.mutateModule(*M, Seed, Source.size(), Source.size() + 100);
   73     Mutator.mutateModule(*M, Seed, Source.size(), Source.size() + 100);
unittests/Remarks/BitstreamRemarksParsingTest.cpp
  138   unsigned StrLen = Str.size();
  267       LLVMRemarkParserCreateBitstream(Buf.data(), Buf.size());
unittests/Remarks/YAMLRemarksParsingTest.cpp
  380   unsigned StrLen = Str.size();
  491       LLVMRemarkParserCreateYAML(Buf.data(), Buf.size());
unittests/Support/BinaryStreamTest.cpp
  464       reinterpret_cast<const uint8_t *>(Strings.data()), Strings.size());
  815     Length += S.size() + 1;
unittests/Support/CommandLineTest.cpp
 1280   size_t ExpectedStrSize = StringRef("    =<empty> - ").size();
 1309   size_t ExpectedStrSize = StringRef("    =<empty> - ").size();
unittests/Support/ConvertUTFTest.cpp
  154   std::vector<UTF32> Decoded(S.size(), 0);
  158       ConvertUTF8toUTF32(&SourceNext, SourceStart + S.size(), &TargetStart,
  171   std::vector<UTF32> Decoded(S.size(), 0);
  175       &SourceNext, SourceStart + S.size(), &TargetStart,
unittests/Support/MemoryBufferTest.cpp
  254   EXPECT_EQ(BufData.size(), 40000U);
unittests/Support/Path.cpp
  302     EXPECT_EQ(1u, LastComponent.size());
 1076   ASSERT_EQ(write(FD, Data.data(), Data.size()), static_cast<ssize_t>(Data.size()));
 1076   ASSERT_EQ(write(FD, Data.data(), Data.size()), static_cast<ssize_t>(Data.size()));
 1103     mfr.data()[Val.size()] = 0;
 1323   ASSERT_EQ(Data.size(), (size_t)write(FD, Data.data(), Data.size()));
 1323   ASSERT_EQ(Data.size(), (size_t)write(FD, Data.data(), Data.size()));
 1461   Buffer.resize(Data.size());
 1464     ASSERT_EQ((size_t)Result, Data.size());
 1473   int Result = ::write(FD, Data.data(), Data.size());
 1475     ASSERT_EQ((size_t)Result, Data.size());
unittests/Support/VirtualFileSystemTest.cpp
   97       if (Path.size() < S.size() && S.find(Path) == 0) {
unittests/Support/YAMLParserTest.cpp
  167   EXPECT_EQ(Value.data()[Value.size()], '\0');
  197   ParsedString = ParsedString.substr(1, ParsedString.size() - 2);
unittests/Support/raw_pwrite_stream_test.cpp
   36   OS.pwrite(Test.data(), Test.size(), 0);
   72   OS.pwrite(Test.data(), Test.size(), 0);
   73   OS.pwrite(Test.data(), Test.size(), 0);
   90   OS.pwrite(Test.data(), Test.size(), 0);
   91   OS.pwrite(Test.data(), Test.size(), 0);
unittests/Support/raw_sha1_ostream_test.cpp
   19   size_t Length = Input.size();
unittests/TextAPI/ELFYAMLTest.cpp
   24   while (LHS.size() > 0 && RHS.size() > 0) {
   24   while (LHS.size() > 0 && RHS.size() > 0) {
utils/TableGen/AsmMatcherEmitter.cpp
  903   StringRef RegName = Tok.substr(RegisterPrefix.size());
  973   for (size_t i = 0, e = String.size(); i != e; ++i) {
 1013       assert(i != String.size() && "Invalid quoted character");
 1027       if (i + 1 == String.size() || String[i + 1] != '{') {
 1047   if (InTok && Prev != String.size())
 1592       if (Token.size() > 1 && isdigit(Token[1])) {
 1600         OperandName = Token.substr(2, Token.size() - 3);
 2882     std::string LenMnemonic = char(II.Mnemonic.size()) + II.Mnemonic.str();
 3326     std::string LenMnemonic = char(MI->Mnemonic.size()) + MI->Mnemonic.str();
 3440       std::string LenMnemonic = char(MI->Mnemonic.size()) + MI->Mnemonic.str();
utils/TableGen/CallingConvEmitter.cpp
   43       unsigned Pad = CC->getName().size();
   71   unsigned Pad = CC->getName().size();
utils/TableGen/CodeGenInstruction.cpp
  469     for (size_t e = Cur.size(); VariantsStart != e; ++VariantsStart)
  477     if (VariantsStart == Cur.size())
  485     for (size_t e = Cur.size(); VariantsEnd != e; ++VariantsEnd) {
  499     assert(VariantsEnd != Cur.size() &&
utils/TableGen/CodeGenSchedule.cpp
  123             (!Regexpr || Regexpr->match(InstName.substr(Prefix.size())))) {
  150         if (!Regexpr || Regexpr->match(InstName.substr(Prefix.size()))) {
utils/TableGen/FixedLenDecoderEmitter.cpp
 1190       << str.slice(1,str.size()) << "]";
utils/TableGen/GlobalISel/CodeExpander.cpp
   59       StringRef EndVar = StartVar.drop_front(2 /* ${ */ + Var.size());
utils/TableGen/InstrDocsEmitter.cpp
   34   OS << std::string(Str.size(), Kind) << "\n" << Str << "\n"
   35      << std::string(Str.size(), Kind) << "\n";
   39   OS << Str << "\n" << std::string(Str.size(), Kind) << "\n";
   44   Result.reserve(Str.size() + 4);
utils/TableGen/SubtargetEmitter.cpp
  811     if (PRDef->getName().size() < 15)
  812       OS.indent(15 - PRDef->getName().size());