Home
last modified time | relevance | path

Searched refs:OutputFile (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DHeaderIncludeGen.cpp22 raw_ostream *OutputFile; member in __anon4aad0e180111::HeaderIncludesCallback
43 delete OutputFile; in ~HeaderIncludesCallback()
81 raw_ostream *OutputFile; member in __anon4aad0e180111::HeaderIncludesJSONCallback
93 delete OutputFile; in ~HeaderIncludesJSONCallback()
134 *OutputFile << Msg; in PrintHeaderInfo()
135 OutputFile->flush(); in PrintHeaderInfo()
151 OutputFile = &llvm::errs(); in AttachHeaderIncludeGen()
154 OutputFile = &llvm::outs(); in AttachHeaderIncludeGen()
171 OutputFile = OS; in AttachHeaderIncludeGen()
283 *OutputFile << Str; in EndOfMainFile()
[all …]
H A DDependencyGraph.cpp30 std::string OutputFile; member in __anon1c77daa20111::DependencyGraphCallback
44 DependencyGraphCallback(const Preprocessor *_PP, StringRef OutputFile, in DependencyGraphCallback() argument
46 : PP(_PP), OutputFile(OutputFile.str()), SysRoot(SysRoot.str()) { } in DependencyGraphCallback()
62 void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, in AttachDependencyGraphGen() argument
64 PP.addPPCallbacks(std::make_unique<DependencyGraphCallback>(&PP, OutputFile, in AttachDependencyGraphGen()
97 llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::OF_TextWithCRLF); in OutputGraphFile()
99 PP->getDiagnostics().Report(diag::err_fe_error_opening) << OutputFile in OutputGraphFile()
H A DDependencyFile.cpp195 : OutputFile(Opts.OutputFile), Targets(Opts.Targets), in DependencyFileGenerator()
322 llvm::sys::fs::remove(OutputFile); in outputDependencyFile()
327 llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::OF_TextWithCRLF); in outputDependencyFile()
329 Diags.Report(diag::err_fe_error_opening) << OutputFile << EC.message(); in outputDependencyFile()
H A DFrontendActions.cpp128 std::string OutputFile; in CreateASTConsumer() local
130 CreateOutputFile(CI, InFile, /*ref*/ OutputFile); in CreateASTConsumer()
141 CI.getPreprocessor(), CI.getModuleCache(), OutputFile, Sysroot, Buffer, in CreateASTConsumer()
147 CI, std::string(InFile), OutputFile, std::move(OS), Buffer)); in CreateASTConsumer()
165 std::string &OutputFile) { in CreateOutputFile() argument
172 OutputFile = CI.getFrontendOpts().OutputFile; in CreateOutputFile()
194 std::string OutputFile = CI.getFrontendOpts().OutputFile; in CreateASTConsumer() local
212 CI, std::string(InFile), OutputFile, std::move(OS), Buffer)); in CreateASTConsumer()
236 if (CI.getFrontendOpts().OutputFile.empty()) { in CreateOutputFile()
242 CI.getFrontendOpts().OutputFile = in CreateOutputFile()
[all …]
H A DSerializedDiagnosticPrinter.cpp246 : DiagOpts(Diags), Stream(Buffer), OutputFile(File.str()), in SharedState()
259 std::string OutputFile; member
299 create(StringRef OutputFile, DiagnosticOptions *Diags, bool MergeChildRecords) { in create() argument
300 return std::make_unique<SDiagsWriter>(OutputFile, Diags, MergeChildRecords); in create()
765 if (!llvm::sys::fs::remove(State->OutputFile)) in RemoveOldDiagnostics()
792 if (llvm::sys::fs::exists(State->OutputFile)) in finish()
793 if (SDiagsMerger(*this).mergeRecordsFromFile(State->OutputFile.c_str())) in finish()
798 auto OS = std::make_unique<llvm::raw_fd_ostream>(State->OutputFile.c_str(), in finish()
802 << State->OutputFile << EC.message(); in finish()
814 << State->OutputFile << OS->error().message(); in finish()
/freebsd/sys/contrib/dev/acpica/compiler/
H A Daslerror.c204 FILE *OutputFile,
363 fprintf (OutputFile, "%s %4.4d -", in AeDecodeErrorMessageId()
436 fprintf (OutputFile, "\n"); in AeDecodeErrorMessageId()
439 fprintf (OutputFile, "\n"); in AeDecodeErrorMessageId()
502 fprintf (OutputFile, in AePrintErrorSourceLine()
542 fprintf (OutputFile, in AePrintErrorSourceLine()
552 fprintf (OutputFile, in AePrintErrorSourceLine()
591 fprintf (OutputFile, "\n"); in AePrintErrorSourceLine()
724 fprintf (OutputFile, "\n"); in AePrintException()
764 fprintf (OutputFile, "\n "); in AePrintSubError()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/
H A DExecutionDriver.cpp283 std::string OutputFile, in executeProgram() argument
316 if (OutputFile.empty()) in executeProgram()
317 OutputFile = OutputPrefix + "-execution-output-%%%%%%%"; in executeProgram()
327 OutputFile = std::string(UniqueFile); in executeProgram()
358 std::ofstream outFile(OutputFile.c_str(), std::ios_base::app); in executeProgram()
364 return OutputFile; in executeProgram()
371 const std::string &OutputFile) const { in executeProgramSafely()
372 return executeProgram(Program, OutputFile, "", "", SafeInterpreter); in executeProgramSafely()
378 std::string OutputFile; in compileSharedObject() local
382 SafeInterpreter->OutputCode(BitcodeFile, OutputFile); in compileSharedObject()
[all …]
H A DToolRunner.cpp158 const std::string &InputFile, const std::string &OutputFile,
168 const std::string &OutputFile, in ExecuteProgram() argument
199 OutputFile, Timeout, MemoryLimit); in ExecuteProgram()
312 const std::string &InputFile, const std::string &OutputFile, in ExecuteProgram() argument
329 OutputFile, OutputFile, Timeout, MemoryLimit); in ExecuteProgram()
485 const std::string &OutputFile, in ExecuteProgram() argument
626 const std::string &OutputFile, in ExecuteProgram() argument
746 InputFile, OutputFile, OutputFile, in ExecuteProgram()
760 InputFile, OutputFile, OutputFile, in ExecuteProgram()
766 std::string &OutputFile, in MakeSharedObject() argument
[all …]
H A DToolRunner.h65 const std::string &OutputFile,
73 std::string &OutputFile,
137 const std::string &InputFile, const std::string &OutputFile,
171 const std::string &InputFile, const std::string &OutputFile,
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIO.cpp24 static FILE *OutputFile = stderr; variable
27 return OutputFile; in GetOutputFile()
31 OutputFile = NewOutputFile; in SetOutputFile()
141 OutputFile = NewOutputFile; in DupAndCloseStderr()
155 fputs(Str, OutputFile); in Puts()
156 fflush(OutputFile); in Puts()
162 vfprintf(OutputFile, Fmt, ap); in Printf()
164 fflush(OutputFile); in Printf()
171 vfprintf(OutputFile, Fmt, ap); in VPrintf()
173 fflush(OutputFile); in VPrintf()
H A DFuzzerCommand.h42 OutputFile(Other.OutputFile) {} in Command()
47 OutputFile = Other.OutputFile;
125 bool hasOutputFile() const { return !OutputFile.empty(); } in hasOutputFile()
128 const std::string &getOutputFile() const { return OutputFile; } in getOutputFile()
131 void setOutputFile(const std::string &FileName) { OutputFile = FileName; } in setOutputFile()
174 std::string OutputFile; variable
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DGeneratePCH.cpp25 StringRef OutputFile, StringRef isysroot, std::shared_ptr<PCHBuffer> Buffer, in PCHGenerator() argument
29 : PP(PP), OutputFile(OutputFile), isysroot(isysroot.str()), in PCHGenerator()
68 Buffer->Signature = Writer.WriteAST(*SemaPtr, OutputFile, Module, isysroot, in HandleTranslationUnit()
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingFile.c508 FILE *OutputFile; in writeFile() local
517 if (!OutputFile) in writeFile()
523 initFileWriter(&fileWriter, OutputFile); in writeFile()
526 if (OutputFile == getProfileFile()) { in writeFile()
527 fflush(OutputFile); in writeFile()
529 lprofUnlockFileHandle(OutputFile); in writeFile()
532 fclose(OutputFile); in writeFile()
541 FILE *OutputFile; in writeOrderFile() local
543 OutputFile = fopen(OutputName, "w"); in writeOrderFile()
545 if (!OutputFile) { in writeOrderFile()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSignals.cpp182 SmallString<32> InputFile, OutputFile; in printSymbolizedStackTrace() local
184 sys::fs::createTemporaryFile("symbolizer-output", "", OutputFile); in printSymbolizedStackTrace()
186 FileRemover OutputRemover(OutputFile.c_str()); in printSymbolizedStackTrace()
196 std::optional<StringRef> Redirects[] = {InputFile.str(), OutputFile.str(), in printSymbolizedStackTrace()
213 auto OutputBuf = MemoryBuffer::getFile(OutputFile.c_str()); in printSymbolizedStackTrace()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp45 const std::string OutputFile; member in __anonaad8345b0111::PlistDiagnostics
56 const std::string &OutputFile, const Preprocessor &PP,
527 : DiagOpts(std::move(DiagOpts)), OutputFile(output), PP(PP), CTU(CTU), in PlistDiagnostics()
536 const std::string &OutputFile, const Preprocessor &PP, in createPlistDiagnosticConsumer() argument
541 if (OutputFile.empty()) in createPlistDiagnosticConsumer()
544 C.push_back(new PlistDiagnostics(DiagOpts, OutputFile, PP, CTU, in createPlistDiagnosticConsumer()
547 createTextMinimalPathDiagnosticConsumer(std::move(DiagOpts), C, OutputFile, in createPlistDiagnosticConsumer()
553 const std::string &OutputFile, const Preprocessor &PP, in createPlistMultiFileDiagnosticConsumer() argument
558 if (OutputFile.empty()) in createPlistMultiFileDiagnosticConsumer()
561 C.push_back(new PlistDiagnostics(DiagOpts, OutputFile, PP, CTU, in createPlistMultiFileDiagnosticConsumer()
[all …]
H A DSarifDiagnostics.cpp33 std::string OutputFile; member in __anon6d47a7840111::SarifDiagnostics
40 : OutputFile(Output), LO(LO), SarifWriter(SM) {} in SarifDiagnostics()
194 llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::OF_TextWithCRLF); in FlushDiagnosticsImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/
H A DLVReader.h34 std::unique_ptr<ToolOutputFile> OutputFile; variable
47 if (OutputFile) { in close()
48 OutputFile->os().close(); in close()
49 OutputFile = nullptr; in close()
54 raw_fd_ostream &os() { return OutputFile->os(); } in os()
/freebsd/contrib/llvm-project/llvm/tools/llvm-debuginfo-analyzer/
H A Dllvm-debuginfo-analyzer.cpp107 ToolOutputFile OutputFile(OutputFilename, EC, sys::fs::OF_None); in main() local
110 OutputFile.keep(); in main()
124 ScopedPrinter W(OutputFile.os()); in main()
/freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp180 Def->OutputFile = Arg->getValue(); in dlltoolDriverMain()
182 if (Def->OutputFile.empty()) { in dlltoolDriverMain()
218 if (!Path.empty() && writeImportLibrary(Def->OutputFile, Path, Def->Exports, in dlltoolDriverMain()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp89 CI.getMutFrontendOpts().OutputFile = in addOutputPaths()
95 if (!CI.getDependencyOutputOpts().OutputFile.empty()) { in addOutputPaths()
96 CI.getMutDependencyOutputOpts().OutputFile = Controller.lookupModuleOutput( in addOutputPaths()
102 if (!CI.getDependencyOutputOpts().OutputFile.empty() && in addOutputPaths()
106 quoteMakeTarget(CI.getFrontendOpts().OutputFile, Target); in addOutputPaths()
121 CI.getFrontendOpts().OutputFile.clear(); in makeCommonInvocationForModuleBuild()
139 if (!CI.getDependencyOutputOpts().OutputFile.empty()) in makeCommonInvocationForModuleBuild()
140 CI.getDependencyOutputOpts().OutputFile = "-"; in makeCommonInvocationForModuleBuild()
/freebsd/contrib/llvm-project/clang/lib/IndexSerialization/
H A DSerializablePathCollection.cpp40 StringRef CurrentWorkDir, StringRef SysRoot, llvm::StringRef OutputFile) in SerializablePathCollection() argument
46 OutputFilePath(Paths.addDirPath(OutputFile)) {} in SerializablePathCollection()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVReader.cpp134 assert(OutputFile == nullptr && "OutputFile already set."); in open()
144 OutputFile = std::make_unique<ToolOutputFile>(Name, EC, sys::fs::OF_None); in open()
149 OutputFile->keep(); in open()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DUtils.h123 std::string OutputFile; variable
167 void AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile,
H A DSerializedDiagnosticPrinter.h34 std::unique_ptr<DiagnosticConsumer> create(StringRef OutputFile,
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DCOFFModuleDefinition.cpp210 if (Info.OutputFile.empty()) { in parseOne()
211 Info.OutputFile = Name; in parseOne()
214 Info.OutputFile += IsDll ? ".dll" : ".exe"; in parseOne()

123