forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #695 from swiftwasm/master
[pull] swiftwasm from master
- Loading branch information
Showing
139 changed files
with
2,726 additions
and
1,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
//===--- DefineDiagnosticMacros.h - Shared Diagnostic Macros ----*- C++ -*-===// | ||
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2020 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This file defines macros shared across diagnostic definition files. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
// Define macros | ||
#ifdef DEFINE_DIAGNOSTIC_MACROS | ||
|
||
#if !(defined(DIAG) || (defined(ERROR) && defined(WARNING) && defined(NOTE) && \ | ||
defined(REMARK))) | ||
#error Must define either DIAG or the set {ERROR,WARNING,NOTE,REMARK} | ||
#endif | ||
|
||
#ifndef ERROR | ||
#define ERROR(ID, Options, Text, Signature) \ | ||
DIAG(ERROR, ID, Options, Text, Signature) | ||
#endif | ||
|
||
#ifndef WARNING | ||
#define WARNING(ID, Options, Text, Signature) \ | ||
DIAG(WARNING, ID, Options, Text, Signature) | ||
#endif | ||
|
||
#ifndef NOTE | ||
#define NOTE(ID, Options, Text, Signature) \ | ||
DIAG(NOTE, ID, Options, Text, Signature) | ||
#endif | ||
|
||
#ifndef REMARK | ||
#define REMARK(ID, Options, Text, Signature) \ | ||
DIAG(REMARK, ID, Options, Text, Signature) | ||
#endif | ||
|
||
#ifndef FIXIT | ||
#define FIXIT(ID, Text, Signature) | ||
#endif | ||
|
||
#undef DEFINE_DIAGNOSTIC_MACROS | ||
#endif | ||
|
||
// Undefine macros | ||
#ifdef UNDEFINE_DIAGNOSTIC_MACROS | ||
|
||
#ifndef DIAG_NO_UNDEF | ||
|
||
#if defined(DIAG) | ||
#undef DIAG | ||
#endif | ||
|
||
#undef REMARK | ||
#undef NOTE | ||
#undef WARNING | ||
#undef ERROR | ||
#undef FIXIT | ||
|
||
#endif | ||
|
||
#undef UNDEFINE_DIAGNOSTIC_MACROS | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.