Files
swift-mirror/include/swift/AST/Diagnostics.h
Ted Kremenek 219b7bd430 Move LLVM.h to libBasic.
Swift SVN r2550
2012-08-03 23:54:29 +00:00

43 lines
1.3 KiB
C++

//===- Diagnostics.h - Diagnostic Definitions -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines all of the diagnostics emitted by Swift.
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_DIAGNOSTICS_H
#define SWIFT_DIAGNOSTICS_H
#include "swift/Basic/LLVM.h"
#include "swift/AST/DiagnosticEngine.h"
namespace swift {
namespace detail {
template<typename T>
struct DiagWithArguments;
template<typename ...ArgTypes>
struct DiagWithArguments<void(ArgTypes...)> {
typedef Diag<ArgTypes...> type;
};
}
namespace diag {
// Declare all of the diagnostics objects with their appropriate types.
#define DIAG(KIND,ID,Category,Options,Text,Signature) \
extern detail::DiagWithArguments<void Signature>::type ID;
#include "Diagnostics.def"
}
}
#endif