clang  14.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 
28 
29 namespace clang {
30 template <size_t SizeOfStr, typename FieldType>
32  static_assert(SizeOfStr <= FieldType(~0U), "Field too small!");
33 public:
34  enum { Size = SizeOfStr };
35 };
36 } // end namespace clang
37 
38 #define STR_SIZE(str, fieldTy) clang::StringSizerHelper<sizeof(str)-1, \
39  fieldTy>::Size
40 
41 #endif
DiagnosticCrossTU.h
DiagnosticRefactoring.h
U
DiagnosticDriver.h
clang::StringSizerHelper
Definition: AllDiagnostics.h:31
DiagnosticSema.h
clang::StringSizerHelper::Size
@ Size
Definition: AllDiagnostics.h:34
DiagnosticParse.h
clang
Definition: CalledOnceCheck.h:17
DiagnosticAnalysis.h
DiagnosticSerialization.h
DiagnosticAST.h
DiagnosticLex.h
DiagnosticFrontend.h
DiagnosticComment.h