mirror of
https://github.com/fmtlib/fmt.git
synced 2026-08-03 20:14:20 +02:00
Annotate FMT_USE_RTTI #endif directives
Add trailing "// FMT_USE_RTTI" comments to the matching #endif lines to make the conditional-compilation blocks easier to follow.
This commit is contained in:
+3
-3
@@ -429,7 +429,7 @@ TEST(std_test, exception) {
|
||||
} catch (const std::exception& ex) {
|
||||
EXPECT_EQ("level 1: level 2: level 3", fmt::format("{}", ex));
|
||||
}
|
||||
#endif
|
||||
#endif // FMT_USE_RTTI
|
||||
}
|
||||
|
||||
TEST(std_test, exception_ptr) {
|
||||
@@ -462,7 +462,7 @@ TEST(std_test, exception_ptr) {
|
||||
p3 = std::current_exception();
|
||||
}
|
||||
EXPECT_EQ(fmt::format("{}", p3), "outer: inner");
|
||||
#endif
|
||||
#endif // FMT_USE_RTTI
|
||||
}
|
||||
|
||||
#if FMT_USE_RTTI
|
||||
@@ -470,7 +470,7 @@ TEST(std_test, type_info) {
|
||||
EXPECT_EQ(fmt::format("{}", typeid(std::runtime_error)),
|
||||
"std::runtime_error");
|
||||
}
|
||||
#endif
|
||||
#endif // FMT_USE_RTTI
|
||||
|
||||
#if FMT_USE_BITINT
|
||||
FMT_PRAGMA_CLANG(diagnostic ignored "-Wbit-int-extension")
|
||||
|
||||
Reference in New Issue
Block a user