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

References

include/llvm/ADT/SmallString.h
   99     return str().equals(RHS);
  104     return str().equals_lower(RHS);
  110     return str().compare(RHS);
  115     return str().compare_lower(RHS);
  121     return str().compare_numeric(RHS);
  130     return str().startswith(Prefix);
  135     return str().endswith(Suffix);
  147     return str().find(C, From);
  155     return str().find(Str, From);
  163     return str().rfind(C, From);
  171     return str().rfind(Str);
  177     return str().find_first_of(C, From);
  185     return str().find_first_of(Chars, From);
  191     return str().find_first_not_of(C, From);
  199     return str().find_first_not_of(Chars, From);
  205     return str().find_last_of(C, From);
  214     return str().find_last_of(Chars, From);
  223     return str().count(C);
  229     return str().count(Str);
  246     return str().substr(Start, N);
  260     return str().slice(Start, End);
  276   operator StringRef() const { return str(); }
include/llvm/IR/ModuleSummaryIndex.h
 1240     return NewName.str();
include/llvm/Object/MachO.h
  647     return Version.str();
include/llvm/TableGen/StringToOffsetTable.h
   48     AggregateString = Str.str();
lib/Bitcode/Reader/BitcodeReader.cpp
 1650           B.addAttribute(KindStr.str(), ValStr.str());
 1650           B.addAttribute(KindStr.str(), ValStr.str());
lib/Bitcode/Reader/MetadataLoader.cpp
 2075   unsigned NewKind = TheModule.getMDKindID(Name.str());
lib/DebugInfo/DWARF/DWARFDebugLine.cpp
 1076   Result = FilePath.str();
lib/DebugInfo/Symbolize/Symbolize.cpp
  187   return ResourceName.str();
  208     Result = DebugPath.str();
  215     Result = DebugPath.str();
  237     Result = DebugPath.str();
lib/ExecutionEngine/ExecutionEngine.cpp
  203   return FullName.str();
lib/LTO/Caching.cpp
  147           AddBuffer, std::move(*Temp), EntryPath.str(), Task);
lib/LTO/LTO.cpp
 1180   StringRef ParentPath = llvm::sys::path::parent_path(NewPath.str());
 1187   return NewPath.str();
lib/LTO/LTOBackend.cpp
  330     TM->Options.MCOptions.SplitDwarfFile = DwoFile.str().str();
lib/LTO/ThinLTOCodeGenerator.cpp
  874       return OutputPath.str();
  878       return OutputPath.str();
  891   return OutputPath.str();
lib/LineEditor/LineEditor.cpp
   27     return Path.str();
lib/MC/MCContext.cpp
  593   std::string CompDir = CompilationDir.str();
lib/MC/MCDisassembler/Disassembler.cpp
  142   StringRef Comments = DC->CommentsToEmit.str();
lib/MC/MCDwarf.cpp
  319   MCOS->EmitBinaryData(Data.str());
lib/Object/ArchiveWriter.cpp
  548   return Relative.str();
lib/ProfileData/GCOV.cpp
  675   return Result.str();
  696     CoveragePath += "##" + Result.digest().str().str();
lib/ProfileData/SampleProfWriter.cpp
  110   OS << CompressedStrings.str();
lib/Support/APInt.cpp
 2261   return S.str();
lib/Support/CommandLine.cpp
 1083               ResponseFile.append(curr_dir.str());
lib/Support/FileCollector.cpp
   54     SymlinkMap[Directory] = RealPath.str();
lib/Support/GraphWriter.cpp
   89   return Filename.str();
lib/Support/LockFileManager.cpp
  161     S.append(this->FileName.str());
  180     S.append(UniqueLockFileName.str());
  206       S.append(UniqueLockFileName.str());
  229       OSS << LockFileName.str() << " to " << UniqueLockFileName.str();
  229       OSS << LockFileName.str() << " to " << UniqueLockFileName.str();
  252       S.append(UniqueLockFileName.str());
lib/Support/Path.cpp
 1094   this->Path = PathStr.str();
lib/Support/Process.cpp
   58       FoundPath = FilePath.str();
lib/Support/Unix/Path.inc
  821   it.CurrentEntry = directory_entry(path_null.str(), follow_symlinks);
lib/Support/Unix/Program.inc
   91       return std::string(FilePath.str()); // Found the executable!
lib/Support/VirtualFileSystem.cpp
  304       new RealFile(*FDOrErr, Name.str(), RealName.str()));
  309     return WD->Specified.str();
  314   return Dir.str();
  752           StringRef(Path.str().begin(), Name.end() - Path.str().begin()),
  752           StringRef(Path.str().begin(), Name.end() - Path.str().begin()),
  907       CurrentEntry = directory_entry(Path.str(), Type);
  963     WorkingDirectory = Path.str();
 1067   WorkingDirectory = AbsolutePath.str();
 1337           Name = Path.str();
 1399         ExternalContentsPath = FullPath.str();
 2085     CurrentEntry = directory_entry(PathStr.str(), Type);
lib/Support/YAMLParser.cpp
 1637   T.Value = Str.str().str();
lib/Support/YAMLTraits.cpp
  378       KeyStr = StringStorage.str().copy(StringAllocator);
  410         KeyStr = StringStorage.str().copy(StringAllocator);
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  371     return getContext().getELFSection(Name.str(), ELF::SHT_NOBITS,
  415     return getContext().getELFSection(Name.str(), ELF::SHT_PROGBITS,
lib/Target/Lanai/LanaiMCInstLower.cpp
   53   return Ctx.getOrCreateSymbol(Name.str());
   63   return Ctx.getOrCreateSymbol(Name.str());
lib/ToolDrivers/llvm-lib/LibDriver.cpp
   68   return Val.str();
   99       return Path.str().str();
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  548       return Filename.str();
  558   return CurPath.str();
lib/Transforms/Utils/NameAnonGlobals.cpp
   58     TheHash = Result.str();
tools/bugpoint/ExecutionDriver.cpp
  314     BitcodeFile = UniqueFilename.str();
  339   OutputFile = UniqueFile.str();
tools/bugpoint/Miscompilation.cpp
  956   if (BD.writeProgramToFile(TestModuleBC.str(), TestModuleFD, *Test)) {
  957     errs() << "Error writing bitcode to `" << TestModuleBC.str()
  962   FileRemover TestModuleBCRemover(TestModuleBC.str(), !SaveTemps);
  975   if (BD.writeProgramToFile(SafeModuleBC.str(), SafeModuleFD, *Safe)) {
  980   FileRemover SafeModuleBCRemover(SafeModuleBC.str(), !SaveTemps);
  983       BD.compileSharedObject(SafeModuleBC.str());
  992       BD.diffProgram(BD.getProgram(), TestModuleBC.str(), *SharedObject, false);
 1049   if (writeProgramToFile(TestModuleBC.str(), TestModuleFD, *ToCodeGen)) {
 1065   if (writeProgramToFile(SafeModuleBC.str(), SafeModuleFD, *ToNotCodeGen)) {
 1069   Expected<std::string> SharedObject = compileSharedObject(SafeModuleBC.str());
 1078     outs() << "  cc " << *SharedObject << " " << TestModuleBC.str() << ".s -o "
 1086          << SafeModuleBC.str() << " -o temporary.c\n"
tools/bugpoint/OptimizerDriver.cpp
  144   OutputFilename = UniqueFilename.str();
tools/bugpoint/ToolRunner.cpp
  123   RunProgramWithTimeout(ProgPath, Args, "", ErrorFilename.str(),
  124                         ErrorFilename.str(), Timeout, MemoryLimit);
  445   OutputAsmFile = UniqueFile.str();
  740   FileRemover OutputBinaryRemover(OutputBinary.str(), !SaveTemps);
  745     int ExitCode = RunProgramWithTimeout(OutputBinary.str(), ProgramArgs,
  775   OutputFile = UniqueFilename.str();
tools/clang/include/clang/Basic/FixedPoint.h
  168     return S.str();
tools/clang/lib/ARCMigrate/ARCMT.cpp
  611     Remapper.remap(filePath.str(), std::move(memBuf));
tools/clang/lib/ARCMigrate/FileRemapper.cpp
   46   return InfoFile.str();
  148         return report("Could not create file: " + tempPath.str(), Diag);
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 1806       OS.write_escaped(Path.str()) << "\",\n";
 1985     Remapper.remap(filePath.str(), std::move(memBuf));
 2219     reportDiag("Could not create file: " + TempPath.str(), Diag);
 2227   return TempPath.str();
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  240           TA.insert(insertLoc, newCast.str());
  243           TA.insert(insertLoc, newCast.str());
tools/clang/lib/AST/DeclObjC.cpp
  230   return &Ctx.Idents.get(ivarName.str());
tools/clang/lib/AST/Expr.cpp
  690         return Buffer.str();
  856     return Name.str().str();
  887     return Name.str().str();
  962   return S.str();
tools/clang/lib/AST/Mangle.cpp
  363       return Mangled.str();
tools/clang/lib/AST/MicrosoftMangle.cpp
  846               TemplateArgStringStorage.save(TemplateMangling.str());
  894         mangleSourceName(Name.str());
  978       mangleSourceName(Name.str());
  989       mangleSourceName(Name.str());
tools/clang/lib/Basic/FileManager.cpp
  453   UFE->RealPathName = AbsPath.str();
tools/clang/lib/CodeGen/CGCUDANV.cpp
  695         makeConstantString(ModuleID.str(), "", ModuleIDSectionName, 32);
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 4319       DBuilder.createStructType(tunit, typeName.str(), tunit, line,
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  241       ty, FnName.str(), FI, VD.getLocation());
  463       CreateGlobalInitOrDestructFunction(FTy, FnName.str(),
tools/clang/lib/CodeGen/CGException.cpp
 1879       FnTy, llvm::GlobalValue::InternalLinkage, Name.str(), &CGM.getModule());
tools/clang/lib/CodeGen/CGObjCMac.cpp
 3388         EmitProtocolList("OBJC_CATEGORY_PROTOCOLS_" + ExtName.str(),
 3397     Values.add(EmitPropertyList("_OBJC_$_PROP_LIST_" + ExtName.str(),
 3399     Values.add(EmitPropertyList("_OBJC_$_CLASS_PROP_LIST_" + ExtName.str(),
 3407       CreateMetadataVar("OBJC_CATEGORY_" + ExtName.str(), Values,
 3982                            Name.str(),
 6591     values.add(EmitPropertyList("_OBJC_$_PROP_LIST_" + ExtName.str(),
 6593     values.add(EmitPropertyList("_OBJC_$_CLASS_PROP_LIST_" + ExtName.str(),
 6605       finishAndCreateGlobal(values, ExtCatName.str(), CGM);
 6735                                  nullptr, Name.str());
 7019     CGM.getModule().getGlobalVariable(TmpName.str(), true);
tools/clang/lib/CodeGen/CGVTT.cpp
  112   StringRef Name = OutName.str();
tools/clang/lib/CodeGen/CGVTables.cpp
  529                                      Name.str(), &CGM.getModule());
  776   StringRef Name = OutName.str();
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1285   return Path.str().str();
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 2227                                      guardName.str());
 2530                              WrapperName.str(), &CGM.getModule());
 2653         Init = llvm::GlobalAlias::create(Var->getLinkage(), InitFnName.str(),
 2662                                     InitFnName.str(), &CGM.getModule());
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  323     StringRef MangledName = OutName.str();
 1749       if (!ObservedMangledNames.insert(Name.str()).second)
 1799   StringRef VTableName = VTableAliasIsRequred ? StringRef() : VFTableName.str();
 1816     C = CGM.getModule().getOrInsertComdat(VFTableName.str());
 1836                                         VFTableName.str(), VTableGEP,
 1986                              ThunkName.str(), &CGM.getModule());
 2053   StringRef Name = OutName.str();
 2498                                  GV->getLinkage(), Zero, GuardName.str());
 3903       ThunkTy, getLinkageForRTTI(RecordTy), ThunkName.str(), &CGM.getModule());
tools/clang/lib/CodeGen/TargetInfo.cpp
 8874                                 llvm::MDString::get(Ctx, Enc.str())};
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp
  152       Result[LookupName] = FilePath.str().str();
  201   return std::string(DeclUSR.str());
tools/clang/lib/Driver/Driver.cpp
  118   return P.str();
  764   ConfigFile = CfgFileName.str();
 1404       Report->TemporaryFiles.push_back(Script.str());
 1413           << ReproCrashFilename.str();
 1420           << CrashDiagDir.str();
 4563         return P.str().str();
 4574     return R.str();
 4579     return P.str();
 4584     return D.str();
 4629         return P.str();
 4633         return P.str();
 4641       return P.str();
 4661   return Path.str();
 4672   return Path.str();
 4694   return Output.str();
tools/clang/lib/Driver/SanitizerArgs.cpp
  145       BlacklistFiles.push_back(Path.str());
tools/clang/lib/Driver/ToolChain.cpp
  380   return Path.str();
  410       return P.str();
  418   return Path.str();
  435     return llvm::Optional<std::string>(P.str());
  441     return llvm::Optional<std::string>(P.str());
  453     return llvm::Optional<std::string>(P.str());
  459     return llvm::Optional<std::string>(P.str());
  468   return Path.str();
tools/clang/lib/Driver/ToolChains/BareMetal.cpp
   70   return Dir.str();
   81     addSystemInclude(DriverArgs, CC1Args, Dir.str());
   87     addSystemInclude(DriverArgs, CC1Args, Dir.str());
  112     addSystemInclude(DriverArgs, CC1Args, Dir.str());
  122              LI = getDriver().getVFS().dir_begin(Dir.str(), EC),
  136     addSystemInclude(DriverArgs, CC1Args, Dir.str());
tools/clang/lib/Driver/ToolChains/Clang.cpp
 5369     CmdArgs.push_back(Args.MakeArgString(TargetInfo.str()));
tools/clang/lib/Driver/ToolChains/CloudABI.cpp
  105   getFilePaths().push_back(P.str());
  112   addSystemInclude(DriverArgs, CC1Args, P.str());
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  598   return Filename.str();
tools/clang/lib/Driver/ToolChains/Darwin.cpp
  538     CmdArgs.push_back(Args.MakeArgString("-lto-stats-file=" + StatsFile.str()));
 1869     addExternCSystemInclude(DriverArgs, CC1Args, P.str());
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp
  174     getFilePaths().push_back(P.str());
  183         FP.push_back(P.str());
  298     addExternCSystemInclude(DriverArgs, CC1Args, P.str());
  312     addSystemInclude(DriverArgs, CC1Args, P.str());
tools/clang/lib/Driver/ToolChains/MSP430.cpp
  146   return Dir.str();
  157   addSystemInclude(DriverArgs, CC1Args, Dir.str());
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  285       Path = VCPath.str();
  303   return llvm::sys::fs::can_execute(FilePath) ? FilePath.str() : Exe;
  895   return Path.str();
 1132   path = libPath.str();
 1171   Path = LibPath.str();
tools/clang/lib/Driver/ToolChains/MinGW.cpp
  326     Arch = Archs[0].str();
  525     addSystemInclude(DriverArgs, CC1Args, P.str());
tools/clang/lib/Driver/ToolChains/MipsLinux.cpp
  139   return Path.str();
tools/clang/lib/Driver/ToolChains/NaCl.cpp
  263     addSystemInclude(DriverArgs, CC1Args, P.str());
  276     addSystemInclude(DriverArgs, CC1Args, P.str());
  281     addSystemInclude(DriverArgs, CC1Args, P.str());
  296   addSystemInclude(DriverArgs, CC1Args, P.str());
  300   addSystemInclude(DriverArgs, CC1Args, P.str());
  322     addSystemInclude(DriverArgs, CC1Args, P.str());
  326     addSystemInclude(DriverArgs, CC1Args, P.str());
  330     addSystemInclude(DriverArgs, CC1Args, P.str());
  334     addSystemInclude(DriverArgs, CC1Args, P.str());
tools/clang/lib/Driver/ToolChains/PS4CPU.cpp
  385     PrefixDir = PS4SDKDir.str();
  410   getFilePaths().push_back(PS4SDKLibDir.str());
tools/clang/lib/Driver/ToolChains/RISCVToolchain.cpp
   59     addSystemInclude(DriverArgs, CC1Args, Dir.str());
tools/clang/lib/Format/Format.cpp
 2617     Status = FS->status(ConfigFile.str());
 2625       Status = FS->status(ConfigFile.str());
 2632           FS->getBufferForFile(ConfigFile.str());
tools/clang/lib/Frontend/CompilerInstance.cpp
  477   return SpecificModuleCache.str();
  722     OutFile = Path.str();
  777       OSFile = TempFile = TempPath.str();
 2039     BuiltModules[ModuleName] = ModuleFileName.str();
tools/clang/lib/Frontend/CompilerInvocation.cpp
 2058   Opts.ModuleCachePath = P.str();
 2118       Path = Buffer.str();
tools/clang/lib/Frontend/InitHeaderSearch.cpp
  358         BaseSDKPath = P.str();
tools/clang/lib/Frontend/LogDiagnosticPrinter.cpp
  137   DE.Message = MessageStr.str();
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp
  173     SymLinkMap[Dir] = RealPath.str();
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  557   return TempPCHFile(std::move(File).str());
tools/clang/lib/Frontend/Rewrite/FrontendActions.cpp
   80     return Path.str();
   91     return Path.str();
tools/clang/lib/Frontend/TextDiagnostic.cpp
 1309     to_print += res.first.str();
tools/clang/lib/Frontend/TextDiagnosticBuffer.cpp
   35     Notes.emplace_back(Info.getLocation(), Buf.str());
   39     Warnings.emplace_back(Info.getLocation(), Buf.str());
   43     Remarks.emplace_back(Info.getLocation(), Buf.str());
   48     Errors.emplace_back(Info.getLocation(), Buf.str());
tools/clang/lib/Lex/HeaderSearch.cpp
  161     if (getFileMgr().getFile(Result.str()))
  162       return Result.str().str();
  203   return Result.str().str();
tools/clang/lib/Lex/ModuleMap.cpp
  263         setUmbrellaHeader(Mod, File, RelativePathName.str());
  265       Module::Header H = {RelativePathName.str(), File};
  308   Module::Header H = {Path.str(), *File};
tools/clang/lib/Rewrite/Rewriter.cpp
  289     Str = indentedStr.str();
tools/clang/lib/Sema/SemaExpr.cpp
 9870     << HexResult.str() << Result.getMinSignedBits() << LHSType
tools/clang/lib/Sema/SemaType.cpp
 3818   StringRef InsertionText = InsertionTextBuf.str();
tools/clang/lib/Serialization/ASTReader.cpp
 1411   return currPCHPath.str();
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
  754         << '\"' << TempBuf.str().trim() << '\"' << NL;
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  673       ArrayIndices = (llvm::Twine("[") + Idx.str() + "]" + ArrayIndices).str();
tools/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
  106   return Ret.str().str();
tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
   61   if (!llvm::sys::fs::exists(fileName.str())) {
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  456     return Str.str();
  461     return Str.str();
tools/clang/lib/Tooling/CompilationDatabase.cpp
  236   return ClangToolPath.str();
tools/clang/lib/Tooling/Tooling.cpp
  237   return AbsolutePath.str();
tools/clang/tools/clang-refactor/TestSupport.cpp
  193               ErrorMessage = DiagText.str().str();
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
   97   return ObjFileName.str();
tools/clang/tools/driver/cc1_main.cpp
  262             Clang->createOutputFile(Path.str(),
tools/clang/tools/driver/driver.cpp
   61     return ExecutablePath.str();
  294             llvm::sys::path::filename(InstalledPath.str())))
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp
  281     LinkNode->Attributes.emplace_back("href", StylesheetPath.str());
  296     ScriptNode->Attributes.emplace_back("src", ScriptPath.str());
  457   LocFileNode->Attributes.emplace_back("href", FileURL.str());
  722   if (I.Name.str() == "")
tools/clang/tools/extra/clang-doc/Representation.cpp
  289   this->SourceRoot = SourceRootDir.str();
tools/clang/tools/extra/clang-doc/Serialize.cpp
  187   return Buffer.str().str();
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
  235                                  DefaultStylesheet.str());
  236     CDCtx.FilesToCopy.emplace_back(IndexJS.str());
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.cpp
   37   return CleanedFilePath.str();
tools/clang/tools/extra/clang-move/Move.cpp
   68   return Path.str();
   96       llvm::sys::path::parent_path(AbsolutePath.str()));
  103                               llvm::sys::path::filename(AbsolutePath.str()));
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp
  127                                  InitialDirectory.str(), Style, DumpDecls};
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp
  237       DefaultOptionsProvider::getRawOptions(AbsoluteFilePath.str());
  242   StringRef Path = llvm::sys::path::parent_path(AbsoluteFilePath.str());
tools/clang/tools/extra/clang-tidy/fuchsia/RestrictSystemIncludesCheck.cpp
   71         HashLoc, FilenameRange, FileName, FullPath.str(),
tools/clang/tools/extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
  147           llvm::Regex("\\$simd").sub((Std.str() + "::simd").str(), Message);
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
  452     exportReplacements(FilePath.str(), Errors, OS);
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
   24   return Result.str();
tools/clang/tools/extra/clangd/Diagnostics.cpp
  483   D.Message = Message.str();
  582     LastDiag->Fixes.push_back(Fix{Message.str(), std::move(Edits)});
tools/clang/tools/extra/clangd/ExpectedTypes.cpp
   78   return OpaqueType(Encoded.str());
tools/clang/tools/extra/clangd/FS.cpp
   22   this->MainFilePath = MainFileCanonical.str();
  117   return CanonPath.str().str();
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp
   73   return ClangPath.str();
tools/clang/tools/extra/clangd/HeaderSourceSwitch.cpp
   59       return NewPath.str().str(); // First str() to convert from SmallString to
   66       return NewPath.str().str();
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
  240     auto Key = std::make_pair(Driver.str(), Lang);
tools/clang/tools/extra/clangd/SourceCode.cpp
  662     return RealPath.str().str();
  665   return FilePath.str().str();
tools/clang/tools/extra/clangd/XRefs.cpp
 1007       NewSymbol.USR = USR.str();
 1019       NewMacro.USR = USR.str();
tools/clang/tools/extra/clangd/index/BackgroundIndexStorage.cpp
   36   return ShardRootSS.str();
   50     DiskShardRoot = CDBDirectory.str();
  111     this->HomeDir = HomeDir.str().str();
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp
  561         CompileCommandsDirPath = Path.str();
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp
  253     DB.getCompileCommand(File.str());
  260     DB.getCompileCommand(File.str());
  266     DirectoryBasedGlobalCompilationDatabase DB(FS.Root.str().str());
  275     DB.getCompileCommand(File.str());
  283     DB.getCompileCommand(File.str());
  298   DB.setCompileCommand(Root.str(), tooling::CompileCommand());
tools/clang/tools/extra/clangd/unittests/TestFS.cpp
   65     CommandLine.push_back(RelativeFilePath.str());
   89   return Path.str();
tools/clang/tools/extra/modularize/CoverageChecker.cpp
  246   for (sys::fs::directory_iterator I(Directory.str(), EC), E; I != E;
  369   for (sys::fs::recursive_directory_iterator I(Directory.str(), EC), E; I != E;
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
  194       Dependents.push_back(getCanonicalPath(Dependent.str()));
  199     HeaderFileNames.push_back(HeaderFileName.str());
  200     Dependencies[HeaderFileName.str()] = Dependents;
  252     ProblemFileNames.push_back(HeaderFileName.str());
  406   for (llvm::sys::fs::directory_iterator I(Directory.str(), EC), E; I != E;
  490   return Directory.str();
tools/clang/tools/extra/unittests/clang-doc/BitcodeTest.cpp
   25   return Buffer.str().str();
tools/clang/tools/extra/unittests/clang-move/ClangMoveTests.cpp
  245     Results[FilePath.str().str()] = Context.getRewrittenText(FileToFileID[FilePath]);
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  989   Old = Buffer.str();
tools/clang/tools/libclang/CXComment.cpp
  373   return cxstring::createDup(Text.str());
  388   return cxstring::createDup(HTML.str());
  403   return cxstring::createDup(XML.str());
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
 1174     EntityInfo.name = SA.copyCStr(StrBuf.str());
 1183       EntityInfo.USR = SA.copyCStr(StrBuf.str());
tools/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp
   75     ASTWithDefinition->Save(ASTFileName.str());
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
   48     TestRootDir = pathBuf.str();
   50     TestWatchedDir = pathBuf.str();
tools/clang/unittests/Frontend/ASTUnitTest.cpp
   85   AST->Save(ASTFileName.str());
   90       ASTFileName.str(), PCHContainerOps->getRawReader(),
tools/clang/unittests/Frontend/CompilerInstanceTest.cpp
   35   const std::string CurrentPathStr = CurrentPath.str();
   36   const std::string FileNameStr = FileName.str();
tools/clang/unittests/Frontend/FrontendActionTest.cpp
  255             TDC->Error.str().str());
  256   EXPECT_EQ("This is a note", TDC->Note.str().str());
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp
   90   expected_files.push_back(PathStorage.str());
   92   expected_files.push_back(PathStorage.str());
   94   expected_files.push_back(PathStorage.str());
  685     return Result.str();
  726     return Result.str();
tools/clang/unittests/Tooling/RefactoringTest.cpp
  615         TemporaryFiles.insert(std::make_pair(Name, Path.str())).first->second;
tools/clang/unittests/Tooling/RewriterTestContext.h
   80         TemporaryFiles.insert(std::make_pair(Name, Path.str())).first->second;
tools/clang/unittests/Tooling/ToolingTest.cpp
  325   Args.push_back(DepFilePath.str());
  327   Args.push_back(DepFilePath.str());
  329   EXPECT_FALSE(llvm::sys::fs::exists(DepFilePath.str()));
  330   EXPECT_FALSE(llvm::sys::fs::remove(DepFilePath.str()));
tools/clang/unittests/libclang/TestUtils.h
   37     TestDir = Dir.str();
   54       Filename = Path.str();
   66       Filename = Path.str();
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
 1755     return Result.str();
tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
   69     StringMatcher::StringPair Match(Spelling, CLiteral.str());
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
 1302   return enumName.str();
tools/dsymutil/DwarfLinker.cpp
  278       Entry = ResolvedPath.str();
 2512   if ((EC = sys::fs::create_directories(Path.str(), true,
 2530              << Path.str() << '\n';
 2533     if ((EC = sys::fs::copy_file(InterfaceFile, Path.str())))
tools/dsymutil/MachODebugMapParser.cpp
  165             Path.str());
  173             Path.str());
tools/dsymutil/MachOUtils.cpp
  527     OutFile << NewSymtab.str();
tools/dsymutil/dsymutil.cpp
  342           create_directories(Bundle.str(), true, sys::fs::perms::all_all))
  429   std::string ResourceDir = Path.str();
  431   return OutputLocation(Path.str(), ResourceDir);
tools/gold/gold-plugin.cpp
 1099       recordFile(F.first.str(), F.second);
tools/lld/COFF/DebugTypes.cpp
  143   return path.str();
tools/lld/COFF/Driver.cpp
  414     if (sys::fs::exists(path.str()))
  415       return saver.save(path.str());
  418       if (sys::fs::exists(path.str()))
  419         return saver.save(path.str());
  456   StringRef libName = saver.save("lib" + s.str());
  632   return data.str();
  715   return out.str();
  739   return out.str();
 1085     return path.str().str();
tools/lld/COFF/DriverUtils.cpp
  321     path = s.str();
tools/lld/ELF/DriverUtils.cpp
  202   return data.str();
  215     return s.str().str();
tools/lld/MinGW/Driver.cpp
  117     return s.str().str();
tools/lld/lib/Driver/DarwinLdDriver.cpp
  275       path = ctx.copy(fullPath.str());
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  484         _searchDirs.push_back(path.str().copy(_allocator));
  512         _frameworkDirs.push_back(path.str().copy(_allocator));
  539       return fullPath.str().copy(_allocator);
  547     return fullPath.str().copy(_allocator);
  553     return fullPath.str().copy(_allocator);
  577       return fullPath.str().copy(_allocator);
tools/lld/wasm/Driver.cpp
  154     return s.str().str();
  229       readImportFile(importFile.str());
  563   return data.str();
tools/lld/wasm/WriterUtils.cpp
   51   return s.str();
tools/lldb/include/lldb/Utility/Reproducer.h
  145     m_cwd = cwd.str();
tools/lldb/source/Host/common/Editline.cpp
  190         m_path = lldb_history_file.str();
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 2085     SourceInitFile(FileSpec(init_file.str()), result);
 2122   SourceInitFile(FileSpec(init_file.str()), result);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  257   search_opts.ModuleCachePath = module_cache.str();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
   73                 clang_dir.str().str().c_str(), verify ? "true" : "false");
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  617     module_cache_argument.append(path.str());
tools/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp
   76     m_resource_inc = resource_dir.str();
tools/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.cpp
  157   std::string s = main_file.str();
tools/lldb/source/Utility/Log.cpp
  141   WriteMessage(FinalMessage.str());
tools/lldb/source/Utility/Status.cpp
  275     m_string = buf.str();
tools/lldb/unittests/Expression/CppModuleConfigurationTest.cpp
   39   return resource_dir.str().str();
tools/lldb/unittests/TestingSupport/TestUtilities.cpp
   26   return result.str();
tools/lldb/unittests/tools/lldb-server/tests/TestBase.cpp
   33   return DirStr.str();
tools/lldb/unittests/tools/lldb-server/tests/TestBase.h
   39     return Path.str();
tools/llvm-config/llvm-config.cpp
  341     ActiveBinDir = path.str();
tools/llvm-cov/CodeCoverage.cpp
  194     SourceFiles.emplace_back(EffectivePath.str());
  479   Optional<StringRef> Redirects[] = {InputPath.str(), OutputPath.str(), {""}};
  479   Optional<StringRef> Redirects[] = {InputPath.str(), OutputPath.str(), {""}};
tools/llvm-cov/SourceCoverageView.cpp
   51   return FullPath.str();
  161   return SourceText.str();
tools/llvm-cov/gcov.cpp
   39                          ? std::string(CoverageFileStem.str()) + ".gcno"
   42                          ? std::string(CoverageFileStem.str()) + ".gcda"
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  168   return ResultPath.str();
tools/llvm-lto/llvm-lto.cpp
  451   StringRef ParentPath = llvm::sys::path::parent_path(NewPath.str());
  457   return NewPath.str();
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  222         Path.str(),
tools/llvm-objdump/MachODump.cpp
 7161   StringRef Comments = CommentsToEmit.str();
 7355         DSYMPath = FullPath.str();
tools/llvm-pdbutil/llvm-pdbutil.cpp
 1510       opts::yaml2pdb::YamlPdbOutputFile = OutputFilename.str();
tools/llvm-rc/llvm-rc.cpp
  171       OutArgsInfo.push_back(OutputFile.str());
tools/sancov/sancov.cpp
  473   return stripPathPrefix(S.str().str());
unittests/ADT/APIntTest.cpp
 1343   EXPECT_EQ(S.str().str(), "0b0");
 1346   EXPECT_EQ(S.str().str(), "00");
 1349   EXPECT_EQ(S.str().str(), "0");
 1352   EXPECT_EQ(S.str().str(), "0x0");
 1355   EXPECT_EQ(S.str().str(), "0");
 1360   EXPECT_EQ(S.str().str(), "0b11111111");
 1363   EXPECT_EQ(S.str().str(), "0377");
 1366   EXPECT_EQ(S.str().str(), "255");
 1369   EXPECT_EQ(S.str().str(), "0xFF");
 1372   EXPECT_EQ(S.str().str(), "73");
 1377   EXPECT_EQ(S.str().str(), "-0b1");
 1380   EXPECT_EQ(S.str().str(), "-01");
 1383   EXPECT_EQ(S.str().str(), "-1");
 1386   EXPECT_EQ(S.str().str(), "-0x1");
 1389   EXPECT_EQ(S.str().str(), "-1");
unittests/BinaryFormat/TestFileMagic.cpp
   45   void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); }
unittests/Bitcode/BitReaderTest.cpp
   54       getLazyBitcodeModule(MemoryBufferRef(Mem.str(), "test"), Context);
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
 1863   EXPECT_TRUE(Str.str().contains(Error));
 1870   EXPECT_TRUE(Str.str().contains(Error));
unittests/IR/TimePassesTest.cpp
   87   EXPECT_TRUE(TimePassesStr.str().contains("report"));
   88   EXPECT_TRUE(TimePassesStr.str().contains("Pass1"));
   89   EXPECT_TRUE(TimePassesStr.str().contains("Pass2"));
  107   EXPECT_FALSE(TimePassesStr.str().empty());
  108   EXPECT_TRUE(TimePassesStr.str().contains("report"));
  109   EXPECT_FALSE(TimePassesStr.str().contains("Pass1"));
  110   EXPECT_TRUE(TimePassesStr.str().contains("Pass2"));
  145   EXPECT_TRUE(TimePassesStr.str().contains("report"));
  146   EXPECT_TRUE(TimePassesStr.str().contains("Pass1"));
  147   EXPECT_TRUE(TimePassesStr.str().contains("Pass2"));
  163   EXPECT_FALSE(TimePassesStr.str().empty());
  164   EXPECT_TRUE(TimePassesStr.str().contains("report"));
  165   EXPECT_FALSE(TimePassesStr.str().contains("Pass1"));
  166   EXPECT_TRUE(TimePassesStr.str().contains("Pass2"));
unittests/LineEditor/LineEditor.cpp
   33     sys::fs::remove(HistPath.str());
unittests/Passes/PluginsTest.cpp
   37   return Buf.str();
unittests/Support/CommandLineTest.cpp
  874   std::ofstream SelfFile(SelfFilePath.str());
  882   std::ofstream NestedFile(NestedFilePath.str());
  890   std::ofstream FlagFile(FlagFilePath.str());
unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
   30   return Buf.str();
unittests/Support/FileCollectorTest.cpp
   61       EXPECT_FALSE(llvm::sys::fs::remove_directories(Path.str()));
   64   operator StringRef() { return Path.str(); }
   78       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
   81   operator StringRef() { return Path.str(); }
   95       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
   98   operator StringRef() { return Path.str(); }
  104   std::string root_fs = root.Path.str();
  131   std::string root_fs = root.Path.str();
  159   std::string root_fs = root.Path.str();
  197   std::string root_fs = root.Path.str();
  244   std::string root_fs = reproducer_root.Path.str();
  290   std::string root_fs = root.Path.str();
unittests/Support/FileOutputBufferTest.cpp
   61   ASSERT_NO_ERROR(fs::remove(File1.str()));
   78   ASSERT_NO_ERROR(fs::remove(File2.str()));
   99   ASSERT_NO_ERROR(fs::remove(File3.str()));
  119   ASSERT_NO_ERROR(fs::remove(File4.str()));
  122   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
unittests/Support/FileUtilitiesTest.cpp
   41   const std::string TempUniqTestFileModel = FinalTestfilePath.str().str() + "-%%%%%%%%";
   47   std::ifstream FinalFileStream(FinalTestfilePath.str());
unittests/Support/LockFileManagerTest.cpp
   68   EC = sys::fs::create_link(TmpFileLock.str(), FileLocK.str());
   68   EC = sys::fs::create_link(TmpFileLock.str(), FileLocK.str());
  110     EXPECT_TRUE(sys::fs::exists(FileLock.str()));
  114   EXPECT_FALSE(sys::fs::exists(LockedFile.str()));
  115   EXPECT_FALSE(sys::fs::exists(FileLock.str()));
unittests/Support/MemoryBufferTest.cpp
  294   ErrorOr<OwningBuffer> MB = MemoryBuffer::getFileSlice(TestPath.str(),
  309   ErrorOr<OwningBuffer> MB2 = MemoryBuffer::getFileSlice(TestPath.str(),
  336         WritableMemoryBuffer::getFileSlice(TestPath.str(), 0x6000, 0x2000);
unittests/Support/Path.cpp
  450   void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); }
  625   ASSERT_NE(TempPath.str(), TempPath2.str());
  625   ASSERT_NE(TempPath.str(), TempPath2.str());
 1190   return buffer.str();
unittests/Support/ProgramTest.cpp
  335   ASSERT_NO_ERROR(fs::remove(file_pathname.str()));
  336   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
unittests/Support/ReplaceFileTest.cpp
  115   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
  171   ASSERT_NO_ERROR(fs::remove(TestDirectory.str()));
unittests/Support/SpecialCaseListTest.cpp
   41     return Path.str();
unittests/Support/VirtualFileSystemTest.cpp
  147     return FilesAndDirs.find(P.str());
  182   return Result.str();
  257   EXPECT_EQ(RealPath.str(), "/foo");
  261   EXPECT_EQ(RealPath.str(), "/symlink");
  270   EXPECT_EQ(RealPath.str(), "/symlink");
  422         std::string UnresolvedPath = Path.str();
  435       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
  438   operator StringRef() { return Path.str(); }
  452       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
  455   operator StringRef() { return Path.str(); }
  473       EXPECT_FALSE(llvm::sys::fs::remove(Path.str()));
 1098     return Output.str().str();
 2000   EXPECT_EQ(RealPath.str(), "/foo");
 2004   EXPECT_EQ(RealPath.str(), "/symlink");
 2008   EXPECT_EQ(RealPath.str(), "//dir/");
utils/TableGen/FixedLenDecoderEmitter.cpp
 1182   DecoderSet::const_iterator P = find(Decoders, Decoder.str());