aboutsummaryrefslogtreecommitdiff
path: root/libcxxabi
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2023-11-27 14:24:37 +0000
committerGitHub <noreply@github.com>2023-11-27 09:24:37 -0500
commitae10baf0a0dff53837c3729b8bde64505f54f7aa (patch)
treee37b7e50a1e3873cde42650a74d022845043f331 /libcxxabi
parent79b03306af5c11d354fa90db8bfd7818cd811ef5 (diff)
downloadllvm-ae10baf0a0dff53837c3729b8bde64505f54f7aa.zip
llvm-ae10baf0a0dff53837c3729b8bde64505f54f7aa.tar.gz
llvm-ae10baf0a0dff53837c3729b8bde64505f54f7aa.tar.bz2
[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.
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/test/test_demangle.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxxabi/test/test_demangle.pass.cpp b/libcxxabi/test/test_demangle.pass.cpp
index 77741a9..ff56d87 100644
--- a/libcxxabi/test/test_demangle.pass.cpp
+++ b/libcxxabi/test/test_demangle.pass.cpp
@@ -32,6 +32,7 @@
// Is long double fp128?
#define LDBL_FP128 (__LDBL_MANT_DIG__ == 113)
+// clang-format off
const char* cases[][2] =
{
{"_Z1A", "A"},
@@ -30175,6 +30176,7 @@ const char* cases[][2] =
{"_Z2f5IPiEvu16__remove_pointerIT_E", "void f5<int*>(__remove_pointer(int*))"},
{"_Z2f5IiEvu14__remove_cvrefIT_E", "void f5<int>(__remove_cvref(int))"},
};
+// clang-format on
const unsigned N = sizeof(cases) / sizeof(cases[0]);