Skip to content

Commit e2aed58

Browse files
committed
Add a warning about ordering to MacroRoles.def
1 parent a455bb8 commit e2aed58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/Basic/MacroRoles.def

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
// This file defines all of the kinds of macro roles. Clients should define
1414
// either MACRO_ROLE or both ATTACHED_MACRO_ROLE and FREESTANDING_MACRO_ROLE.
1515
//
16+
// The order of the macro roles in this file is significant for the
17+
// serialization of module files. Please do not re-order the entries without
18+
// also bumping the module format version. When introducing new macro roles,
19+
// please add them to the end of the file.
20+
//
1621
//===----------------------------------------------------------------------===//
1722

1823
#ifndef ATTACHED_MACRO_ROLE

0 commit comments

Comments
 (0)