| /openbsd-src/gnu/llvm/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() [all …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/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);
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/games/sail/ |
| H A D | pl_3.c | 107 Msg("'Avast there! Hold your fire.'"); in acceptcombat() 112 Msg("Belay that! Hold your fire."); in acceptcombat() 128 Msg("Raking the %s!", closest->shipname); in acceptcombat() 130 Msg("Stern Rake! %s splintering!", in acceptcombat() 194 Msg("Damage inflicted on the %s:", closest->shipname); in acceptcombat() 195 Msg("\t%d HULL, %d GUNS, %d CREW, %d RIGGING", in acceptcombat() 206 Msg("Unable to fire %s broadside", r ? "right" : "left"); in acceptcombat() 231 Msg("Attempt succeeds!"); in grapungrap() 234 Msg("Attempt fails."); in grapungrap() 242 Msg("Attempt succeeds!"); in grapungrap() [all …]
|
| H A D | pl_1.c | 65 Msg("It looks like you've had it!"); in leave() 70 Msg("Your ship was captured."); in leave() 73 Msg("Hurricane! All ships destroyed."); in leave() 76 Msg("The driver died."); in leave() 79 Msg("Synchronization error."); in leave() 82 Msg("A funny thing happened (%d).", conditions); in leave()
|
| H A D | pl_5.c | 56 Msg("Unable to move"); in acceptmove() 77 Msg("Ship can't turn that fast."); in acceptmove() 104 Msg("Can't move that fast."); in acceptmove() 116 Msg("Input error."); in acceptmove() 122 Msg("Movement error."); in acceptmove() 126 Msg("No hands to set full sails."); in acceptmove() 134 Msg("No hands to set full sails."); in acceptmove() 142 Msg("Helm: %s.", movebuf); in acceptmove() 221 Msg("Sending all crew sections."); in parties() 247 Msg("Sending no crew sections."); in parties()
|
| H A D | pl_2.c | 59 Msg("%s", version); in play() 77 Msg("'Hands to stations!'"); in play() 93 Msg("Broadsides unloaded"); in play() 96 Msg("Type 'Q' to quit"); in play() 108 Msg("No more ships left."); in play()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineObjC.cpp | 151 CallEventRef<ObjCMethodCall> Msg = in VisitObjCMessage() local 183 if (Msg->isInstanceMessage()) { in VisitObjCMessage() 184 SVal recVal = Msg->getReceiverSVal(); in VisitObjCMessage() 208 *Msg, *this); in VisitObjCMessage() 210 finishArgumentConstruction(Dst, I, *Msg); in VisitObjCMessage() 232 *Msg, *this); in VisitObjCMessage() 235 *Msg, *this); in VisitObjCMessage() 245 CallEventRef<ObjCMethodCall> UpdatedMsg = Msg.cloneWithState(State); in VisitObjCMessage() 274 finishArgumentConstruction(dstArgCleanup, I, *Msg); in VisitObjCMessage() 278 *Msg, *this); in VisitObjCMessage() [all …]
|
| 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()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | TrustNonnullChecker.cpp | 95 void checkPostObjCMessage(const ObjCMethodCall &Msg, in checkPostObjCMessage() argument 97 const ObjCInterfaceDecl *ID = Msg.getReceiverInterface(); in checkPostObjCMessage() 106 (Msg.getSelector() == SetObjectForKeyedSubscriptSel || in checkPostObjCMessage() 107 Msg.getSelector() == SetObjectForKeySel)) { in checkPostObjCMessage() 108 if (auto L = Msg.getArgSVal(1).getAs<Loc>()) in checkPostObjCMessage() 114 (Msg.getSelector() == ObjectForKeyedSubscriptSel || in checkPostObjCMessage() 115 Msg.getSelector() == ObjectForKeySel)) { in checkPostObjCMessage() 116 SymbolRef ArgS = Msg.getArgSVal(0).getAsSymbol(); in checkPostObjCMessage() 117 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 | 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()
|
| /openbsd-src/gnu/llvm/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
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | Error.cpp | 122 : Msg(S.str()), EC(EC) {} in StringError() 125 : Msg(S.str()), EC(EC), PrintMsgOnly(true) {} in StringError() 129 OS << Msg; in log() 132 if (!Msg.empty()) in log() 133 OS << (" " + Msg); in log() 141 Error createStringError(std::error_code EC, char const *Msg) { in createStringError() argument 142 return make_error<StringError>(Msg, EC); in createStringError()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-exegesis/lib/ |
| H A D | Error.h | 29 ClusteringError(const Twine &S) : Msg(S.str()) {} in ClusteringError() 36 std::string Msg; 44 SnippetCrash(const Twine &S) : Msg(S.str()) {} in SnippetCrash() 51 std::string Msg;
|
| /openbsd-src/gnu/llvm/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;
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | Error.h | 56 std::string Msg; in message() local 57 raw_string_ostream OS(Msg); in message() 745 inline void cantFail(Error Err, const char *Msg = nullptr) { 747 if (!Msg) 748 Msg = "Failure value returned from cantFail wrapped call"; 752 OS << Msg << "\n" << Err; 753 Msg = OS.str().c_str(); 755 llvm_unreachable(Msg); 773 T cantFail(Expected<T> ValOrErr, const char *Msg = nullptr) { 777 if (!Msg) [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-profgen/ |
| H A D | llvm-profgen.cpp | 89 std::string Msg = in validateCommandLine() local 95 exitWithError(Msg); in validateCommandLine() 100 std::string Msg = "Input perf file(" + File.str() + ") doesn't exist."; in validateCommandLine() local 101 exitWithError(Msg); in validateCommandLine() 112 std::string Msg = "Input binary(" + BinaryPath + ") doesn't exist."; in validateCommandLine() local 113 exitWithError(Msg); in validateCommandLine()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/ |
| H A D | ObjDumper.cpp | 26 static inline Error createError(const Twine &Msg) { in createError() argument 27 return createStringError(object::object_error::parse_failed, Msg); in createError() 33 WarningHandler = [=](const Twine &Msg) { in ObjDumper() argument 34 if (Warnings.insert(Msg.str()).second) in ObjDumper() 35 reportWarning(createError(Msg), ObjName); in ObjDumper() 46 void ObjDumper::reportUniqueWarning(const Twine &Msg) const { in reportUniqueWarning() 47 cantFail(WarningHandler(Msg), in reportUniqueWarning()
|