Skip to content

Commit e7bff07

Browse files
committed
fixup! [clang-reorder-fields] Prevent rewriting unsupported cases
1 parent b8481a3 commit e7bff07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/test/clang-reorder-fields/PreprocessorDirectiveAroundFields.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace bar {
77
// This is okay to reorder.
88
struct Foo {
99
#ifdef DEFINE_FIELDS // CHECK: {{^#ifdef DEFINE_FIELDS}}
10-
int y; // CHECK-NEXT: {{^ int y;}}
11-
int x; // CHECK-NEXT: {{^ int x;}}
10+
int x; // CHECK-NEXT: {{^ int y;}}
11+
int y; // CHECK-NEXT: {{^ int x;}}
1212
#endif // CHECK-NEXT: {{^#endif}}
1313
};
1414

0 commit comments

Comments
 (0)