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

source code of clang/lib/InstallAPI/DiagnosticBuilderWrappers.h