Skip to content

Commit

Permalink
clang-format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Jul 17, 2024
1 parent a73c039 commit 99410f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/perf_counters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/sysinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 99410f4

Please sign in to comment.