[libcxx-commits] [libcxx] ec1a764 - [libc++][NFC] Use TEST_HAS_NO_EXCEPTIONS.
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 12 03:22:31 PST 2022
Author: Mark de Wever
Date: 2022-03-12T12:22:25+01:00
New Revision: ec1a7647ee67cd7d865f3621fe66d82bda7ccc15
URL: https://github.com/llvm/llvm-project/commit/ec1a7647ee67cd7d865f3621fe66d82bda7ccc15
DIFF: https://github.com/llvm/llvm-project/commit/ec1a7647ee67cd7d865f3621fe66d82bda7ccc15.diff
LOG: [libc++][NFC] Use TEST_HAS_NO_EXCEPTIONS.
The test should use the already available test macro.
Added:
Modified:
libcxx/test/std/utilities/format/format.functions/format_tests.h
Removed:
################################################################################
diff --git a/libcxx/test/std/utilities/format/format.functions/format_tests.h b/libcxx/test/std/utilities/format/format.functions/format_tests.h
index df9f4f6b454c4..b29f6cb73654d 100644
--- a/libcxx/test/std/utilities/format/format.functions/format_tests.h
+++ b/libcxx/test/std/utilities/format/format.functions/format_tests.h
@@ -122,7 +122,7 @@ struct std::formatter<status, CharT> {
private:
void throw_format_error(const char* s) {
-#ifndef _LIBCPP_NO_EXCEPTIONS
+#ifndef TEST_HAS_NO_EXCEPTIONS
throw std::format_error(s);
#else
(void)s;
More information about the libcxx-commits
mailing list