//===- Nanobind.h - Trampoline header with ignored warnings ---------------===// // // 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 // //===----------------------------------------------------------------------===// // This file is a trampoline for the nanobind headers while disabling warnings // reported by the LLVM/MLIR build. This file avoids adding complexity build // system side. //===----------------------------------------------------------------------===// #ifndef MLIR_BINDINGS_PYTHON_NANOBIND_H #define MLIR_BINDINGS_PYTHON_NANOBIND_H #if defined(__clang__) || defined(__GNUC__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wzero-length-array" #pragma GCC diagnostic ignored "-Wcast-qual" #pragma GCC diagnostic ignored "-Wnested-anon-types" #pragma GCC diagnostic ignored "-Wc++98-compat-extra-semi" #pragma GCC diagnostic ignored "-Wcovered-switch-default" #endif #include #include #include #include #include #include #include #include #include #include #include #if defined(__clang__) || defined(__GNUC__) #pragma GCC diagnostic pop #endif #endif // MLIR_BINDINGS_PYTHON_NANOBIND_H