Lines Matching refs:Message

137 bool Message::SortBefore(const Message &that) const {  in SortBefore()
158 bool Message::IsFatal() const { in IsFatal()
162 Severity Message::severity() const { in severity()
172 Message &Message::set_severity(Severity severity) { in set_severity()
183 std::string Message::ToString() const { in ToString()
195 void Message::ResolveProvenances(const AllCookedSources &allCooked) { in ResolveProvenances()
202 if (Message * attachment{attachment_.get()}) { in ResolveProvenances()
207 std::optional<ProvenanceRange> Message::GetProvenanceRange( in GetProvenanceRange()
237 void Message::Emit(llvm::raw_ostream &o, const AllCookedSources &allCooked, in Emit()
244 for (const Message *attachment{attachment_.get()}; attachment; in Emit()
255 bool Message::operator==(const Message &that) const { in operator ==()
261 const Message *thatAttachment{that.attachment_.get()}; in operator ==()
262 for (const Message *attachment{attachment_.get()}; attachment; in operator ==()
274 bool Message::Merge(const Message &that) { in Merge()
288 Message &Message::Attach(Message *m) { in Attach()
294 attachment_ = new Message{*attachment_}; in Attach()
301 Message &Message::Attach(std::unique_ptr<Message> &&m) { in Attach()
305 bool Message::AtSameLocation(const Message &that) const { in AtSameLocation()
319 bool Messages::Merge(const Message &msg) { in Merge()
348 for (const Message &m : that.messages_) { in Copy()
349 Message copy{m}; in Copy()
355 for (Message &m : messages_) { in ResolveProvenances()
362 std::vector<const Message *> sorted; in Emit()
367 [](const Message *x, const Message *y) { return x->SortBefore(*y); }); in Emit()
368 const Message *lastMsg{nullptr}; in Emit()
369 for (const Message *msg : sorted) { in Emit()
379 void Messages::AttachTo(Message &msg, std::optional<Severity> severity) { in AttachTo()
380 for (Message &m : messages_) { in AttachTo()
381 Message m2{std::move(m)}; in AttachTo()