Skip to content

Commit 679db40

Browse files
echion: run clang-format
1 parent 007d08e commit 679db40

File tree

6 files changed

+11
-18
lines changed

6 files changed

+11
-18
lines changed

ddtrace/internal/datadog/profiling/echion/cpython/tasks.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ typedef struct
131131
#if PY_VERSION_HEX >= 0x030d0000
132132
typedef struct
133133
{
134-
FutureObj_HEAD(task)
135-
unsigned task_must_cancel : 1;
134+
FutureObj_HEAD(task) unsigned task_must_cancel : 1;
136135
unsigned task_log_destroy_pending : 1;
137136
int task_num_cancels_requested;
138137
PyObject* task_fut_waiter;

ddtrace/internal/datadog/profiling/echion/echion/interp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ static void for_each_interp(std::function<void(InterpreterInfo& interp)> callbac
3333
{
3434
InterpreterInfo interpreter_info = {0};
3535

36-
for (char* interp_addr = reinterpret_cast<char*>(runtime->interpreters.head); interp_addr != NULL;
37-
interp_addr = reinterpret_cast<char*>(interpreter_info.next))
36+
for (char* interp_addr = reinterpret_cast<char*>(runtime->interpreters.head);
37+
interp_addr != NULL; interp_addr = reinterpret_cast<char*>(interpreter_info.next))
3838
{
3939
if (copy_type(interp_addr + offsetof(PyInterpreterState, id), interpreter_info.id))
4040
continue;

ddtrace/internal/datadog/profiling/echion/echion/stack_chunk.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ void* StackChunk::resolve(void* address)
8888

8989
// Check if this chunk contains the address
9090
if (address >= origin && address < reinterpret_cast<char*>(origin) + chunk->size)
91-
return reinterpret_cast<char*>(chunk) + (reinterpret_cast<char*>(address) - reinterpret_cast<char*>(origin));
91+
return reinterpret_cast<char*>(chunk) +
92+
(reinterpret_cast<char*>(address) - reinterpret_cast<char*>(origin));
9293

9394
if (previous)
9495
return previous->resolve(address);

ddtrace/internal/datadog/profiling/echion/echion/vm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ ssize_t process_vm_readv(pid_t, const struct iovec*, unsigned long liovcnt,
2727

2828
#define copy_type(addr, dest) (copy_memory(pid, addr, sizeof(dest), &dest))
2929
#define copy_type_p(addr, dest) (copy_memory(pid, addr, sizeof(*dest), dest))
30-
#define copy_generic(addr, dest, size) (copy_memory(pid, reinterpret_cast<const void*>(addr), size, reinterpret_cast<void*>(dest)))
30+
#define copy_generic(addr, dest, size) \
31+
(copy_memory(pid, reinterpret_cast<const void*>(addr), size, reinterpret_cast<void*>(dest)))
3132

3233
#elif defined PL_DARWIN
3334
#include <mach/mach.h>

ddtrace/internal/datadog/profiling/stack_v2/CMakeLists.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ if(NOT Threads_FOUND OR NOT CMAKE_USE_PTHREADS_INIT)
4848
endif()
4949

5050
# Add echion
51-
FetchContent_Declare(
52-
echion
53-
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../echion")
51+
FetchContent_Declare(echion SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../echion")
5452

5553
FetchContent_GetProperties(echion)
5654

@@ -59,15 +57,8 @@ if(NOT echion_POPULATED)
5957
endif()
6058

6159
# Specify the target C-extension that we want to build
62-
add_library(
63-
${EXTENSION_NAME} SHARED
64-
${echion_SOURCE_DIR}/echion/frame.cc
65-
${echion_SOURCE_DIR}/echion/render.cc
66-
${echion_SOURCE_DIR}/echion/danger.cc
67-
src/sampler.cpp
68-
src/stack_renderer.cpp
69-
src/stack_v2.cpp
70-
src/thread_span_links.cpp)
60+
add_library(${EXTENSION_NAME} SHARED ${echion_SOURCE_DIR}/echion/frame.cc ${echion_SOURCE_DIR}/echion/render.cc
61+
src/sampler.cpp src/stack_renderer.cpp src/stack_v2.cpp src/thread_span_links.cpp)
7162

7263
# Add common config
7364
add_ddup_config(${EXTENSION_NAME})

scripts/cformat.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ enumerate_files() {
3434
'*.c'
3535
'*.h'
3636
'*.cpp'
37+
'*.cc'
3738
'*.hpp'
3839
)
3940

0 commit comments

Comments
 (0)