Skip to content

Commit ae10baf

Browse files
authored
[libcxxabi][test][NFC] Turn off clang-format for demangler test-case array (#73503)
Adding test-cases to the `cases` array causes `git clang-format` to split the strings of many of the existing test-cases, making them harder to read/work with in most cases. This patch disables `clang-format` for the `cases` array so it doesn't catch anyone off-guard in the future.
1 parent 79b0330 commit ae10baf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxxabi/test/test_demangle.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
// Is long double fp128?
3333
#define LDBL_FP128 (__LDBL_MANT_DIG__ == 113)
3434

35+
// clang-format off
3536
const char* cases[][2] =
3637
{
3738
{"_Z1A", "A"},
@@ -30175,6 +30176,7 @@ const char* cases[][2] =
3017530176
{"_Z2f5IPiEvu16__remove_pointerIT_E", "void f5<int*>(__remove_pointer(int*))"},
3017630177
{"_Z2f5IiEvu14__remove_cvrefIT_E", "void f5<int>(__remove_cvref(int))"},
3017730178
};
30179+
// clang-format on
3017830180

3017930181
const unsigned N = sizeof(cases) / sizeof(cases[0]);
3018030182

0 commit comments

Comments
 (0)