| /freebsd/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | CompilationDatabase.cpp | 239 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 D | AllTUsExecution.cpp | 89 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 D | FileUtilities.cpp | 88 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 D | FormatVariadic.cpp | 182 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 D | FuzzerExtFunctionsDlsym.cpp | 28 const char *ErrorMsg = dlerror(); in GetFnPtr() local 30 if (ErrorMsg) in GetFnPtr() 31 Printf(" Reason %s.", ErrorMsg); in GetFnPtr()
|
| H A D | FuzzerUtilFuchsia.cpp | 544 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 D | RuntimeDyldChecker.cpp | 120 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 D | Parsing.cpp | 57 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 D | CompilationDatabase.h | 184 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 D | PutenvStackArrayChecker.cpp | 59 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 D | CheckerRegistry.cpp | 72 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 D | DIPrinter.cpp | 292 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 D | UninitializedObjectChecker.cpp | 618 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 D | X86LoadValueInjectionLoadHardening.cpp | 303 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 D | lli.cpp | 479 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 D | WebAssemblyAsmTypeCheck.cpp | 379 std::string ErrorMsg = in checkTryTable() local 383 Error |= typeError(ErrorLoc, ErrorMsg); in checkTryTable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/ |
| H A D | RISCVAsmParser.cpp | 1971 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 D | SPIRVModuleAnalysis.cpp | 1706 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 D | FileCheck.cpp | 2129 for (StringRef ErrorMsg : ErrorMsgs) in printNoMatch() local 2131 ErrorMsg); in printNoMatch()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/AsmParser/ |
| H A D | MipsAsmParser.cpp | 354 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 D | LoongArchISelLowering.cpp | 3392 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()
|