Skip to content

Commit a89e6f6

Browse files
Minor formatting fix in 'generate_feature_test_macro_components' (#148889)
Fixes a small annoyance where generated files have a format which does not agree with the one checked during `code-formatter` in CI. For example `libcxx-generate-files` updates (among possibly others) the `*.version.compile.pass.cpp` files. Previously these files contained an extra newline which would fail the code format check. If you update that file manually to remove just that extra trailing newline, then `check-generated-output` will fail due to the file's contents differing from what's expected. Contains a number of changes: one actual change to the py script, and lots of resulting whitespace changes. My process for this was: * Update `generate_feature_test_macro_components`: just remove an extra newline which causes the code-format step to fail * Run `$NINJA libcxx-generate-files` to rebuild all these `.version.pass.cpp`'s * Watch this PR's CI run to ensure things pass (i.e. this didn't break things worse)
1 parent b8b99d8 commit a89e6f6

File tree

76 files changed

+0
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+0
-76
lines changed

libcxx/test/std/language.support/support.limits/support.limits.general/algorithm.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,4 +459,3 @@
459459
#endif // TEST_STD_VER > 23
460460

461461
// clang-format on
462-

libcxx/test/std/language.support/support.limits/support.limits.general/any.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,3 @@
6969
#endif // TEST_STD_VER > 23
7070

7171
// clang-format on
72-

libcxx/test/std/language.support/support.limits/support.limits.general/array.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,3 @@
171171
#endif // TEST_STD_VER > 23
172172

173173
// clang-format on
174-

libcxx/test/std/language.support/support.limits/support.limits.general/atomic.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,4 +420,3 @@
420420
#endif // TEST_STD_VER > 23
421421

422422
// clang-format on
423-

libcxx/test/std/language.support/support.limits/support.limits.general/barrier.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@
8686
#endif // TEST_STD_VER > 23
8787

8888
// clang-format on
89-

libcxx/test/std/language.support/support.limits/support.limits.general/bit.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,3 @@
195195
#endif // TEST_STD_VER > 23
196196

197197
// clang-format on
198-

libcxx/test/std/language.support/support.limits/support.limits.general/bitset.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,3 @@
9090
#endif // TEST_STD_VER > 23
9191

9292
// clang-format on
93-

libcxx/test/std/language.support/support.limits/support.limits.general/charconv.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,3 @@
123123
#endif // TEST_STD_VER > 23
124124

125125
// clang-format on
126-

libcxx/test/std/language.support/support.limits/support.limits.general/chrono.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,3 @@
108108
#endif // TEST_STD_VER > 23
109109

110110
// clang-format on
111-

libcxx/test/std/language.support/support.limits/support.limits.general/cmath.version.compile.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,3 @@
204204
#endif // TEST_STD_VER > 23
205205

206206
// clang-format on
207-

0 commit comments

Comments
 (0)