//===- 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 struct DiagWithArguments; template struct DiagWithArguments { typedef Diag type; }; } namespace diag { // Declare all of the diagnostics objects with their appropriate types. #define DIAG(KIND,ID,Category,Options,Text,Signature) \ extern detail::DiagWithArguments::type ID; #include "Diagnostics.def" } } #endif