mirror of
https://github.com/google/benchmark.git
synced 2024-12-25 20:10:13 +08:00
clang-format fixes
This commit is contained in:
parent
a73c039b1d
commit
99410f400c
@ -1,4 +1,4 @@
|
||||
# Allow the source files to find headers in src/
|
||||
#Allow the source files to find headers in src /
|
||||
include(GNUInstallDirs)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src)
|
||||
|
||||
|
@ -157,8 +157,8 @@ PerfCounters PerfCounters::Create(
|
||||
attr.exclude_hv = true;
|
||||
|
||||
// Read all counters in a group in one read.
|
||||
attr.read_format = PERF_FORMAT_GROUP; //| PERF_FORMAT_TOTAL_TIME_ENABLED |
|
||||
//PERF_FORMAT_TOTAL_TIME_RUNNING;
|
||||
attr.read_format = PERF_FORMAT_GROUP; //| PERF_FORMAT_TOTAL_TIME_ENABLED |
|
||||
// PERF_FORMAT_TOTAL_TIME_RUNNING;
|
||||
|
||||
int id = -1;
|
||||
while (id < 0) {
|
||||
|
@ -120,7 +120,7 @@ struct ValueUnion {
|
||||
|
||||
explicit ValueUnion(std::size_t buff_size)
|
||||
: size(sizeof(DataT) + buff_size),
|
||||
buff(::new (std::malloc(size)) DataT(), &std::free) {}
|
||||
buff(::new(std::malloc(size)) DataT(), &std::free) {}
|
||||
|
||||
ValueUnion(ValueUnion&& other) = default;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user