[all-commits] [llvm/llvm-project] e477e5: [libc] Make test macros suppress the -Wdangling-el...
Roland McGrath via All-commits
all-commits at lists.llvm.org
Thu Feb 13 20:05:45 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e477e568e6d745c98cb81a856988a99fe3a989e3
https://github.com/llvm/llvm-project/commit/e477e568e6d745c98cb81a856988a99fe3a989e3
Author: Roland McGrath <mcgrathr at google.com>
Date: 2025-02-13 (Thu, 13 Feb 2025)
Changed paths:
M libc/test/UnitTest/LibcTest.h
Log Message:
-----------
[libc] Make test macros suppress the -Wdangling-else warnings (#127149)
Use the trick from gtest to allow `ASSERT_...` and `EXPECT_...`
macros to be used in braceless `if` without producing warnings
about the nested `if`-`else` that results.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list