1 //===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// Includes all the separate Diagnostic headers & some related helpers.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
16 #define LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
18 #include "clang/Basic/DiagnosticAST.h"
19 #include "clang/Basic/DiagnosticAnalysis.h"
20 #include "clang/Basic/DiagnosticComment.h"
21 #include "clang/Basic/DiagnosticCrossTU.h"
22 #include "clang/Basic/DiagnosticDriver.h"
23 #include "clang/Basic/DiagnosticFrontend.h"
24 #include "clang/Basic/DiagnosticLex.h"
25 #include "clang/Basic/DiagnosticParse.h"
26 #include "clang/Basic/DiagnosticSema.h"
27 #include "clang/Basic/DiagnosticSerialization.h"
28 #include "clang/Basic/DiagnosticRefactoring.h"
31 template <size_t SizeOfStr, typename FieldType>
32 class StringSizerHelper {
33 static_assert(SizeOfStr <= FieldType(~0U), "Field too small!");
35 enum { Size = SizeOfStr };
37 } // end namespace clang
39 #define STR_SIZE(str, fieldTy) clang::StringSizerHelper<sizeof(str)-1, \