]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/AllDiagnostics.h
MFC r234353:
[FreeBSD/stable/9.git] / contrib / llvm / tools / clang / include / clang / Basic / AllDiagnostics.h
1 //===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //  This file includes all the separate Diagnostic headers & some related
11 //  helpers.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_CLANG_ALL_DIAGNOSTICS_H
16 #define LLVM_CLANG_ALL_DIAGNOSTICS_H
17
18 #include "clang/AST/ASTDiagnostic.h"
19 #include "clang/Analysis/AnalysisDiagnostic.h"
20 #include "clang/Driver/DriverDiagnostic.h"
21 #include "clang/Frontend/FrontendDiagnostic.h"
22 #include "clang/Lex/LexDiagnostic.h"
23 #include "clang/Parse/ParseDiagnostic.h"
24 #include "clang/Sema/SemaDiagnostic.h"
25 #include "clang/Serialization/SerializationDiagnostic.h"
26
27 namespace clang {
28 template <size_t SizeOfStr, typename FieldType>
29 class StringSizerHelper {
30   char FIELD_TOO_SMALL[SizeOfStr <= FieldType(~0U) ? 1 : -1];
31 public:
32   enum { Size = SizeOfStr };
33 };
34 } // end namespace clang 
35
36 #define STR_SIZE(str, fieldTy) clang::StringSizerHelper<sizeof(str)-1, \
37                                                         fieldTy>::Size 
38
39 #endif