//===--- Diagnostics.h - Helper class for error diagnostics -----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Diagnostics class to manage error messages. Implementation shares similarity // to clang-query Diagnostics. // //===----------------------------------------------------------------------===// #ifndef MLIR_TOOLS_MLIRQUERY_MATCHER_DIAGNOSTICS_H #define MLIR_TOOLS_MLIRQUERY_MATCHER_DIAGNOSTICS_H #include "mlir/Query/Matcher/ErrorBuilder.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/raw_ostream.h" #include <string> #include <vector> namespace mlir::query::matcher::internal { // Diagnostics class to manage error messages. class Diagnostics { … }; } // namespace mlir::query::matcher::internal #endif // MLIR_TOOLS_MLIRQUERY_MATCHER_DIAGNOSTICS_H