15 #include "llvm/ADT/SmallString.h"
16 #include "llvm/Support/ErrorHandling.h"
17 using namespace clang;
30 default: llvm_unreachable(
31 "Diagnostic not handled during diagnostic buffering!");
36 Warnings.emplace_back(Info.
getLocation(), Buf.str());
39 Remarks.emplace_back(Info.
getLocation(), Buf.str());
const_iterator warn_end() const
const_iterator note_begin() const
const_iterator err_end() const
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) override
DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID)
Issue the message to the client.
const SourceLocation & getLocation() const
Concrete class used by the front-end to report problems and issues.
const_iterator remark_end() const
const_iterator remark_begin() const
const_iterator note_end() const
void FlushDiagnostics(DiagnosticsEngine &Diags) const
const_iterator warn_begin() const
DiagList::const_iterator const_iterator
virtual void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info)
Handle this diagnostic, reporting it to the user or capturing it to a log as needed.
unsigned getCustomDiagID(Level L, const char(&FormatString)[N])
Return an ID for a diagnostic with the specified format string and level.
for(auto typeArg:T->getTypeArgsAsWritten())
Level
The level of the diagnostic, after it has been through mapping.
void FormatDiagnostic(SmallVectorImpl< char > &OutStr) const
Format this diagnostic into a string, substituting the formal arguments into the %0 slots...
const_iterator err_begin() const