Searched refs:ErrorMessage (Results 1 - 17 of 17) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/TextAPI/MachO/
H A DTextAPIContext.h24 std::string ErrorMessage; member in struct:llvm::MachO::TextAPIContext
H A DTextStub.cpp1105 File->ErrorMessage = ("malformed file\n" + Message).str();
1128 return make_error<StringError>(Ctx.ErrorMessage, YAMLIn.error());
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/
H A DCompilationDatabasePluginRegistry.h36 loadFromDirectory(StringRef Directory, std::string &ErrorMessage) = 0;
H A DJSONCompilationDatabase.h65 /// Returns NULL and sets ErrorMessage if the database could not be
68 loadFromFile(StringRef FilePath, std::string &ErrorMessage,
73 /// Returns NULL and sets ErrorMessage if the database could not be loaded.
75 loadFromBuffer(StringRef DatabaseString, std::string &ErrorMessage,
104 /// Returns whether parsing succeeded. Sets ErrorMessage if parsing
106 bool parse(std::string &ErrorMessage);
H A DCompilationDatabase.h97 /// Returns NULL and sets ErrorMessage if we were not able to build up a
104 loadFromDirectory(StringRef BuildDirectory, std::string &ErrorMessage);
111 autoDetectFromSource(StringRef SourceFile, std::string &ErrorMessage);
118 autoDetectFromDirectory(StringRef SourceDir, std::string &ErrorMessage);
188 /// Returns nullptr and sets ErrorMessage if we can't read the file.
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/
H A DCommonOptionsParser.cpp109 std::string ErrorMessage; local
111 FixedCompilationDatabase::loadFromCommandLine(argc, argv, ErrorMessage);
112 if (!ErrorMessage.empty())
113 ErrorMessage.append("\n");
114 llvm::raw_string_ostream OS(ErrorMessage);
119 ErrorMessage,
132 CompilationDatabase::autoDetectFromDirectory(BuildPath, ErrorMessage);
135 ErrorMessage);
139 << ErrorMessage << "Running without flags.\n";
H A DJSONCompilationDatabase.cpp166 loadFromDirectory(StringRef Directory, std::string &ErrorMessage) override {
170 JSONDatabasePath, ErrorMessage, JSONCommandLineSyntax::AutoDetect);
197 std::string &ErrorMessage,
205 ErrorMessage = "Error while opening JSON database: " + Result.message();
210 if (!Database->parse(ErrorMessage))
217 std::string &ErrorMessage,
223 if (!Database->parse(ErrorMessage))
331 bool JSONCompilationDatabase::parse(std::string &ErrorMessage) { argument
334 ErrorMessage = "Error while parsing YAML.";
339 ErrorMessage
196 loadFromFile(StringRef FilePath, std::string &ErrorMessage, JSONCommandLineSyntax Syntax) argument
216 loadFromBuffer(StringRef DatabaseString, std::string &ErrorMessage, JSONCommandLineSyntax Syntax) argument
[all...]
H A DCompilationDatabase.cpp12 // FIXME: Various functions that take a string &ErrorMessage should be upgraded
65 std::string &ErrorMessage) {
66 llvm::raw_string_ostream ErrorStream(ErrorMessage);
81 std::string &ErrorMessage) {
99 ErrorMessage = ErrorStream.str();
105 std::string &ErrorMessage) {
110 findCompilationDatabaseFromDirectory(Directory, ErrorMessage);
113 ErrorMessage = ("Could not auto-detect compilation database for file \"" +
114 SourceFile + "\"\n" + ErrorMessage).str();
120 std::string &ErrorMessage) {
64 loadFromDirectory(StringRef BuildDirectory, std::string &ErrorMessage) argument
80 findCompilationDatabaseFromDirectory(StringRef Directory, std::string &ErrorMessage) argument
104 autoDetectFromSource(StringRef SourceFile, std::string &ErrorMessage) argument
119 autoDetectFromDirectory(StringRef SourceDir, std::string &ErrorMessage) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/
H A DTargetMachineC.cpp67 char **ErrorMessage) {
73 if (ErrorMessage)
74 *ErrorMessage = strdup(Error.c_str());
188 char **ErrorMessage) {
209 *ErrorMessage = strdup(error.c_str());
220 char* Filename, LLVMCodeGenFileType codegen, char** ErrorMessage) {
224 *ErrorMessage = strdup(EC.message().c_str());
227 bool Result = LLVMTargetMachineEmit(T, M, dest, codegen, ErrorMessage);
233 LLVMModuleRef M, LLVMCodeGenFileType codegen, char** ErrorMessage,
237 bool Result = LLVMTargetMachineEmit(T, M, OStream, codegen, ErrorMessage);
66 LLVMGetTargetFromTriple(const char* TripleStr, LLVMTargetRef *T, char **ErrorMessage) argument
185 LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M, raw_pwrite_stream &OS, LLVMCodeGenFileType codegen, char **ErrorMessage) argument
219 LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M, char* Filename, LLVMCodeGenFileType codegen, char** ErrorMessage) argument
232 LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T, LLVMModuleRef M, LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef *OutMemBuf) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm-c/
H A DTargetMachine.h74 Returns 0 on success. Optionally returns any error in ErrorMessage.
77 char **ErrorMessage);
131 error in ErrorMessage. Use LLVMDisposeMessage to dispose the message. */
133 char *Filename, LLVMCodeGenFileType codegen, char **ErrorMessage);
137 LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef *OutMemBuf);
H A DObject.h68 * If NULL is returned, the \p ErrorMessage parameter is populated with the
76 char **ErrorMessage);
108 * If NULL is returned, the \p ErrorMessage parameter is populated with the
118 char **ErrorMessage);
H A DCore.h814 * Print a representation of a module to a file. The ErrorMessage needs to be
820 char **ErrorMessage);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp66 char **ErrorMessage) {
71 *ErrorMessage = strdup(toString(ObjOrErr.takeError()).c_str());
138 char **ErrorMessage) {
143 *ErrorMessage = strdup(toString(ObjOrErr.takeError()).c_str());
64 LLVMCreateBinary(LLVMMemoryBufferRef MemBuf, LLVMContextRef Context, char **ErrorMessage) argument
135 LLVMMachOUniversalBinaryCopyObjectForArch(LLVMBinaryRef BR, const char *Arch, size_t ArchLen, char **ErrorMessage) argument
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp53 using ErrorMessage = SmallString<128>;
56 static ErrorMessage createOutOfBoundErrorMsg(StringRef FunctionDescription,
58 ErrorMessage Message;
364 ErrorMessage Message =
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp1012 std::string ErrorMessage;
1014 ErrorMessage = toString(ExpectedLineInfo.takeError());
1022 if (!ErrorMessage.empty())
1023 Warning += ": " + ErrorMessage;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp1800 std::string ErrorMessage = local
1806 << ErrorMessage;
1808 std::string ErrorMessage = local
1813 << ErrorMessage;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp393 char **ErrorMessage) {
397 *ErrorMessage = strdup(EC.message().c_str());
407 *ErrorMessage = strdup(E.c_str());
392 LLVMPrintModuleToFile(LLVMModuleRef M, const char *Filename, char **ErrorMessage) argument

Completed in 132 milliseconds