Skip to content

Commit 6204197

Browse files
committed
Turn off clang-format on record kind serialization declarations.
We are not following clang-format here. This ensures that git-clang-format doesn't touch these parts of the file.
1 parent edb5d6a commit 6204197

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/Serialization/SILFormat.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ enum class KeyPathComputedComponentIdKindEncoding : uint8_t {
8181
///
8282
/// \sa SIL_INDEX_BLOCK_ID
8383
namespace sil_index_block {
84+
// clang-format off
85+
8486
// These IDs must \em not be renumbered or reordered without incrementing
8587
// the module version.
8688
enum RecordKind {
@@ -111,12 +113,16 @@ namespace sil_index_block {
111113
BCFixed<4>, // record ID
112114
BCArray<BitOffsetField>
113115
>;
116+
117+
// clang-format on
114118
}
115119

116120
/// The record types within the "sil" block.
117121
///
118122
/// \sa SIL_BLOCK_ID
119123
namespace sil_block {
124+
// clang-format off
125+
120126
// These IDs must \em not be renumbered or reordered without incrementing
121127
// the module version.
122128
enum RecordKind : uint8_t {
@@ -566,6 +572,8 @@ namespace sil_block {
566572
ValueIDField, // decl
567573
BCArray<IdentifierIDField> // referenced functions
568574
>;
575+
576+
// clang-format on
569577
}
570578

571579
} // end namespace serialization

0 commit comments

Comments
 (0)