2012-04-14 14:01:31 +00:00
|
|
|
//===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2012-08-15 20:02:54 +00:00
|
|
|
///
|
|
|
|
/// \file
|
|
|
|
/// \brief Includes all the separate Diagnostic headers & some related helpers.
|
|
|
|
///
|
2012-04-14 14:01:31 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2015-01-18 16:23:48 +00:00
|
|
|
#ifndef LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
|
|
|
|
#define LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H
|
2012-04-14 14:01:31 +00:00
|
|
|
|
|
|
|
#include "clang/AST/ASTDiagnostic.h"
|
2012-08-15 20:02:54 +00:00
|
|
|
#include "clang/AST/CommentDiagnostic.h"
|
2012-04-14 14:01:31 +00:00
|
|
|
#include "clang/Analysis/AnalysisDiagnostic.h"
|
|
|
|
#include "clang/Driver/DriverDiagnostic.h"
|
|
|
|
#include "clang/Frontend/FrontendDiagnostic.h"
|
|
|
|
#include "clang/Lex/LexDiagnostic.h"
|
|
|
|
#include "clang/Parse/ParseDiagnostic.h"
|
|
|
|
#include "clang/Sema/SemaDiagnostic.h"
|
|
|
|
#include "clang/Serialization/SerializationDiagnostic.h"
|
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
template <size_t SizeOfStr, typename FieldType>
|
|
|
|
class StringSizerHelper {
|
|
|
|
char FIELD_TOO_SMALL[SizeOfStr <= FieldType(~0U) ? 1 : -1];
|
|
|
|
public:
|
|
|
|
enum { Size = SizeOfStr };
|
|
|
|
};
|
|
|
|
} // end namespace clang
|
|
|
|
|
|
|
|
#define STR_SIZE(str, fieldTy) clang::StringSizerHelper<sizeof(str)-1, \
|
|
|
|
fieldTy>::Size
|
|
|
|
|
|
|
|
#endif
|