Lines Matching defs:std

59     std::shared_ptr<PCHContainerOperations> PCHContainerOps,
65 ThePCHContainerOperations(std::move(PCHContainerOps)) {}
72 std::shared_ptr<CompilerInvocation> Value) {
73 Invocation = std::move(Value);
92 void CompilerInstance::setVerboseOutputStream(std::unique_ptr<raw_ostream> Value) {
108 void CompilerInstance::setPreprocessor(std::shared_ptr<Preprocessor> Value) {
109 PP = std::move(Value);
123 void CompilerInstance::setASTConsumer(std::unique_ptr<ASTConsumer> Value) {
124 Consumer = std::move(Value);
134 std::unique_ptr<Sema> CompilerInstance::takeSema() {
135 return std::move(TheSema);
144 TheASTReader = std::move(Reader);
147 std::shared_ptr<ModuleDependencyCollector>
153 std::shared_ptr<ModuleDependencyCollector> Collector) {
154 ModuleDepCollector = std::move(Collector);
158 std::shared_ptr<ModuleDependencyCollector> MDC) {
159 SmallVector<std::string, 4> HeaderMapFileNames;
166 std::shared_ptr<ModuleDependencyCollector> MDC) {
179 std::error_code EC;
198 std::shared_ptr<ModuleDependencyCollector> MDC) {
204 for (const std::string &VFSFile : CI.getHeaderSearchOpts().VFSOverlayFiles) {
205 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Buffer =
209 llvm::vfs::collectVFSFromYAML(std::move(Buffer.get()),
221 std::error_code EC;
222 std::unique_ptr<raw_ostream> StreamOwner;
226 auto FileOS = std::make_unique<llvm::raw_fd_ostream>(
235 StreamOwner = std::move(FileOS);
240 auto Logger = std::make_unique<LogDiagnosticPrinter>(*OS, DiagOpts,
241 std::move(StreamOwner));
246 new ChainedDiagnosticConsumer(Diags.takeClient(), std::move(Logger)));
249 new ChainedDiagnosticConsumer(Diags.getClient(), std::move(Logger)));
261 Diags.takeClient(), std::move(SerializedConsumer)));
264 Diags.getClient(), std::move(SerializedConsumer)));
317 FileMgr = new FileManager(getFileSystemOpts(), std::move(VFS));
389 PP = std::make_shared<Preprocessor>(Invocation->getPreprocessorOptsPtr(),
427 addDependencyCollector(std::make_shared<DependencyFileGenerator>(DepOpts));
435 ModuleDepCollector = std::make_shared<ModuleDependencyCollector>(
470 std::string CompilerInstance::getSpecificModuleCachePath() {
511 ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions,
512 ArrayRef<std::shared_ptr<DependencyCollector>> DependencyCollectors,
636 OutputFiles.push_back(std::move(OutFile));
650 if (std::error_code ec =
670 std::unique_ptr<raw_pwrite_stream>
678 std::unique_ptr<raw_pwrite_stream> CompilerInstance::createNullOutputFile() {
679 return std::make_unique<llvm::raw_null_ostream>();
682 std::unique_ptr<raw_pwrite_stream>
687 std::string OutputPathName, TempPathName;
688 std::error_code EC;
689 std::unique_ptr<raw_pwrite_stream> OS = createOutputFile(
706 std::unique_ptr<llvm::raw_pwrite_stream> CompilerInstance::createOutputFile(
707 StringRef OutputPath, std::error_code &Error, bool Binary,
710 std::string *ResultPathName, std::string *TempPathName) {
714 std::string OutFile, TempFile;
727 std::unique_ptr<llvm::raw_fd_ostream> OS;
728 std::string OSFile;
763 std::error_code EC =
803 return std::move(OS);
805 auto B = std::make_unique<llvm::buffer_ostream>(*OS);
807 NonSeekStream = std::move(OS);
808 return std::move(B);
864 SourceMgr.overrideFileContents(FE, std::move(*MB));
877 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> SBOrErr =
879 if (std::error_code EC = SBOrErr.getError()) {
883 std::unique_ptr<llvm::MemoryBuffer> SB = std::move(SBOrErr.get());
889 SourceMgr.overrideFileContents(File, std::move(SB));
924 auto TO = std::make_shared<TargetOptions>();
966 consumeError(std::move(Err)); // FIXME this drops errors on the floor.
1009 std::error_code EC;
1010 auto StatS = std::make_unique<llvm::raw_fd_ostream>(
1050 std::make_shared<CompilerInvocation>(ImportingInstance.getInvocation());
1063 std::remove_if(PPOpts.Macros.begin(), PPOpts.Macros.end(),
1064 [&HSOpts](const std::pair<std::string, bool> &def) {
1085 std::make_shared<PreprocessorOptions::FailedModulesSet>();
1115 Instance.setInvocation(std::move(Invocation));
1219 std::string InferredModuleMapContent;
1230 std::unique_ptr<llvm::MemoryBuffer> ModuleMapBuffer =
1235 ModuleMapFile, std::move(ModuleMapBuffer));
1398 std::error_code EC;
1412 if (std::error_code EC = llvm::sys::fs::status(TimestampFile, StatBuf)) {
1414 if (EC == std::errc::no_such_file_or_directory) {
1435 std::error_code EC;
1469 std::string TimpestampFilename = File->path() + ".timestamp";
1498 std::string Sysroot = HSOpts.Sysroot;
1500 std::unique_ptr<llvm::Timer> ReadTimer;
1502 ReadTimer = std::make_unique<llvm::Timer>("reading_modules",
1512 getFrontendOpts().UseGlobalModuleIndex, std::move(ReadTimer));
1593 auto Listener = std::make_unique<ReadModuleNames>(*this);
1596 std::move(Listener));
1634 selectModuleSource(Module *M, StringRef ModuleName, std::string &ModuleFilename,
1635 const std::map<std::string, std::string> &BuiltModules,
1673 std::string ModuleFilename;
1912 SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> PrivPath;
1915 PrivPath.push_back(std::make_pair(&II, Path[0].second));
1940 unsigned BestEditDistance = (std::numeric_limits<unsigned>::max)();
2045 if (std::error_code EC = llvm::sys::fs::createTemporaryFile(
2051 std::string ModuleMapFileName = (CleanModuleName + ".map").str();
2058 std::string NullTerminatedSource(Source.str());
2069 Other.BuiltModules = std::move(BuiltModules);
2074 BuiltModules = std::move(Other.BuiltModules);
2121 consumeError(std::move(Err));
2138 SmallVector<std::pair<IdentifierInfo *, SourceLocation>, 2> Path;
2139 Path.push_back(std::make_pair(
2141 std::reverse(Path.begin(), Path.end());
2152 consumeError(std::move(Err));
2193 ExternalSemaSrc = std::move(ESS);