Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:36:48

0001 //===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 ///
0009 /// \file
0010 /// Includes all the separate Diagnostic headers & some related helpers.
0011 ///
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
0015 #define LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
0016 
0017 #include "clang/Basic/DiagnosticAST.h"
0018 #include "clang/Basic/DiagnosticAnalysis.h"
0019 #include "clang/Basic/DiagnosticComment.h"
0020 #include "clang/Basic/DiagnosticCrossTU.h"
0021 #include "clang/Basic/DiagnosticDriver.h"
0022 #include "clang/Basic/DiagnosticFrontend.h"
0023 #include "clang/Basic/DiagnosticInstallAPI.h"
0024 #include "clang/Basic/DiagnosticLex.h"
0025 #include "clang/Basic/DiagnosticParse.h"
0026 #include "clang/Basic/DiagnosticSema.h"
0027 #include "clang/Basic/DiagnosticSerialization.h"
0028 #include "clang/Basic/DiagnosticRefactoring.h"
0029 
0030 namespace clang {
0031 template <size_t SizeOfStr, typename FieldType>
0032 class StringSizerHelper {
0033   static_assert(SizeOfStr <= FieldType(~0U), "Field too small!");
0034 public:
0035   enum { Size = SizeOfStr };
0036 };
0037 } // end namespace clang
0038 
0039 #define STR_SIZE(str, fieldTy) clang::StringSizerHelper<sizeof(str)-1, \
0040                                                         fieldTy>::Size
0041 
0042 #endif