/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | Error.cpp | 28 const Twine &Msg) { in PrintMessage() argument 37 SrcMgr.PrintMessage(Loc.front(), Kind, Msg); in PrintMessage() 45 void PrintNote(const Twine &Msg) { in PrintNote() argument 46 WithColor::note() << Msg << "\n"; in PrintNote() 49 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintNote() argument 50 PrintMessage(NoteLoc, SourceMgr::DK_Note, Msg); in PrintNote() 55 void PrintFatalNote(const Twine &Msg) { in PrintFatalNote() argument 56 PrintNote(Msg); in PrintFatalNote() 62 void PrintFatalNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintFatalNote() argument 63 PrintNote(NoteLoc, Msg); in PrintFatalNote() 71 PrintFatalNote(const Record * Rec,const Twine & Msg) PrintFatalNote() argument 80 PrintFatalNote(const RecordVal * RecVal,const Twine & Msg) PrintFatalNote() argument 89 PrintWarning(const Twine & Msg) PrintWarning() argument 91 PrintWarning(ArrayRef<SMLoc> WarningLoc,const Twine & Msg) PrintWarning() argument 95 PrintWarning(const char * Loc,const Twine & Msg) PrintWarning() argument 101 PrintError(const Twine & Msg) PrintError() argument 103 PrintError(ArrayRef<SMLoc> ErrorLoc,const Twine & Msg) PrintError() argument 107 PrintError(const char * Loc,const Twine & Msg) PrintError() argument 113 PrintError(const Record * Rec,const Twine & Msg) PrintError() argument 119 PrintError(const RecordVal * RecVal,const Twine & Msg) PrintError() argument 125 PrintFatalError(const Twine & Msg) PrintFatalError() argument 132 PrintFatalError(ArrayRef<SMLoc> ErrorLoc,const Twine & Msg) PrintFatalError() argument 141 PrintFatalError(const Record * Rec,const Twine & Msg) PrintFatalError() argument 150 PrintFatalError(const RecordVal * RecVal,const Twine & Msg) PrintFatalError() argument [all...] |
/freebsd/contrib/llvm-project/clang/lib/Edit/ |
H A D | RewriteObjCFoundationAPI.cpp | 26 static bool checkForLiteralCreation(const ObjCMessageExpr *Msg, in checkForLiteralCreation() argument 29 if (!Msg || Msg->isImplicit() || !Msg->getMethodDecl()) in checkForLiteralCreation() 32 const ObjCInterfaceDecl *Receiver = Msg->getReceiverInterface(); in checkForLiteralCreation() 37 if (Msg->getReceiverKind() == ObjCMessageExpr::Class) in checkForLiteralCreation() 43 if (Msg->getReceiverKind() == ObjCMessageExpr::Instance) { in checkForLiteralCreation() 45 Msg->getInstanceReceiver()->IgnoreParenImpCasts())) { in checkForLiteralCreation() 59 bool edit::rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, in rewriteObjCRedundantCallWithLiteral() argument 62 if (!checkForLiteralCreation(Msg, II, NS.getASTContext().getLangOpts())) in rewriteObjCRedundantCallWithLiteral() 64 if (Msg->getNumArgs() != 1) in rewriteObjCRedundantCallWithLiteral() 67 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteObjCRedundantCallWithLiteral() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
H A D | Error.h | 22 void PrintNote(const Twine &Msg); 23 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg); 25 [[noreturn]] void PrintFatalNote(const Twine &Msg); 26 [[noreturn]] void PrintFatalNote(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 27 [[noreturn]] void PrintFatalNote(const Record *Rec, const Twine &Msg); 28 [[noreturn]] void PrintFatalNote(const RecordVal *RecVal, const Twine &Msg); 30 void PrintWarning(const Twine &Msg); 31 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 32 void PrintWarning(const char *Loc, const Twine &Msg); 34 void PrintError(const Twine &Msg); [all...] |
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | MCAsmParser.cpp | 56 bool MCAsmParser::parseEOL(const Twine &Msg) { in parseEOL() argument 58 return Error(getTok().getLoc(), Msg); in parseEOL() 63 bool MCAsmParser::parseToken(AsmToken::TokenKind T, const Twine &Msg) { in parseToken() argument 65 return parseEOL(Msg); in parseToken() 67 return Error(getTok().getLoc(), Msg); in parseToken() 72 bool MCAsmParser::parseIntToken(int64_t &V, const Twine &Msg) { in parseIntToken() argument 74 return TokError(Msg); in parseIntToken() 87 bool MCAsmParser::check(bool P, const Twine &Msg) { in check() argument 88 return check(P, getTok().getLoc(), Msg); in check() 91 bool MCAsmParser::check(bool P, SMLoc Loc, const Twine &Msg) { in check() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmParserExtension.h | 69 bool Warning(SMLoc L, const Twine &Msg) { in Warning() argument 70 return getParser().Warning(L, Msg); in Warning() 73 bool Error(SMLoc L, const Twine &Msg, SMRange Range = SMRange()) { 74 return getParser().Error(L, Msg, Range); 77 void Note(SMLoc L, const Twine &Msg) { in Note() argument 78 getParser().Note(L, Msg); in Note() 81 bool TokError(const Twine &Msg) { in TokError() argument 82 return getParser().TokError(Msg); in TokError() 88 const Twine &Msg = "unexpected token") { 89 return getParser().parseToken(T, Msg); [all …]
|
H A D | MCAsmParser.h | 131 SmallString<64> Msg; member 212 virtual void Note(SMLoc L, const Twine &Msg, 218 virtual bool Warning(SMLoc L, const Twine &Msg, 226 bool Error(SMLoc L, const Twine &Msg, SMRange Range = std::nullopt); 232 virtual bool printError(SMLoc L, const Twine &Msg, 240 printError(Err.Loc, Twine(Err.Msg), Err.Range); in printPendingErrors() 258 bool TokError(const Twine &Msg, SMRange Range = std::nullopt); 261 bool parseToken(AsmToken::TokenKind T, const Twine &Msg = "unexpected token"); 275 bool check(bool P, const Twine &Msg); 276 bool check(bool P, SMLoc Loc, const Twine &Msg);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DiagnosticInfo.h | 238 const Twine &Msg, 241 LineNum(LineNum), Msg(Msg) {} in DiagnosticInfo() 242 DiagnosticInfoSampleProfile(StringRef FileName, const Twine &Msg, 245 Msg(Msg) {} in DiagnosticInfo() 246 DiagnosticInfoSampleProfile(const Twine &Msg, 248 : DiagnosticInfo(DK_SampleProfile, Severity), Msg(Msg) {} in DiagnosticInfo() 259 const Twine &getMsg() const { return Msg; } in getMsg() 270 const Twine &Msg; variable 276 DiagnosticInfoPGOProfile(const char *FileName, const Twine &Msg, 278 : DiagnosticInfo(DK_PGOProfile, Severity), FileName(FileName), Msg(Msg) {} in DiagnosticInfo() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | Error.cpp | 65 GenericBinaryError::GenericBinaryError(const Twine &Msg) : Msg(Msg.str()) {} in GenericBinaryError() argument 67 GenericBinaryError::GenericBinaryError(const Twine &Msg, in GenericBinaryError() argument 69 : Msg(Msg.str()) { in GenericBinaryError() 74 OS << Msg; in log()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | DelayedDiagnostic.cpp | 30 StringRef Msg, in makeAvailability() argument 42 if (!Msg.empty()) { in makeAvailability() 43 MessageData = new char [Msg.size()]; in makeAvailability() 44 memcpy(MessageData, Msg.data(), Msg.size()); in makeAvailability() 47 DD.AvailabilityData.MessageLen = Msg.size(); in makeAvailability()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | TrustNonnullChecker.cpp | 94 void checkPostObjCMessage(const ObjCMethodCall &Msg, in checkPostObjCMessage() argument 96 const ObjCInterfaceDecl *ID = Msg.getReceiverInterface(); in checkPostObjCMessage() 105 (Msg.getSelector() == SetObjectForKeyedSubscriptSel || in checkPostObjCMessage() 106 Msg.getSelector() == SetObjectForKeySel)) { in checkPostObjCMessage() 107 if (auto L = Msg.getArgSVal(1).getAs<Loc>()) in checkPostObjCMessage() 113 (Msg.getSelector() == ObjectForKeyedSubscriptSel || in checkPostObjCMessage() 114 Msg.getSelector() == ObjectForKeySel)) { in checkPostObjCMessage() 115 SymbolRef ArgS = Msg.getArgSVal(0).getAsSymbol(); in checkPostObjCMessage() 116 SymbolRef RetS = Msg.getReturnValue().getAsSymbol(); in checkPostObjCMessage()
|
H A D | NoReturnFunctionChecker.cpp | 89 void NoReturnFunctionChecker::checkPostObjCMessage(const ObjCMethodCall &Msg, in checkPostObjCMessage() argument 92 if (const ObjCMethodDecl *MD = Msg.getDecl()) { in checkPostObjCMessage() 111 if (!Msg.isInstanceMessage()) in checkPostObjCMessage() 114 const ObjCInterfaceDecl *Receiver = Msg.getReceiverInterface(); in checkPostObjCMessage() 120 Selector Sel = Msg.getSelector(); in checkPostObjCMessage()
|
H A D | ReturnValueChecker.cpp | 86 std::string Msg = in checkPostCall() local 88 C.addTransition(StTrue, C.getNoteTag(Msg, /*IsPrunable=*/true)); in checkPostCall() 95 std::string Msg = formatv("'{0}' returned false, breaking the convention " in checkPostCall() local 98 C.addTransition(State, C.getNoteTag(Msg, /*IsPrunable=*/true)); in checkPostCall()
|
H A D | CXXSelfAssignmentChecker.cpp | 57 SmallString<256> Msg; in checkBeginFunction() local 58 llvm::raw_svector_ostream Out(Msg); in checkBeginFunction() 67 SmallString<256> Msg; in checkBeginFunction() local 68 llvm::raw_svector_ostream Out(Msg); in checkBeginFunction()
|
H A D | CheckPlacementNew.cpp | 118 std::string Msg; in checkPlaceCapacityIsSufficient() local 122 Msg = std::string(llvm::formatv( in checkPlaceCapacityIsSufficient() 130 Msg = std::string(llvm::formatv( in checkPlaceCapacityIsSufficient() 136 Msg = std::string(llvm::formatv( in checkPlaceCapacityIsSufficient() 141 auto R = std::make_unique<PathSensitiveBugReport>(SBT, Msg, N); in checkPlaceCapacityIsSufficient() 157 std::string Msg(llvm::formatv("Storage type is aligned to {0} bytes but " in emitBadAlignReport() local 161 auto R = std::make_unique<PathSensitiveBugReport>(ABT, Msg, N); in emitBadAlignReport()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Error.cpp | 141 : Msg(S.str()), EC(EC) {} in StringError() 144 : Msg(S.str()), EC(EC), PrintMsgOnly(true) {} in StringError() 147 : Msg(S), EC(EC), PrintMsgOnly(PrintMsgOnly) {} in StringError() 151 OS << Msg; in log() 154 if (!Msg.empty()) in log() 155 OS << (" " + Msg); in log() 163 Error createStringError(std::string &&Msg, std::error_code EC) { in createStringError() argument 164 return make_error<StringError>(Msg, EC); in createStringError()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
H A D | LLLexer.h | 69 bool Error(LocTy ErrorLoc, const Twine &Msg) const; 70 bool Error(const Twine &Msg) const { return Error(getLoc(), Msg); } in Error() argument 72 void Warning(LocTy WarningLoc, const Twine &Msg) const; 73 void Warning(const Twine &Msg) const { return Warning(getLoc(), Msg); } in Warning() argument
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | Checker.cpp | 28 StringRef Msg) in CheckerProgramPointTag() argument 29 : SimpleProgramPointTag(CheckerName, Msg) {} in CheckerProgramPointTag() 32 StringRef Msg) in CheckerProgramPointTag() argument 33 : SimpleProgramPointTag(Checker->getCheckerName().getName(), Msg) {} in CheckerProgramPointTag()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Error.h | 54 std::string Msg; in message() local 55 raw_string_ostream OS(Msg); in message() 57 return Msg; in message() 756 inline void cantFail(Error Err, const char *Msg = nullptr) { 758 if (!Msg) 759 Msg = "Failure value returned from cantFail wrapped call"; 763 OS << Msg << "\n" << Err; 764 Msg = Str.c_str(); 766 llvm_unreachable(Msg); 784 T cantFail(Expected<T> ValOrErr, const char *Msg = nullptr) { [all …]
|
H A D | SourceMgr.h | 219 void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind, const Twine &Msg, 225 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg, 242 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg, 296 SMDiagnostic(StringRef filename, SourceMgr::DiagKind Knd, StringRef Msg) in SMDiagnostic() argument 297 : Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Knd), Message(Msg) {} in SMDiagnostic() 301 SourceMgr::DiagKind Kind, StringRef Msg, StringRef LineStr,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | Error.h | 69 GenericBinaryError(const Twine &Msg); 70 GenericBinaryError(const Twine &Msg, object_error ECOverride); 71 const std::string &getMessage() const { return Msg; } in getMessage() 74 std::string Msg;
|
/freebsd/contrib/llvm-project/clang/include/clang/Edit/ |
H A D | Rewriters.h | 25 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, 28 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, 32 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | ObjDumper.cpp | 28 static inline Error createError(const Twine &Msg) { in createError() argument 29 return createStringError(object::object_error::parse_failed, Msg); in createError() 35 WarningHandler = [=](const Twine &Msg) { in ObjDumper() argument 36 if (Warnings.insert(Msg.str()).second) in ObjDumper() 37 reportWarning(createError(Msg), ObjName); in ObjDumper() 48 void ObjDumper::reportUniqueWarning(const Twine &Msg) const { in reportUniqueWarning() 49 cantFail(WarningHandler(Msg), in reportUniqueWarning()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinterInlineAsm.cpp | 316 raw_string_ostream Msg(msg); in EmitInlineAsmStr() local 317 Msg << "invalid operand in inline asm: '" << AsmStr << "'"; in EmitInlineAsmStr() 394 std::string Msg = "inline asm clobber list contains reserved registers: "; in emitInlineAsm() local 397 Msg += LS; in emitInlineAsm() 398 Msg += TRI->getRegAsmName(RR); in emitInlineAsm() 405 LocCookie, Msg, DiagnosticSeverity::DS_Warning)); in emitInlineAsm() 452 raw_string_ostream Msg(msg); in PrintSpecial() local 453 Msg << "Unknown special formatter '" << Code in PrintSpecial() 455 report_fatal_error(Twine(Msg.str())); in PrintSpecial()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonMCChecker.h | 125 void reportError(SMLoc Loc, Twine const &Msg); 126 void reportNote(SMLoc Loc, Twine const &Msg); 127 void reportError(Twine const &Msg); 128 void reportWarning(Twine const &Msg);
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_oncore.c | 327 struct RSM rsm; /* bits extracted from Receiver Status Msg in @@Ea */ 513 static u_char oncore_cmd_Bd[] = { 'B', 'd', 1 }; /* 6/8/12? Almanac Status Msg. */ 516 static u_char oncore_cmd_Bl[] = { 'B', 'l', 1 }; /* VP Satellite Broadcast Data Msg */ 1446 char Msg[120], Msg2[10]; in oncore_receive() local 1451 strlcpy(Msg, ">>>", sizeof(Msg)); in oncore_receive() 1454 strlcat(Msg, Msg2, sizeof(Msg)); in oncore_receive() 1456 oncore_log(instance, LOG_DEBUG, Msg); in oncore_receive() 1458 strlcpy(Msg, ">>>", sizeo in oncore_receive() 1556 char Msg[120], Msg2[10]; oncore_consume() local 1599 char Msg[160]; oncore_get_timestamp() local 1927 char Msg[120], Msg2[10]; oncore_get_timestamp() local 3654 char Msg[160], Msg2[10]; oncore_print_Cb() local [all...] |