[libcxx-commits] [PATCH] D153140: [libc++][NFC] Reformat all the benchmarks
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 16 10:18:44 PDT 2023
ldionne marked 2 inline comments as done.
ldionne added a comment.
@Mordante I will expand the scope of this patch to touch more headers. I won't do everything because I want to avoid touching active areas and manually auditing everything is time consuming, but I've got a patch that applies clang-format to a couple hundred files.
================
Comment at: libcxx/benchmarks/allocation.bench.cpp:20
struct MallocWrapper {
- __attribute__((always_inline))
- static void* Allocate(size_t N) {
- return std::malloc(N);
- }
- __attribute__((always_inline))
- static void Deallocate(void* P, size_t) {
- std::free(P);
- }
+ __attribute__((always_inline)) static void* Allocate(size_t N) { return std::malloc(N); }
+ __attribute__((always_inline)) static void Deallocate(void* P, size_t) { std::free(P); }
----------------
philnik wrote:
> Maybe as a quick follow-up?
Will do in a separate patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153140/new/
https://reviews.llvm.org/D153140
More information about the libcxx-commits
mailing list