| /llvm-project-15.0.7/clang-tools-extra/clangd/index/remote/marshalling/ |
| H A D | Marshalling.cpp | 96 if (Message->limit()) in fromProtobuf() 119 if (Message->has_filter()) in fromProtobuf() 123 if (Message->limit()) in fromProtobuf() 124 Req.Limit = Message->limit(); in fromProtobuf() 136 if (!Message->has_predicate()) in fromProtobuf() 139 if (Message->limit()) in fromProtobuf() 145 if (!Message.has_info() || !Message.has_canonical_declaration()) in fromProtobuf() 153 Result.Name = Message.name(); in fromProtobuf() 172 Result.Type = Message.type(); in fromProtobuf() 184 if (!Message.has_location()) in fromProtobuf() [all …]
|
| H A D | Marshalling.h | 41 llvm::Expected<clangd::Symbol> fromProtobuf(const Symbol &Message); 42 llvm::Expected<clangd::Ref> fromProtobuf(const Ref &Message); 44 fromProtobuf(const Relation &Message); 47 fromProtobuf(const LookupRequest *Message); 49 fromProtobuf(const FuzzyFindRequest *Message); 50 llvm::Expected<clangd::RefsRequest> fromProtobuf(const RefsRequest *Message); 52 fromProtobuf(const RelationsRequest *Message); 80 clangd::SymbolLocation::Position fromProtobuf(const Position &Message); 82 clang::index::SymbolInfo fromProtobuf(const SymbolInfo &Message); 85 fromProtobuf(const SymbolLocation &Message); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/ |
| H A D | ClangTidyDiagnosticConsumerTest.cpp | 73 EXPECT_EQ("DiagWithNoLoc", Errors[0].Message.Message); in TEST() 74 EXPECT_EQ("type specifier", Errors[1].Message.Message); in TEST() 75 EXPECT_EQ("variable", Errors[2].Message.Message); in TEST() 82 EXPECT_EQ("highlight range", Errors[0].Message.Message); in TEST() 87 EXPECT_EQ(4ul, Errors[0].Message.FileOffset); in TEST() 101 EXPECT_EQ("invalid->invalid", Errors[0].Message.Message); in TEST() 102 EXPECT_TRUE(Errors[0].Message.Ranges.empty()); in TEST() 104 EXPECT_EQ("invalid->valid", Errors[1].Message.Message); in TEST() 105 EXPECT_TRUE(Errors[1].Message.Ranges.empty()); in TEST() 107 EXPECT_EQ("valid->invalid", Errors[2].Message.Message); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | DiagnosticsYamlTest.cpp | 28 DiagMessage.Message = Message; in makeMessage() 178 EXPECT_EQ("message #1", D1.Message.Message); in TEST() 179 EXPECT_EQ(55u, D1.Message.FileOffset); in TEST() 187 EXPECT_TRUE(D1.Message.Ranges.empty()); in TEST() 191 EXPECT_EQ("message #2", D2.Message.Message); in TEST() 192 EXPECT_EQ(60u, D2.Message.FileOffset); in TEST() 200 EXPECT_EQ(1u, D2.Message.Ranges.size()); in TEST() 207 EXPECT_EQ("message #3", D3.Message.Message); in TEST() 208 EXPECT_EQ(72u, D3.Message.FileOffset); in TEST() 211 EXPECT_EQ("Note1", D3.Notes[0].Message); in TEST() [all …]
|
| H A D | CommentHandlerTest.cpp | 15 Comment(const std::string &Message, unsigned Line, unsigned Col) in Comment() 16 : Message(Message), Line(Line), Col(Col) { } in Comment() 18 std::string Message; member 105 << Current->Message << "\" at line " << Current->Line << ", column " in ~CommentVerifier() 110 void Match(const char *Message, unsigned Line, unsigned Col) { in Match() argument 111 EXPECT_TRUE(Current != End) << "Comment " << Message << " not found"; in Match() 115 EXPECT_TRUE(C.Message == Message && C.Line == Line && C.Col == Col) in Match() 116 << "Expected comment \"" << Message in Match() 118 << "\nActual comment \"" << C.Message in Match()
|
| /llvm-project-15.0.7/flang/include/flang/Parser/ |
| H A D | message.h | 179 class Message : public common::ReferenceCounted<Message> { 183 Message(const Message &) = default; 184 Message(Message &&) = default; 185 Message &operator=(const Message &) = default; 186 Message &operator=(Message &&) = default; 213 void SetContext(Message *c) { in SetContext() 217 Message &Attach(Message *); 218 Message &Attach(std::unique_ptr<Message> &&); 240 bool Merge(const Message &); 274 bool Merge(const Message &); [all …]
|
| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | message.cpp | 137 bool Message::SortBefore(const Message &that) const { in SortBefore() 158 bool Message::IsFatal() const { in IsFatal() 172 Message &Message::set_severity(Severity severity) { in set_severity() 255 bool Message::operator==(const Message &that) const { in operator ==() 274 bool Message::Merge(const Message &that) { in Merge() 288 Message &Message::Attach(Message *m) { in Attach() 301 Message &Message::Attach(std::unique_ptr<Message> &&m) { in Attach() 305 bool Message::AtSameLocation(const Message &that) const { in AtSameLocation() 349 Message copy{m}; in Copy() 367 [](const Message *x, const Message *y) { return x->SortBefore(*y); }); in Emit() [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/ |
| H A D | gtest-message.h | 94 class GTEST_API_ Message { 102 Message(); 105 Message(const Message& msg) : ss_(new ::std::stringstream) { // NOLINT in Message() function 116 inline Message& operator <<(const T& val) { 165 Message& operator <<(BasicNarrowIoManip val) { 171 Message& operator <<(bool b) { 177 Message& operator <<(const wchar_t* wide_c_str); 178 Message& operator <<(wchar_t* wide_c_str); 183 Message& operator <<(const ::std::wstring& wstr); 198 void operator=(const Message&); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/support/ |
| H A D | Logger.cpp | 32 const llvm::formatv_object_base &Message) { in logImpl() argument 34 L->log(Level, Fmt, Message); in logImpl() 38 llvm::errs() << Message << "\n"; in logImpl() 51 const llvm::formatv_object_base &Message) { in log() argument 55 trace::log(Message); in log() 58 Timestamp, Message); in log() 66 std::string Message; member in clang::clangd::__anonc2f525170211::SimpleStringError 69 SimpleStringError(std::error_code EC, std::string &&Message) in SimpleStringError() argument 70 : EC(EC), Message(std::move(Message)) {} in SimpleStringError() 71 void log(llvm::raw_ostream &OS) const override { OS << Message; } in log() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | objc-asm-attribute-test.m | 20 __attribute__((objc_runtime_name("MySecretNamespace.Message"))) 21 @interface Message <Protocol, Protocol2> { interface 25 @property(retain) Message *msgProp; 26 @property(retain) Message<Protocol3> *msgProtoProp; 31 @implementation Message implementation 58 // CHECK: @"OBJC_IVAR_$_MySecretNamespace.Message.MyIVAR" ={{.*}} global i64 0 59 // CHECK: @"OBJC_CLASS_$_MySecretNamespace.Message" ={{.*}} global %struct._class_t 60 // CHECK: @"OBJC_METACLASS_$_MySecretNamespace.Message" ={{.*}} global %struct._class_t 62 // CHECK: private unnamed_addr constant [42 x i8] c"T@\22MySecretNamespace.Message\22,&,V_msgProp\0… 67 // CHECK: define internal i8* @"\01-[Message MyMethod]" [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Core/ |
| H A D | Diagnostic.cpp | 21 DiagnosticMessage::DiagnosticMessage(llvm::StringRef Message) in DiagnosticMessage() argument 22 : Message(Message), FileOffset(0) {} in DiagnosticMessage() 24 DiagnosticMessage::DiagnosticMessage(llvm::StringRef Message, in DiagnosticMessage() argument 27 : Message(Message), FileOffset(0) { in DiagnosticMessage() 54 const DiagnosticMessage &Message, in Diagnostic() argument 57 : DiagnosticName(DiagnosticName), Message(Message), Notes(Notes), in Diagnostic() 61 if (!D.Message.Fix.empty()) in selectFirstFix() 62 return &D.Message.Fix; in selectFirstFix()
|
| /llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/ |
| H A D | options.cpp | 16 static char Message[1024]; variable 20 vsprintf(Message + strlen(Message), Format, Args); in MessageRecorder() 25 Message[0] = '\0'; in TEST() 30 EXPECT_EQ('\0', Message[0]); in TEST() 37 Message[0] = '\0'; in RunErrorTest() 39 EXPECT_NE('\0', Message[0]) in RunErrorTest() 41 EXPECT_NE(nullptr, strstr(Message, ErrorNeedle)) in RunErrorTest() 44 << "\". Error was: \"" << Message << "\"."; in RunErrorTest()
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | ExecutionDriver.cpp | 145 std::string Message; in initializeExecutionEnvironment() local 165 getToolName(), Message, CCBinary, &ToolArgv, &CCToolArgv); in initializeExecutionEnvironment() 184 getToolName(), Message, CCBinary, &ToolArgv, &CCToolArgv, in initializeExecutionEnvironment() 193 getToolName(), Message, CustomCompileCommand); in initializeExecutionEnvironment() 197 getToolName(), Message, CustomExecCommand); in initializeExecutionEnvironment() 201 errs() << Message; in initializeExecutionEnvironment() 203 outs() << Message; in initializeExecutionEnvironment() 231 getToolName(), Message, CustomExecCommand); in initializeExecutionEnvironment() 239 outs() << Message << "\nExiting.\n"; in initializeExecutionEnvironment() 243 cc = CC::create(getToolName(), Message, CCBinary, &CCToolArgv); in initializeExecutionEnvironment() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyDiagnosticConsumer.cpp | 64 Message = Message.substr(0, Message.size() - CheckNameInMessage.size()); in emitDiagnosticMessage() 97 assert(Error.Message.Message.empty() && "Overwriting a diagnostic message"); in emitDiagnosticMessage() 98 Error.Message = TidyMessage; in emitDiagnosticMessage() 146 assert(!Error.Message.Message.empty() && "Message has not been set"); in endDiagnostic() 201 return diag(Error.DiagnosticName, Loc, Error.Message.Message, in diag() 206 StringRef Message, in configurationDiag() argument 327 return &Diagnostic.Message.Fix; in getFixIt() 418 SmallString<100> Message; in HandleDiagnostic() local 419 Info.FormatDiagnostic(Message); in HandleDiagnostic() 713 M1.Message) < in operator ()() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | objc-asm-attribute-neg-test.m | 16 __attribute__((objc_runtime_name("MySecretNamespace.Message"))) 17 @interface Message <Protocol> { interface in objc_runtime_name 18 __attribute__((objc_runtime_name("MySecretNamespace.Message"))) // expected-error {{'objc_runtime_n… 21 __attribute__((objc_runtime_name("MySecretNamespace.Message"))) 24 - (int) getMyProperty __attribute__((objc_runtime_name("MySecretNamespace.Message"))); // expected-… argument 26 - (void) setMyProperty : (int) arg __attribute__((objc_runtime_name("MySecretNamespace.Message")));… argument 36 @implementation Message 38 - (id) MyMethod __attribute__((objc_runtime_name("MySecretNamespace.Message"))) { argument 49 __attribute__((objc_runtime_name("MySecretNamespace.Message")))
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/xpc/ |
| H A D | XPCTransport.cpp | 23 std::string Message; in encodeError() local 27 Message = L.Message; in encodeError() 31 Message = toString(std::move(Unhandled)); in encodeError() 34 {"message", std::move(Message)}, in encodeError() 94 bool handleMessage(json::Value Message, MessageHandler &Handler); 95 void sendMessage(json::Value Message) { in sendMessage() argument 96 xpc_object_t response = jsonToXpc(Message); in sendMessage() 106 bool XPCTransport::handleMessage(json::Value Message, MessageHandler &Handler) { in handleMessage() argument 108 auto *Object = Message.getAsObject(); in handleMessage() 110 elog("Not a JSON-RPC 2.0 message: {0:2}", Message); in handleMessage() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | IdDependentBackwardBranchCheck.h | 30 const llvm::Twine &Message) in IdDependencyRecord() 32 Message(Message.str()) {} in IdDependencyRecord() 34 const llvm::Twine &Message) in IdDependencyRecord() 36 Message(Message.str()) {} in IdDependencyRecord() 41 std::string Message; member
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 447 llvm::raw_svector_ostream Message(MessageStorage); in emitSingleMacroExpansion() local 451 Message << "expanded from here"; in emitSingleMacroExpansion() 585 llvm::raw_svector_ostream Message(MessageStorage); in emitMacroExpansions() local 589 emitBasicNote(Message.str()); in emitMacroExpansions() 603 llvm::raw_svector_ostream Message(MessageStorage); in emitIncludeLocation() local 606 emitNote(Loc, Message.str()); in emitIncludeLocation() 614 llvm::raw_svector_ostream Message(MessageStorage); in emitImportLocation() local 615 Message << "in module '" << ModuleName; in emitImportLocation() 619 Message << ":"; in emitImportLocation() 620 emitNote(Loc, Message.str()); in emitImportLocation() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | SymbolRemappingReader.h | 72 SymbolRemappingParseError(StringRef File, int64_t Line, const Twine &Message) in SymbolRemappingParseError() argument 73 : File(File), Line(Line), Message(Message.str()) {} in SymbolRemappingParseError() 76 OS << File << ':' << Line << ": " << Message; in log() 84 StringRef getMessage() const { return Message; } in getMessage() 91 std::string Message; variable
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | SuperSelfCheck.cpp | 88 const auto *Message = Result.Nodes.getNodeAs<ObjCMessageExpr>("message"); in check() local 90 auto Diag = diag(Message->getExprLoc(), "suspicious invocation of %0 in " in check() 93 << Message->getMethodDecl(); in check() 95 SourceLocation ReceiverLoc = Message->getReceiverRange().getBegin(); in check() 99 SourceLocation SelectorLoc = Message->getSelectorStartLoc(); in check() 103 Diag << FixItHint::CreateReplacement(Message->getSourceRange(), in check()
|
| /llvm-project-15.0.7/bolt/lib/Utils/ |
| H A D | Utils.cpp | 22 void report_error(StringRef Message, std::error_code EC) { in report_error() argument 24 errs() << "BOLT-ERROR: '" << Message << "': " << EC.message() << ".\n"; in report_error() 28 void report_error(StringRef Message, Error E) { in report_error() argument 30 errs() << "BOLT-ERROR: '" << Message << "': " << toString(std::move(E)) in report_error() 35 void check_error(std::error_code EC, StringRef Message) { in check_error() argument 38 report_error(Message, EC); in check_error() 41 void check_error(Error E, Twine Message) { in check_error() argument 45 llvm::errs() << "BOLT-ERROR: '" << Message << "': " << EIB.message() in check_error()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_utils.cpp | 46 char Message[256]; in dieWithMessage() local 49 internal_memcpy(Message, ScudoError, PrefixSize); in dieWithMessage() 50 VSNPrintf(Message + PrefixSize, sizeof(Message) - PrefixSize, Format, Args); in dieWithMessage() 52 LogMessageOnPrintf(Message); in dieWithMessage() 54 SetAbortMessage(Message); in dieWithMessage() 55 RawWrite(Message); in dieWithMessage()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | JSONTransport.cpp | 23 std::string Message; in encodeError() local 37 Message = "Request cancelled"; in encodeError() 43 Message = L.Message; in encodeError() 47 Message = llvm::toString(std::move(Unhandled)); in encodeError() 50 {"message", std::move(Message)}, in encodeError() 135 void sendMessage(llvm::json::Value Message) { in sendMessage() argument 138 OS << llvm::formatv(Pretty ? "{0:2}" : "{0}", Message); in sendMessage() 161 bool JSONTransport::handleMessage(llvm::json::Value Message, in handleMessage() argument 164 auto *Object = Message.getAsObject(); in handleMessage() 167 elog("Not a JSON-RPC 2.0 message: {0:2}", Message); in handleMessage() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Remarks/ |
| H A D | YAMLRemarkParser.h | 33 YAMLParseError(StringRef Message, SourceMgr &SM, yaml::Stream &Stream, 36 YAMLParseError(StringRef Message) : Message(std::string(Message)) {} in YAMLParseError() argument 38 void log(raw_ostream &OS) const override { OS << Message; } in log() 44 std::string Message; 79 Error error(StringRef Message, yaml::Node &Node);
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | report.cpp | 20 ScopedErrorReport() : Message() { Message.append("Scudo ERROR: "); } in ScopedErrorReport() 24 Message.append(Format, Args); in append() 28 outputRaw(Message.data()); in ~ScopedErrorReport() 29 setAbortMessage(Message.data()); in ~ScopedErrorReport() 34 ScopedString Message; member in scudo::ScopedErrorReport 53 void NORETURN reportError(const char *Message) { in reportError() argument 55 Report.append("%s\n", Message); in reportError()
|