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

References

lib/Bitcode/Reader/BitcodeReader.cpp
 5575           SourceFileName = ValueName.c_str();
lib/LTO/LTOCodeGenerator.cpp
  291   NativeObjectPath = Filename.c_str();
lib/LTO/LTOModule.cpp
  344     Buffer.c_str();
  402     Buffer.c_str();
  542     name.c_str();
  580         Buffer.c_str();
lib/LTO/ThinLTOCodeGenerator.cpp
  865   OutputPath.c_str(); // Ensure the string is null terminated.
lib/MC/WinCOFFObjectWriter.cpp
  471     std::memcpy(S.Data.Name, S.Name.c_str(), S.Name.size());
lib/ObjectYAML/MinidumpYAML.cpp
  393       mapRequiredHex(IO, Name.c_str(), Field);
  395       mapOptionalHex(IO, Name.c_str(), Field, 0);
lib/Support/CommandLine.cpp
 1087             NewArgv[I] = Saver.save(ResponseFile.c_str()).data();
lib/Support/FileUtilities.cpp
  322           sys::fs::rename(/*from=*/GeneratedUniqPath.c_str(),
lib/Support/JSON.cpp
  352   auto I = std::strtoll(S.c_str(), &End, 10);
  359   Out = std::strtod(S.c_str(), &End);
lib/Support/LockFileManager.cpp
  318     if (sys::fs::access(LockFileName.c_str(), sys::fs::AccessMode::Exist) ==
lib/Support/NativeFormatting.cpp
  243   format(Spec.c_str(), N).snprint(Buf, sizeof(Buf));
lib/Support/Signals.cpp
  147   FileRemover InputRemover(InputFile.c_str());
  148   FileRemover OutputRemover(OutputFile.c_str());
  175   auto OutputBuf = MemoryBuffer::getFile(OutputFile.c_str());
lib/Support/Unix/Path.inc
  814   DIR *directory = ::opendir(path_null.c_str());
lib/Support/Unix/Program.inc
   90     if (sys::fs::can_execute(FilePath.c_str()))
lib/Support/VirtualFileSystem.cpp
 1847   Entries.push_back(YAMLVFSEntry(VPath.c_str(), FE->getExternalContentsPath()));
tools/bugpoint/ToolRunner.cpp
  128   std::ifstream ErrorFile(ErrorFilename.c_str());
  136   sys::fs::remove(ErrorFilename.c_str());
  723     Exec += OutputBinary.c_str();
tools/clang/lib/AST/CommentParser.cpp
  179     memcpy(TextPtr, WordText.c_str(), Length + 1);
  224     memcpy(TextPtr, WordText.c_str(), Length + 1);
tools/clang/lib/Basic/FileManager.cpp
  508   return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F,
  518   llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str());
tools/clang/lib/CodeGen/CGBlocks.cpp
 1841     Str += llvm::to_string(TyStr.size()) + TyStr.c_str();
tools/clang/lib/CodeGen/CodeGenModule.cpp
 5081       getModule(), Type, Constant, Linkage, InitialValue, Name.c_str(),
tools/clang/lib/CodeGen/TargetInfo.cpp
 8683   FieldEncoding(bool b, SmallStringEnc &e) : HasName(b), Enc(e.c_str()) {}
tools/clang/lib/Driver/Driver.cpp
 4357   return Args.MakeArgString(Filename.c_str());
 4481       NamedOutput = C.getArgs().MakeArgString(Output.c_str());
 4506     NamedOutput = C.getArgs().MakeArgString(Suffixed.c_str());
 4517     NamedOutput = C.getArgs().MakeArgString(TempPath.c_str());
 4527     llvm::sys::fs::equivalent(BaseInput, Result.c_str(), SameFile);
 4545     return C.addResultFile(C.getArgs().MakeArgString(BasePath.c_str()), &JA);
tools/clang/lib/Driver/Job.cpp
  246             printArg(OS, F.c_str(), Quote);
  285     ModCachePath.append(RelModCacheDir.c_str());
tools/clang/lib/Driver/ToolChain.cpp
  532     std::string LinkerPath(GetProgramPath(LinkerName.c_str()));
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  699     LibraryPaths.emplace_back(DefaultLibPath.c_str());
tools/clang/lib/Driver/ToolChains/MSVC.cpp
 1082       if (llvm::sys::fs::exists(TestPath.c_str())) {
tools/clang/lib/Frontend/TextDiagnostic.cpp
  171     SourceLine.replace(i, 1, res.first.c_str());
tools/clang/lib/Index/CommentToXML.cpp
  586   StringRef StringDecl(Declaration.c_str(), Declaration.size());
tools/clang/lib/Serialization/ASTWriter.cpp
 2147         StringRef FilenameDup = strdup(Filename.c_str());
 2194       Filename = StringRef(strdup(FilenameTmp.c_str()));
tools/clang/lib/Serialization/GlobalModuleIndex.cpp
  259       llvm::MemoryBuffer::getFile(IndexPath.c_str());
  668                                          ImportedFile.c_str());
tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
  198                     SBuf.c_str(),
  209                   SBuf.c_str(),
  264                   SBuf.c_str(),
tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp
  157       reportUninitializedAccess(VAList, Errmsg.c_str(), C);
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
  729     CT.second->printState(TempOut, State, /*NL=*/NewLine.c_str(), /*Sep=*/"");
  745     CT.second->printState(TempOut, State, /*NL=*/NewLine.c_str(), /*Sep=*/"");
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  211   std::string report = GenerateHTML(D, R, SMgr, path, declName.c_str());
  245                    << "-" << declName.c_str()
  647                          "<span class='variable'>", Buf.c_str(),
  651     html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "", Buf.c_str(),
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp
  295         llvm::MemoryBuffer::getFile(ConfigFile.c_str());
  314     return OptionsSource(*ParsedOptions, ConfigFile.c_str());
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
  448   return Buffer.c_str();
tools/clang/unittests/Basic/FileManagerTest.cpp
   35     Path = NormalizedPath.c_str();
   67     Path = NormalizedPath.c_str();
tools/clang/unittests/Frontend/ASTUnitTest.cpp
   40     const char *Args[] = {"clang", "-xc++", InputFileName.c_str()};
tools/clang/unittests/Frontend/CompilerInstanceTest.cpp
   47   File.os() << format(VFSYaml, CurrentPathStr.c_str(), FileName.c_str());
tools/clang/unittests/Frontend/FixedPointString.cpp
   15   ASSERT_STREQ(S.c_str(), "2.5");
   19   ASSERT_STREQ(S.c_str(), "0.0");
   24   ASSERT_STREQ(S.c_str(), "255.9921875");
   29   ASSERT_STREQ(S.c_str(), "65535.999969482421875");
   34   ASSERT_STREQ(S.c_str(), "4294967295.9999999995343387126922607421875");
   39   ASSERT_STREQ(S.c_str(), "255.99609375");
   44   ASSERT_STREQ(S.c_str(), "65535.9999847412109375");
   49   ASSERT_STREQ(S.c_str(), "4294967295.99999999976716935634613037109375");
   54   ASSERT_STREQ(S.c_str(), "0.9921875");
   59   ASSERT_STREQ(S.c_str(), "0.999969482421875");
   64   ASSERT_STREQ(S.c_str(), "0.9999999995343387126922607421875");
   69   ASSERT_STREQ(S.c_str(), "0.99609375");
   74   ASSERT_STREQ(S.c_str(), "0.9999847412109375");
   79   ASSERT_STREQ(S.c_str(), "0.99999999976716935634613037109375");
   85   ASSERT_STREQ(S.c_str(), "-2.5");
   89   ASSERT_STREQ(S.c_str(), "-0.5");
   94   ASSERT_STREQ(S.c_str(), "-256.0");
   99   ASSERT_STREQ(S.c_str(), "-65536.0");
  104   ASSERT_STREQ(S.c_str(), "-4294967296.0");
tools/gold/gold-plugin.cpp
  806       message(LDPL_FATAL, "Could not open file %s: %s", NewFilename.c_str(),
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  895         memcpy(fullPath, pathBuf.c_str(), pathBuf.size() + 1);
tools/lldb/source/API/SBFileSpec.cpp
  109   ::snprintf(dst_path, dst_len, "%s", result.c_str());
tools/lldb/source/API/SBHostOS.cpp
   97   FileSpec homedir(home_dir_path.c_str());
tools/lldb/source/Host/common/Host.cpp
  511   FileSpec output_file_spec(output_file_path.c_str());
tools/lldb/source/Host/linux/Host.cpp
  171   ssize_t len = readlink(ProcExe.c_str(), &ExePath[0], PATH_MAX);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  258   LLDB_LOG(log, "Using module cache path: {0}", module_cache.c_str());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
 1183                     __FUNCTION__, named_pipe_path.c_str(), error.AsCString());
 1215                     __FUNCTION__, named_pipe_path.c_str(), error.AsCString());
 1225                     __FUNCTION__, named_pipe_path.c_str(), err.AsCString());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
  533   socket_path_spec.AppendPathComponent(socket_name.c_str());
  536   return FileSpec(socket_path.c_str());
tools/lldb/source/Target/Platform.cpp
   93   module_cache_dir = FileSpec(user_home_dir.c_str());
tools/lldb/source/Target/TargetList.cpp
  353       file = FileSpec(unglobbed_path.c_str());
  366         FileSpec cwd_file(cwd.c_str());
tools/lldb/source/Utility/Log.cpp
  156   Printf("error: %s", Content.c_str());
  178   Printf("warning: %s", Content.c_str());
  307     OS << llvm::formatv(format_str.c_str(), thread_name);
tools/lldb/source/Utility/Scalar.cpp
  265     s->Printf("%s", string.c_str());
tools/lldb/source/Utility/Stream.cpp
  123   return Write(buf.c_str(), length);
tools/lldb/unittests/Utility/VASprintfTest.cpp
   38   EXPECT_STREQ(TestStr.c_str(), BigBuffer.c_str());
   46   EXPECT_STREQ(TestStr.c_str(), SmallBuffer.c_str());
tools/llvm-cov/CodeCoverage.cpp
  397     return NativePath.c_str();
tools/llvm-readobj/ELFDumper.cpp
 2948   Fields[2].Str = RelocName.c_str();
unittests/ADT/SmallStringTest.cpp
   49   EXPECT_STREQ("aaa", theString.c_str());
   56   EXPECT_STREQ("abc", theString.c_str());
   63   EXPECT_STREQ("abc", theString.c_str());
   71   EXPECT_STREQ("abc", theString.c_str());
   79   EXPECT_STREQ("abcabc", theString.c_str());
   87   EXPECT_STREQ("abcabc", theString.c_str());
   96   EXPECT_STREQ("abcabc", theString.c_str());
unittests/Support/CommandLineTest.cpp
  761   std::ofstream RspFile(TempPath.c_str());
  768   RspOpt.append(TempPath.c_str());
  769   const char *args[] = {"prog", RspOpt.c_str()};
  777   llvm::sys::fs::remove(TempPath.c_str());
  789   std::ofstream IncludedFile(IncludedFileName.c_str());
  807   std::ofstream IncludedFile2(IncludedFileName2.c_str());
  816   std::ofstream IncludedFile3(IncludedFileName3.c_str());
  825   IncRef.append(IncludedFileName.c_str());
  827                           { "test/test", "-flag_1", IncRef.c_str(), "-flag_2" };
  864   std::string SelfFileRef = std::string("@") + SelfFilePath.c_str();
  868   std::string NestedFileRef = std::string("@") + NestedFilePath.c_str();
  872   std::string FlagFileRef = std::string("@") + FlagFilePath.c_str();
  931   std::ofstream ResponseFile(ResponseFilePath.c_str());
  941   std::string ResponseFileRef = std::string("@") + ResponseFilePath.c_str();
 1006   std::ofstream ConfigFile(TestCfg.c_str());
 1018   std::ofstream ConfigFile2(TestCfg2.c_str());
unittests/Support/LockFileManagerTest.cpp
   97   ASSERT_FALSE(chdir(TmpDir.c_str()));
unittests/Support/MemoryBufferTest.cpp
  142   ErrorOr<OwningBuffer> MB = MemoryBuffer::getFile(TestPath.c_str());
  241     EXPECT_FALSE(sys::fs::openFileForRead(TestPath.c_str(), TestFD));
  245       sys::fs::convertFDToNativeFile(TestFD), TestPath.c_str(),
unittests/Support/Path.cpp
  491   ASSERT_NO_ERROR(fs::getUniqueID(Dir1.c_str(), F1));
  492   ASSERT_NO_ERROR(fs::getUniqueID(Dir1.c_str(), F2));
  498   ASSERT_NO_ERROR(fs::getUniqueID(Dir2.c_str(), F2));
  640   std::error_code EC = fs::status(TempPath2.c_str(), B);
 1082   EXPECT_STREQ("c3fcd3d76192e4007dfb496cca67e13b", Hash->digest().c_str());
unittests/Support/ProgramTest.cpp
  315   ASSERT_NO_ERROR(sys::writeFileWithEncoding(file_pathname.c_str(), utf8_text,
  318   ASSERT_NO_ERROR(fs::openFileForRead(file_pathname.c_str(), fd));
unittests/Support/raw_pwrite_stream_test.cpp
   65     setenv("RAW_PWRITE_TEST_FILE", Path.c_str(), true);
unittests/TextAPI/TextStubV1Tests.cpp
  212   EXPECT_STREQ(tbd_v1_file3, Buffer.c_str());
unittests/TextAPI/TextStubV2Tests.cpp
  233   EXPECT_STREQ(tbd_v2_file3, Buffer.c_str());
unittests/TextAPI/TextStubV3Tests.cpp
  189   EXPECT_STREQ(tbd_v3_file3, Buffer.c_str());
unittests/TextAPI/TextStubV4Tests.cpp
  234   EXPECT_STREQ(tbd_v4_file, Buffer.c_str());