|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/SmallString.h 260 return str().slice(Start, End);
include/llvm/ADT/StringRef.h 735 return std::make_pair(slice(0, Idx), slice(Idx + Separator.size(), npos));
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));
753 return std::make_pair(slice(0, Idx), slice(Idx + Separator.size(), npos));
include/llvm/MC/MCAsmMacro.h 92 return Str.slice(1, Str.size() - 1);
include/llvm/ProfileData/GCOV.h 73 StringRef File = Buffer->getBuffer().slice(0, 4);
84 StringRef File = Buffer->getBuffer().slice(0, 4);
95 StringRef VersionStr = Buffer->getBuffer().slice(Cursor, Cursor + 4);
118 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4);
130 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4);
142 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4);
154 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4);
166 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4);
178 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4);
190 StringRef Tag = Buffer->getBuffer().slice(Cursor, Cursor + 4);
204 StringRef Str = Buffer->getBuffer().slice(Cursor, Cursor + 4);
230 Str = Buffer->getBuffer().slice(Cursor, Cursor + Len).split('\0').first;
include/llvm/Support/FormatProviders.h 380 StringRef Result = Style.slice(1, End);
lib/Bitcode/Reader/BitcodeAnalyzer.cpp 516 StringRef Lengths = Blob.slice(0, StringsOffset);
531 OS.write_escaped(Strings.slice(0, Size), /*hex=*/true);
lib/Bitcode/Reader/MetadataLoader.cpp 1939 StringRef Lengths = Blob.slice(0, StringsOffset);
1954 CallBack(Strings.slice(0, Size));
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 437 Class = In.slice(In.find('[') + 1, In.find(' '));
442 Class = In.slice(In.find('[') + 1, In.find('('));
443 Category = In.slice(In.find('[') + 1, In.find(' '));
447 return In.slice(In.find(' ') + 1, In.find(']'));
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp 131 Data.getData().slice(*Offset, *Offset + ExprLength),
144 Data.getData().slice(*Offset, *Offset + BlockLength),
459 AugmentationData = Data.getData().slice(StartAugmentationOffset,
lib/MC/MCAsmStreamer.cpp 407 ExplicitCommentToEmit.append(c.slice(2, c.size()).str());
415 ExplicitCommentToEmit.append(c.slice(p, newp).str());
428 ExplicitCommentToEmit.append(c.slice(1, c.size()).str());
lib/MC/MCParser/AsmParser.cpp 2424 OS << Body.slice(0, Pos);
5660 Arg.emplace_back(AsmToken::Identifier, Values.slice(I, I + 1));
lib/Object/Archive.cpp 187 return Parent->getStringTable().slice(StringOffset, End - 1);
lib/Object/COFFObjectFile.cpp 1857 return Contents->slice(Offset, Offset + Entry.DataSize);
lib/Object/MachOObjectFile.cpp 2318 Foo = Name.slice(a+1, Name.npos);
2323 Suffix = Foo.slice(Idx, Foo.npos);
2327 Foo = Foo.slice(0, Idx);
2336 F = Name.slice(Idx, Idx + Foo.size());
2337 DotFramework = Name.slice(Idx + Foo.size(),
2350 V = Name.slice(c+1, Name.npos);
2358 F = Name.slice(Idx, Idx + Foo.size());
2359 DotFramework = Name.slice(Idx + Foo.size(),
2371 Dylib = Name.slice(a, Name.npos);
2377 Dot = Name.slice(a-2, a-1);
2390 Lib = Name.slice(b, Idx);
2391 Suffix = Name.slice(Idx, a);
2394 Lib = Name.slice(b, a);
2398 Lib = Name.slice(b, a);
2402 Dot = Lib.slice(Lib.size()-2, Lib.size()-1);
2404 Lib = Lib.slice(0, Lib.size()-2);
2409 Qtx = Name.slice(a, Name.npos);
2414 Lib = Name.slice(0, a);
2416 Lib = Name.slice(b+1, a);
2419 Dot = Lib.slice(Lib.size()-2, Lib.size()-1);
2421 Lib = Lib.slice(0, Lib.size()-2);
4639 StringRef Magic = Buffer.getBuffer().slice(0, 4);
lib/ObjectYAML/MachOYAML.cpp 68 if (getAsUnsignedInteger(Scalar.slice(Idx, Idx + 2), 16, TempInt))
lib/Support/CachePruning.cpp 56 StringRef NumStr = Duration.slice(0, Duration.size()-1);
lib/Support/FileCheck.cpp 1708 Buffer.slice(StartPos, MatchRanges.begin()->Pos);
lib/Support/FormatVariadic.cpp 129 StringRef Spec = Fmt.slice(BO + 1, BC);
lib/Support/Path.cpp 282 Component = Path.slice(Position, end_pos);
332 Component = Path.slice(start_pos, end_pos);
lib/Support/Regex.cpp 185 StringRef Ref = Repl.slice(0, Repl.find_first_not_of("0123456789"));
lib/Support/SourceMgr.cpp 351 S << LineContents.slice(i, NextTab);
lib/Support/SpecialCaseList.cpp 148 Section = I->slice(1, I->size() - 1);
lib/Support/StringExtras.cpp 45 return std::make_pair(Source.slice(Start, End), Source.substr(End));
lib/Support/StringRef.cpp 329 A.push_back(S.slice(0, Idx));
332 S = S.slice(Idx + Separator.size(), npos);
355 A.push_back(S.slice(0, Idx));
358 S = S.slice(Idx + 1, npos);
lib/Support/VirtualFileSystem.cpp 1443 Trimmed = Trimmed.slice(0, Trimmed.size() - 1);
1923 return Path.slice(Parent.size() + 1, StringRef::npos);
1987 RPath = RPath.slice(OverlayDirLen, RPath.size());
2009 RPath = RPath.slice(OverlayDirLen, RPath.size());
lib/Target/AArch64/AArch64ISelLowering.cpp 6037 bool Failed = Constraint.slice(2, Size - 1).getAsInteger(10, RegNo);
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 3139 StringRef Head = Name.slice(Start, Next);
3144 Kind = Name.slice(Next, StringRef::npos);
3777 StringRef Head = Name.slice(Start, Next);
3793 Head = Name.slice(Start + 1, Next);
3810 Head = Name.slice(Start, Next);
lib/Target/ARM/AsmParser/ARMAsmParser.cpp 4760 Opt = StringSwitch<unsigned>(OptStr.slice(0, OptStr.size()).lower())
4963 std::string SpecReg = Mask.slice(Start, Next).lower();
4965 Flags = Mask.slice(Next+1, Mask.size());
6265 Mnemonic = Mnemonic.slice(0, Mnemonic.size() - 2);
6285 Mnemonic = Mnemonic.slice(0, Mnemonic.size() - 1);
6299 Mnemonic = Mnemonic.slice(0, Mnemonic.size()-2);
6313 Mnemonic = Mnemonic.slice(0, Mnemonic.size()-1);
6321 ITMask = Mnemonic.slice(2, Mnemonic.size());
6322 Mnemonic = Mnemonic.slice(0, 2);
6326 ITMask = Mnemonic.slice(4, Mnemonic.size());
6327 Mnemonic = Mnemonic.slice(0, 4);
6330 ITMask = Mnemonic.slice(3, Mnemonic.size());
6331 Mnemonic = Mnemonic.slice(0, 3);
6772 StringRef Mnemonic = Name.slice(Start, Next);
6773 StringRef ExtraToken = Name.slice(Next, Name.find(' ', Next + 1));
6902 ExtraToken = Name.slice(Start, Next);
7071 Mnemonic = Name.slice(0, Mnemonic.size() + 1);
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp 1056 Mnemonic = Mnemonic.slice(0, 1);
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 1575 StringRef Mnemonic = Name.slice(0, Dot);
1583 StringRef DotStr = Name.slice(Dot, StringRef::npos);
lib/Target/SystemZ/SystemZISelLowering.cpp 1062 Constraint.slice(2, Constraint.size() - 1).getAsInteger(10, Index);
lib/Target/X86/AsmParser/X86AsmParser.cpp 2426 PatchedName.slice(CCIdx, PatchedName.size() - 2))
2497 PatchedName.slice(5, PatchedName.size() - SuffixSize))
2526 PatchedName.slice(5, PatchedName.size() - SuffixSize))
tools/clang/lib/AST/DeclBase.cpp 477 return RealizedPlatform.slice(0, suffix);
tools/clang/lib/Basic/Attributes.cpp 66 AttrName = AttrName.slice(2, AttrName.size() - 2);
tools/clang/lib/Basic/Module.cpp 86 SmallString<128> NewLHS = LHS.slice(0, Pos);
87 NewLHS += LHS.slice(Pos+1, LHS.size());
tools/clang/lib/Basic/Version.cpp 40 URL = SVNRepository.slice(SVNRepository.find(':'),
45 URL = URL.slice(0, URL.find("/src/tools/clang"));
tools/clang/lib/CodeGen/CodeGenModule.cpp 2594 Name == BuiltinName.slice(strlen("__builtin_"), StringRef::npos)) {
tools/clang/lib/Driver/Driver.cpp 1200 StringRef ParentProcess = Data.slice(ParentProcPos+15, LineEnd).trim();
1212 ParentProcess.slice(OpenBracket + 1, CloseBracket)
tools/clang/lib/Driver/Job.cpp 197 StringRef Inc = FlagRef.slice(2, StringRef::npos);
199 SmallString<128> NewArg(FlagRef.slice(0, 2));
tools/clang/lib/Driver/ToolChain.cpp 197 ProgName = ProgName.slice(0, ProgName.rfind('-'));
220 Prefix = Prefix.slice(0, LastComponent);
tools/clang/lib/Driver/ToolChains/Clang.cpp 209 StringRef ValBase = Val.slice(0, RefStepLoc);
242 StringRef ValBase = Val.slice(0, RefStep);
tools/clang/lib/Driver/ToolChains/Cuda.cpp 189 StringRef GpuArch = FileName.slice(
tools/clang/lib/Driver/ToolChains/Darwin.cpp 1070 return SDK.slice(0, SDK.size() - 4);
1541 Version = SDK.slice(StartVer, EndVer + 1);
1810 StringRef SDKName = SDK.slice(0, StartVer);
tools/clang/lib/Driver/ToolChains/Gnu.cpp 1703 MinorStr = MinorStr.slice(0, EndNumber);
1725 if (PatchText.slice(0, EndNumber).getAsInteger(10, GoodVersion.Patch) ||
tools/clang/lib/Driver/ToolChains/Linux.cpp 878 !VersionText.slice(1, StringRef::npos).getAsInteger(10, Version)) {
tools/clang/lib/Frontend/PrecompiledPreamble.cpp 330 MainFileBuffer->getBuffer().slice(0, Bounds.Size), MainFilePath);
tools/clang/lib/Frontend/TextDiagnostic.cpp 49 OS << Str.slice(0, Pos);
tools/clang/lib/Sema/SemaDeclAttr.cpp 7527 RealizedPlatform = RealizedPlatform.slice(0, suffix);
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 1577 StringRef Snippet = Buffer->getBuffer().slice(BeginOffset, EndOffset);
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/clangd/CodeComplete.cpp 1410 ContextWords = collectWords(Content.slice(RangeBegin, RangeEnd));
1718 Result.Name = Content.slice(Rest.size(), Offset);
1725 Content.slice(Rest.size(), Result.Name.begin() - Content.begin());
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp 2117 return F.code().slice(cantFail(positionToOffset(F.code(), R.start)),
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp 1016 Parsed.push_back(New<TextPiece>(Text.slice(0, End), "diagtext"));
1017 Text = Text.slice(End, StringRef::npos);
1030 StringRef Modifier = Text.slice(0, ModLength);
1031 Text = Text.slice(ModLength, StringRef::npos);
1071 New<TextPiece>(Text.slice(0, End), "diagtext"));
1072 Text = Text.slice(End, StringRef::npos);
tools/dsymutil/DwarfLinker.cpp 1158 StringRef Bytes = Data.getData().slice(OpOffset, Op.getEndOffset());
1942 LineData.slice(*StmtList + 4, PrologueEnd),
tools/dsymutil/DwarfStreamer.cpp 639 Asm->OutStreamer->EmitBytes(Contents.slice(AfterHeaderLengthOffset, Offset));
676 Asm->OutStreamer->EmitBytes(Contents.slice(Offset, UnitEnd));
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 365 StringRef segName = customName.slice(0, seperatorIndex);
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 476 StringRef modStr = scalar.slice(0, modStart);
tools/lldb/source/Core/ValueObject.cpp 2383 child_name.SetString(temp_expression.slice(0, next_sep_pos));
2509 temp_expression.slice(1, close_bracket_position);
tools/lldb/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp 62 name.slice(last_base_start, i - 1));
tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp 182 vtable_name.slice(first_open_angle_bracket, first_comma);
218 llvm::Regex::escape(symbol_name.slice(0, pos2 + 1).str()) +
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp 1497 build = build_str.slice(0, pos);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp 847 llvm::StringRef(m_bytes).slice(content_start, content_end));
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp 5082 packet.slice(0, strlen(s_async_json_packet_prefix)).str().c_str());
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp 59 return m_section_text.slice(m_current_line, m_next_line);
tools/llvm-config/llvm-config.cpp 435 Out = Lib.slice(3, Lib.size() - FromEnd);
tools/llvm-cxxdump/llvm-cxxdump.cpp 318 TINames[SymName] = SymContents.slice(0, SymContents.find('\0'));
tools/llvm-cxxfilt/llvm-cxxfilt.cpp 98 OutFragments.push_back({"", Source.slice(0, Start - Head)});
105 OutFragments.push_back({Source.slice(Start - Head, End - Head),
106 Source.slice(End - Head, DEnd - Head)});
unittests/ADT/StringRefTest.cpp 147 EXPECT_EQ("l", Str.slice(2, 3));
148 EXPECT_EQ("ell", Str.slice(1, 4));
149 EXPECT_EQ("llo", Str.slice(2, 100));
150 EXPECT_EQ("", Str.slice(2, 1));
151 EXPECT_EQ("", Str.slice(10, 20));
551 hash_value(StringRef("hello world").slice(1, -1)));
unittests/Support/VirtualFileSystemTest.cpp 1357 VersionPlusContent += Content.slice(Content.find('{') + 1, StringRef::npos);
unittests/Support/YAMLIOTest.cpp 1011 StringRef lenStr = scalar.slice(0, byStart);
utils/TableGen/AsmMatcherEmitter.cpp 824 Ops.first = Ops.first.slice(start + 1, std::string::npos);
826 Ops.first = Ops.first.slice(0, end);
831 Ops.second = Ops.second.slice(start + 1, std::string::npos);
833 Ops.first = Ops.first.slice(0, end);
977 addAsmOperand(String.slice(Prev, i), false);
986 addAsmOperand(String.slice(Prev, i), IsIsolatedToken);
990 addAsmOperand(String.slice(i, i + 1), IsIsolatedToken);
997 addAsmOperand(String.slice(Prev, i), IsIsolatedToken);
1008 addAsmOperand(String.slice(Prev, i), false);
1014 addAsmOperand(String.slice(i, i + 1), IsIsolatedToken);
1021 addAsmOperand(String.slice(Prev, i), false);
1035 addAsmOperand(String.slice(i, EndPos+1), IsIsolatedToken);
utils/TableGen/CodeGenInstruction.cpp 476 Res += Cur.slice(0, VariantsStart);
494 StringRef Selection = Cur.slice(VariantsStart, VariantsEnd);
utils/TableGen/FixedLenDecoderEmitter.cpp 1190 << str.slice(1,str.size()) << "]";