clang 22.0.0git
AllDiagnostics.h
Go to the documentation of this file.
1//===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- 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/// \file
10/// Includes all the separate Diagnostic headers & some related helpers.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
15#define LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
16
30
31namespace clang {
32template <size_t SizeOfStr, typename FieldType> class StringSizerHelper {
33 static_assert(SizeOfStr <= FieldType(~0U), "Field too small!");
34
35public:
36 enum { Size = SizeOfStr };
37};
38} // end namespace clang
39
40#define STR_SIZE(str, fieldTy) \
41 clang::StringSizerHelper<sizeof(str) - 1, fieldTy>::Size
42
43#endif
The JSON file list parser is used to communicate input to InstallAPI.