[libc-commits] [libc] 79abf89 - [libc][obvious] fix formatting mistake
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Dec 22 11:40:11 PST 2021
Author: Michael Jones
Date: 2021-12-22T11:40:08-08:00
New Revision: 79abf89303757cbd5a273525a4b922b3fefd2a88
URL: https://github.com/llvm/llvm-project/commit/79abf89303757cbd5a273525a4b922b3fefd2a88
DIFF: https://github.com/llvm/llvm-project/commit/79abf89303757cbd5a273525a4b922b3fefd2a88.diff
LOG: [libc][obvious] fix formatting mistake
I missed two instances of "SetUp" being replaced by "set_up" and
"TearDown" being replaced by "tear_down" when finalizing the formatting
change. This fixes that.
Differential Revision: https://reviews.llvm.org/D116178
Added:
Modified:
libc/benchmarks/LibcBenchmarkTest.cpp
libc/test/src/signal/sigprocmask_test.cpp
Removed:
################################################################################
diff --git a/libc/benchmarks/LibcBenchmarkTest.cpp b/libc/benchmarks/LibcBenchmarkTest.cpp
index e4afab531fef..c9b21e48e8f7 100644
--- a/libc/benchmarks/LibcBenchmarkTest.cpp
+++ b/libc/benchmarks/LibcBenchmarkTest.cpp
@@ -50,9 +50,9 @@ class LibcBenchmark : public ::testing::Test {
}
protected:
- void set_up() override { Options.Log = BenchmarkLog::Full; }
+ void SetUp() override { Options.Log = BenchmarkLog::Full; }
- void tear_down() override {
+ void TearDown() override {
// We make sure all the expected measurements were performed.
if (MaybeTimepoints)
EXPECT_THAT(*MaybeTimepoints, IsEmpty());
diff --git a/libc/test/src/signal/sigprocmask_test.cpp b/libc/test/src/signal/sigprocmask_test.cpp
index 8fe3f03b6cc8..e6463627ea9e 100644
--- a/libc/test/src/signal/sigprocmask_test.cpp
+++ b/libc/test/src/signal/sigprocmask_test.cpp
@@ -21,9 +21,9 @@ class LlvmLibcSignalTest : public __llvm_libc::testing::Test {
sigset_t oldSet;
public:
- void set_up() override { __llvm_libc::sigprocmask(0, nullptr, &oldSet); }
+ void SetUp() override { __llvm_libc::sigprocmask(0, nullptr, &oldSet); }
- void tear_down() override {
+ void TearDown() override {
__llvm_libc::sigprocmask(SIG_SETMASK, &oldSet, nullptr);
}
};
More information about the libc-commits
mailing list