summaryrefslogtreecommitdiff
path: root/libc/benchmarks
diff options
context:
space:
mode:
authorMichael Jones <michaelrj@google.com>2021-12-21 13:12:45 -0800
committerMichael Jones <michaelrj@google.com>2021-12-22 10:53:25 -0800
commit25226f3e4a42f70124995c16e22ff870efa30c6d (patch)
tree820e2f5708486d237007a8edb807fd0043782e7c /libc/benchmarks
parent8b58344efb2ea3bab28e373d7f9113a200742684 (diff)
downloadllvm-25226f3e4a42f70124995c16e22ff870efa30c6d.tar.gz
[libc] apply formatting to tests
Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127
Diffstat (limited to 'libc/benchmarks')
-rw-r--r--libc/benchmarks/LibcBenchmarkTest.cpp4
-rw-r--r--libc/benchmarks/automemcpy/lib/ResultAnalyzerMain.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/libc/benchmarks/LibcBenchmarkTest.cpp b/libc/benchmarks/LibcBenchmarkTest.cpp
index c9b21e48e8f7..e4afab531fef 100644
--- a/libc/benchmarks/LibcBenchmarkTest.cpp
+++ b/libc/benchmarks/LibcBenchmarkTest.cpp
@@ -50,9 +50,9 @@ public:
}
protected:
- void SetUp() override { Options.Log = BenchmarkLog::Full; }
+ void set_up() override { Options.Log = BenchmarkLog::Full; }
- void TearDown() override {
+ void tear_down() override {
// We make sure all the expected measurements were performed.
if (MaybeTimepoints)
EXPECT_THAT(*MaybeTimepoints, IsEmpty());
diff --git a/libc/benchmarks/automemcpy/lib/ResultAnalyzerMain.cpp b/libc/benchmarks/automemcpy/lib/ResultAnalyzerMain.cpp
index 6a657e432c18..47e3200f9dcc 100644
--- a/libc/benchmarks/automemcpy/lib/ResultAnalyzerMain.cpp
+++ b/libc/benchmarks/automemcpy/lib/ResultAnalyzerMain.cpp
@@ -94,7 +94,7 @@ JsonFile parseJsonResultFile(StringRef Filename) {
json::Path::Root Root;
JsonFile JF;
if (!fromJSON(JsonValue, JF, Root))
- ExitOnErr(Root.getError());
+ ExitOnErr(Root.get_error());
return JF;
}