#include "Diagnostics.h"
#include "mlir/Query/Matcher/ErrorBuilder.h"
namespace mlir::query::matcher::internal {
Diagnostics::ArgStream &
Diagnostics::ArgStream::operator<<(const llvm::Twine &arg) { … }
Diagnostics::ArgStream Diagnostics::addError(SourceRange range,
ErrorType error) { … }
static llvm::StringRef errorTypeToFormatString(ErrorType type) { … }
static void formatErrorString(llvm::StringRef formatString,
llvm::ArrayRef<std::string> args,
llvm::raw_ostream &os) { … }
static void maybeAddLineAndColumn(SourceRange range, llvm::raw_ostream &os) { … }
void Diagnostics::printMessage(
const Diagnostics::ErrorContent::Message &message, const llvm::Twine prefix,
llvm::raw_ostream &os) const { … }
void Diagnostics::printErrorContent(const Diagnostics::ErrorContent &content,
llvm::raw_ostream &os) const { … }
void Diagnostics::print(llvm::raw_ostream &os) const { … }
}