Home
last modified time | relevance | path

Searched refs:ErrorMessage (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DJSONCompilationDatabase.cpp158 loadFromDirectory(StringRef Directory, std::string &ErrorMessage) override { in loadFromDirectory() argument
162 JSONDatabasePath, ErrorMessage, JSONCommandLineSyntax::AutoDetect); in loadFromDirectory()
189 std::string &ErrorMessage, in loadFromFile() argument
197 ErrorMessage = "Error while opening JSON database: " + Result.message(); in loadFromFile()
202 if (!Database->parse(ErrorMessage)) in loadFromFile()
209 std::string &ErrorMessage, in loadFromBuffer() argument
215 if (!Database->parse(ErrorMessage)) in loadFromBuffer()
323 bool JSONCompilationDatabase::parse(std::string &ErrorMessage) { in parse() argument
326 ErrorMessage = "Error while parsing YAML."; in parse()
331 ErrorMessage = "Error while parsing YAML."; in parse()
[all …]
H A DCommonOptionsParser.cpp109 std::string ErrorMessage; in init() local
111 FixedCompilationDatabase::loadFromCommandLine(argc, argv, ErrorMessage); in init()
112 if (!ErrorMessage.empty()) in init()
113 ErrorMessage.append("\n"); in init()
114 llvm::raw_string_ostream OS(ErrorMessage); in init()
117 return llvm::make_error<llvm::StringError>(ErrorMessage, in init()
130 CompilationDatabase::autoDetectFromDirectory(BuildPath, ErrorMessage); in init()
133 ErrorMessage); in init()
137 << ErrorMessage << "Running without flags.\n"; in init()
H A DCompilationDatabase.cpp59 std::string &ErrorMessage) { in loadFromDirectory() argument
60 llvm::raw_string_ostream ErrorStream(ErrorMessage); in loadFromDirectory()
75 std::string &ErrorMessage) { in findCompilationDatabaseFromDirectory() argument
93 ErrorMessage = ErrorStream.str(); in findCompilationDatabaseFromDirectory()
99 std::string &ErrorMessage) { in autoDetectFromSource() argument
104 findCompilationDatabaseFromDirectory(Directory, ErrorMessage); in autoDetectFromSource()
107 ErrorMessage = ("Could not auto-detect compilation database for file \"" + in autoDetectFromSource()
108 SourceFile + "\"\n" + ErrorMessage).str(); in autoDetectFromSource()
114 std::string &ErrorMessage) { in autoDetectFromDirectory() argument
118 findCompilationDatabaseFromDirectory(AbsolutePath, ErrorMessage); in autoDetectFromDirectory()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTargetMachineC.cpp83 char **ErrorMessage) { in LLVMGetTargetFromTriple() argument
89 if (ErrorMessage) in LLVMGetTargetFromTriple()
90 *ErrorMessage = strdup(Error.c_str()); in LLVMGetTargetFromTriple()
293 char **ErrorMessage) { in LLVMTargetMachineEmit() argument
314 *ErrorMessage = strdup(error.c_str()); in LLVMTargetMachineEmit()
327 char **ErrorMessage) { in LLVMTargetMachineEmitToFile() argument
331 *ErrorMessage = strdup(EC.message().c_str()); in LLVMTargetMachineEmitToFile()
334 bool Result = LLVMTargetMachineEmit(T, M, dest, codegen, ErrorMessage); in LLVMTargetMachineEmitToFile()
340 LLVMModuleRef M, LLVMCodeGenFileType codegen, char** ErrorMessage, in LLVMTargetMachineEmitToMemoryBuffer() argument
344 bool Result = LLVMTargetMachineEmit(T, M, OStream, codegen, ErrorMessage); in LLVMTargetMachineEmitToMemoryBuffer()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/
H A DJSONCompilationDatabase.h68 loadFromFile(StringRef FilePath, std::string &ErrorMessage,
75 loadFromBuffer(StringRef DatabaseString, std::string &ErrorMessage,
106 bool parse(std::string &ErrorMessage);
H A DCompilationDatabase.h104 loadFromDirectory(StringRef BuildDirectory, std::string &ErrorMessage);
111 autoDetectFromSource(StringRef SourceFile, std::string &ErrorMessage);
118 autoDetectFromDirectory(StringRef SourceDir, std::string &ErrorMessage);
H A DCompilationDatabasePluginRegistry.h37 loadFromDirectory(StringRef Directory, std::string &ErrorMessage) = 0;
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DTargetMachine.h92 char **ErrorMessage);
224 char **ErrorMessage);
229 char **ErrorMessage, LLVMMemoryBufferRef *OutMemBuf);
H A DObject.h79 char **ErrorMessage);
119 LLVMBinaryRef BR, const char *Arch, size_t ArchLen, char **ErrorMessage);
H A DCore.h967 char **ErrorMessage);
/freebsd/contrib/llvm-project/llvm/lib/Debuginfod/
H A DHTTPServer.cpp114 std::string ErrorMessage; in get() local
115 if (!Regex(UrlPathPattern).isValid(ErrorMessage)) in get()
116 return createStringError(errc::argument_out_of_domain, ErrorMessage); in get()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp67 char **ErrorMessage) { in LLVMCreateBinary() argument
72 *ErrorMessage = strdup(toString(ObjOrErr.takeError()).c_str()); in LLVMCreateBinary()
141 char **ErrorMessage) { in LLVMMachOUniversalBinaryCopyObjectForArch() argument
146 *ErrorMessage = strdup(toString(ObjOrErr.takeError()).c_str()); in LLVMMachOUniversalBinaryCopyObjectForArch()
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextAPIContext.h23 std::string ErrorMessage; member
H A DTextStub.cpp1070 File->ErrorMessage = ("malformed file\n" + Message).str(); in DiagHandler()
1131 return make_error<StringError>(Ctx.ErrorMessage, YAMLIn.error()); in get()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DJSON.cpp221 R->ErrorMessage = Msg; in report()
231 OS << (ErrorMessage.empty() ? "invalid JSON contents" : ErrorMessage); in getError()
321 Comment.append(ErrorMessage.data(), ErrorMessage.size()); in printErrorContext()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DMemProfReader.cpp255 std::string ErrorMessage( in create() local
259 ErrorMessage += "\n BuildId: "; in create()
260 ErrorMessage += Id; in create()
263 make_error<StringError>(ErrorMessage, inconvertibleErrorCode()), in create()
/freebsd/contrib/llvm-project/clang/tools/clang-scan-deps/
H A DClangScanDeps.cpp790 getCompilationDatabase(int argc, char **argv, std::string &ErrorMessage) { in getCompilationDatabase() argument
801 CompilationDB, ErrorMessage, in getCompilationDatabase()
876 std::string ErrorMessage; in clang_scan_deps_main() local
878 getCompilationDatabase(argc, argv, ErrorMessage); in clang_scan_deps_main()
880 llvm::errs() << ErrorMessage << "\n"; in clang_scan_deps_main()
/freebsd/sys/contrib/edk2/Include/Protocol/
H A DMtftp6.h197 UINT8 ErrorMessage[1]; member
H A DMtftp4.h94 UINT8 ErrorMessage[1]; member
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DJSON.h713 llvm::StringLiteral ErrorMessage; variable
719 Root(llvm::StringRef Name = "") : Name(Name), ErrorMessage("") {} in Name()
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DToolChain.cpp119 std::string ErrorMessage; in executeToolChainProgram() local
132 /*MemoryLimit=*/0, &ErrorMessage)) in executeToolChainProgram()
134 Executable + ": " + ErrorMessage); in executeToolChainProgram()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp49 using ErrorMessage = SmallString<128>; typedef
52 static ErrorMessage createOutOfBoundErrorMsg(StringRef FunctionDescription, in createOutOfBoundErrorMsg()
54 ErrorMessage Message; in createOutOfBoundErrorMsg()
591 ErrorMessage Message = in CheckLocation()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp3068 std::string ErrorMessage = in ParseFrontendArgs() local
3074 << ErrorMessage; in ParseFrontendArgs()
3077 std::string ErrorMessage = in ParseFrontendArgs() local
3082 << ErrorMessage; in ParseFrontendArgs()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp450 char **ErrorMessage) { in LLVMPrintModuleToFile() argument
454 *ErrorMessage = strdup(EC.message().c_str()); in LLVMPrintModuleToFile()
464 *ErrorMessage = strdup(E.c_str()); in LLVMPrintModuleToFile()