Home
last modified time | relevance | path

Searched refs:ErrorMsg (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DCompilationDatabase.cpp239 std::string &ErrorMsg) { in stripPositionalArgs() argument
241 llvm::raw_string_ostream Output(ErrorMsg); in stripPositionalArgs()
298 ErrorMsg = "warning: no compile jobs found\n"; in stripPositionalArgs()
321 std::string &ErrorMsg, in loadFromCommandLine() argument
323 ErrorMsg.clear(); in loadFromCommandLine()
333 if (!stripPositionalArgs(CommandLine, StrippedArgs, ErrorMsg)) in loadFromCommandLine()
339 FixedCompilationDatabase::loadFromFile(StringRef Path, std::string &ErrorMsg) { in loadFromFile() argument
340 ErrorMsg.clear(); in loadFromFile()
344 ErrorMsg = "Error while opening fixed database: " + Result.message(); in loadFromFile()
348 (*File)->getBuffer(), ErrorMsg); in loadFromFile()
[all …]
H A DAllTUsExecution.cpp89 std::string ErrorMsg; in execute() local
93 ErrorMsg += Err.str(); in execute()
145 if (!ErrorMsg.empty()) in execute()
146 return make_string_error(ErrorMsg); in execute()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFileUtilities.cpp88 std::string *ErrorMsg) { in CompareNumbers() argument
133 if (ErrorMsg) { in CompareNumbers()
134 *ErrorMsg = "FP Comparison failed, not a numeric difference between '"; in CompareNumbers()
135 *ErrorMsg += F1P[0]; in CompareNumbers()
136 *ErrorMsg += "' and '"; in CompareNumbers()
137 *ErrorMsg += F2P[0]; in CompareNumbers()
138 *ErrorMsg += "'"; in CompareNumbers()
154 if (ErrorMsg) { in CompareNumbers()
155 raw_string_ostream(*ErrorMsg) in CompareNumbers()
H A DFormatVariadic.cpp182 auto getErrorReplacements = [SavedFmtStr](StringLiteral ErrorMsg) { in parseFormatString() argument
184 ReplacementItem("Invalid formatv() call: "), ReplacementItem(ErrorMsg), in parseFormatString()
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerExtFunctionsDlsym.cpp28 const char *ErrorMsg = dlerror(); in GetFnPtr() local
30 if (ErrorMsg) in GetFnPtr()
31 Printf(" Reason %s.", ErrorMsg); in GetFnPtr()
H A DFuzzerUtilFuchsia.cpp544 char ErrorMsg[FDIO_SPAWN_ERR_MSG_MAX_LENGTH]; in ExecuteCommand() local
549 SpawnActions.data(), &ProcessHandle, ErrorMsg); in ExecuteCommand()
552 Printf("libFuzzer: failed to launch '%s': %s, %s\n", Argv[0], ErrorMsg, in ExecuteCommand()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp120 EvalResult(std::string ErrorMsg) in EvalResult() argument
121 : Value(0), ErrorMsg(std::move(ErrorMsg)) {} in EvalResult()
123 bool hasError() const { return ErrorMsg != ""; } in hasError()
124 const std::string &getErrorMsg() const { return ErrorMsg; } in getErrorMsg()
128 std::string ErrorMsg; member in llvm::RuntimeDyldCheckerExprEval::EvalResult
151 std::string ErrorMsg("Encountered unexpected token '"); in unexpectedToken() local
152 ErrorMsg += getTokenForError(TokenStart); in unexpectedToken()
154 ErrorMsg += "' while parsing subexpression '"; in unexpectedToken()
155 ErrorMsg += SubExpr; in unexpectedToken()
157 ErrorMsg += "'"; in unexpectedToken()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DParsing.cpp57 ParseError(size_t Pos, std::string ErrorMsg, std::string InputExcerpt) in ParseError() argument
58 : Pos(Pos), ErrorMsg(std::move(ErrorMsg)), in ParseError()
62 OS << "parse error at position (" << Pos << "): " << ErrorMsg in log()
72 std::string ErrorMsg; member in __anon28198e1b0111::ParseError
130 static llvm::Error makeParseError(const ParseState &S, std::string ErrorMsg) { in makeParseError() argument
132 return llvm::make_error<ParseError>(Pos, std::move(ErrorMsg), in makeParseError()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/
H A DCompilationDatabase.h184 loadFromCommandLine(int &Argc, const char *const *Argv, std::string &ErrorMsg,
190 loadFromFile(StringRef Path, std::string &ErrorMsg);
195 loadFromBuffer(StringRef Directory, StringRef Data, std::string &ErrorMsg);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPutenvStackArrayChecker.cpp59 StringRef ErrorMsg = "The 'putenv' function should not be called with " in checkPostCall() local
62 auto Report = std::make_unique<PathSensitiveBugReport>(BT, ErrorMsg, N); in checkPostCall()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DCheckerRegistry.cpp72 std::string ErrorMsg; in CheckerRegistry() local
74 DynamicLibrary::getPermanentLibrary(Plugin.c_str(), &ErrorMsg); in CheckerRegistry()
76 Diags.Report(diag::err_fe_unable_to_load_plugin) << Plugin << ErrorMsg; in CheckerRegistry()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DDIPrinter.cpp292 static json::Object toJSON(const Request &Request, StringRef ErrorMsg = "") { in toJSON() argument
298 if (!ErrorMsg.empty()) in toJSON()
299 Json["Error"] = json::Object({{"Message", ErrorMsg.str()}}); in toJSON()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp618 std::string ErrorMsg; in registerUninitializedObjectChecker() local
619 if (!llvm::Regex(ChOpts.IgnoredRecordsWithFieldPattern).isValid(ErrorMsg)) in registerUninitializedObjectChecker()
622 "\"" + ErrorMsg + "\""); in registerUninitializedObjectChecker()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LoadValueInjectionLoadHardening.cpp303 std::string ErrorMsg; in runOnMachineFunction() local
305 OptimizePluginPath.c_str(), &ErrorMsg); in runOnMachineFunction()
306 if (!ErrorMsg.empty()) in runOnMachineFunction()
307 report_fatal_error(Twine("Failed to load opt plugin: \"") + ErrorMsg + in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/tools/lli/
H A Dlli.cpp479 std::string ErrorMsg; in main() local
488 builder.setErrorStr(&ErrorMsg); in main()
526 if (!ErrorMsg.empty()) in main()
528 << "error creating EE: " << ErrorMsg << "\n"; in main()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.cpp379 std::string ErrorMsg = in checkTryTable() local
383 Error |= typeError(ErrorLoc, ErrorMsg); in checkTryTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp1971 auto ErrorMsg = std::string("system register '") + SysReg->Name + "' "; in parseCSRSystemRegister() local
1973 ErrorMsg += "is RV32 only"; in parseCSRSystemRegister()
1975 ErrorMsg += " and "; in parseCSRSystemRegister()
1978 ErrorMsg += in parseCSRSystemRegister()
1982 return Error(S, ErrorMsg); in parseCSRSystemRegister()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVModuleAnalysis.cpp1706 const std::string ErrorMsg = in addInstrRequirements() local
1709 report_fatal_error(ErrorMsg.c_str(), false); in addInstrRequirements()
/freebsd/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheck.cpp2129 for (StringRef ErrorMsg : ErrorMsgs) in printNoMatch() local
2131 ErrorMsg); in printNoMatch()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/
H A DMipsAsmParser.cpp354 bool reportParseError(const Twine &ErrorMsg);
355 bool reportParseError(SMLoc Loc, const Twine &ErrorMsg);
7043 bool MipsAsmParser::reportParseError(const Twine &ErrorMsg) { in reportParseError() argument
7045 return Error(Loc, ErrorMsg); in reportParseError()
7048 bool MipsAsmParser::reportParseError(SMLoc Loc, const Twine &ErrorMsg) { in reportParseError() argument
7049 return Error(Loc, ErrorMsg); in reportParseError()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp3392 StringRef ErrorMsg, in emitIntrinsicWithChainErrorMessage() argument
3394 DAG.getContext()->emitError(Op->getOperationName(0) + ": " + ErrorMsg + "."); in emitIntrinsicWithChainErrorMessage()
3514 static SDValue emitIntrinsicErrorMessage(SDValue Op, StringRef ErrorMsg, in emitIntrinsicErrorMessage() argument
3517 DAG.getContext()->emitError(Op->getOperationName(0) + ": " + ErrorMsg + "."); in emitIntrinsicErrorMessage()
3864 StringRef ErrorMsg, bool WithChain = true) { in emitErrorAndReplaceIntrinsicResults() argument
3865 DAG.getContext()->emitError(N->getOperationName(0) + ": " + ErrorMsg + "."); in emitErrorAndReplaceIntrinsicResults()