1*0fca6ea1SDimitry Andric //===- DiagnosticBuilderWrappers.h -----------------------------*- C++ -*-===// 2*0fca6ea1SDimitry Andric // 3*0fca6ea1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*0fca6ea1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*0fca6ea1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*0fca6ea1SDimitry Andric // 7*0fca6ea1SDimitry Andric //===----------------------------------------------------------------------===// 8*0fca6ea1SDimitry Andric // 9*0fca6ea1SDimitry Andric /// Diagnostic wrappers for TextAPI types for error reporting. 10*0fca6ea1SDimitry Andric // 11*0fca6ea1SDimitry Andric //===----------------------------------------------------------------------===// 12*0fca6ea1SDimitry Andric 13*0fca6ea1SDimitry Andric #ifndef LLVM_CLANG_INSTALLAPI_DIAGNOSTICBUILDER_WRAPPER_H 14*0fca6ea1SDimitry Andric #define LLVM_CLANG_INSTALLAPI_DIAGNOSTICBUILDER_WRAPPER_H 15*0fca6ea1SDimitry Andric 16*0fca6ea1SDimitry Andric #include "clang/Basic/Diagnostic.h" 17*0fca6ea1SDimitry Andric #include "llvm/TextAPI/Architecture.h" 18*0fca6ea1SDimitry Andric #include "llvm/TextAPI/ArchitectureSet.h" 19*0fca6ea1SDimitry Andric #include "llvm/TextAPI/InterfaceFile.h" 20*0fca6ea1SDimitry Andric #include "llvm/TextAPI/Platform.h" 21*0fca6ea1SDimitry Andric 22*0fca6ea1SDimitry Andric namespace llvm { 23*0fca6ea1SDimitry Andric namespace MachO { 24*0fca6ea1SDimitry Andric 25*0fca6ea1SDimitry Andric const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB, 26*0fca6ea1SDimitry Andric const PlatformType &Platform); 27*0fca6ea1SDimitry Andric 28*0fca6ea1SDimitry Andric const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB, 29*0fca6ea1SDimitry Andric const PlatformVersionSet &Platforms); 30*0fca6ea1SDimitry Andric 31*0fca6ea1SDimitry Andric const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB, 32*0fca6ea1SDimitry Andric const Architecture &Arch); 33*0fca6ea1SDimitry Andric 34*0fca6ea1SDimitry Andric const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB, 35*0fca6ea1SDimitry Andric const ArchitectureSet &ArchSet); 36*0fca6ea1SDimitry Andric 37*0fca6ea1SDimitry Andric const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB, 38*0fca6ea1SDimitry Andric const FileType &Type); 39*0fca6ea1SDimitry Andric 40*0fca6ea1SDimitry Andric const clang::DiagnosticBuilder &operator<<(const clang::DiagnosticBuilder &DB, 41*0fca6ea1SDimitry Andric const PackedVersion &Version); 42*0fca6ea1SDimitry Andric 43*0fca6ea1SDimitry Andric const clang::DiagnosticBuilder & 44*0fca6ea1SDimitry Andric operator<<(const clang::DiagnosticBuilder &DB, 45*0fca6ea1SDimitry Andric const StringMapEntry<ArchitectureSet> &LibAttr); 46*0fca6ea1SDimitry Andric 47*0fca6ea1SDimitry Andric } // namespace MachO 48*0fca6ea1SDimitry Andric } // namespace llvm 49*0fca6ea1SDimitry Andric #endif // LLVM_CLANG_INSTALLAPI_DIAGNOSTICBUILDER_WRAPPER_H 50