diff --git a/src/core/bpf_exception.h b/src/core/bpf_exception.h index 4616c19..7266ce9 100644 --- a/src/core/bpf_exception.h +++ b/src/core/bpf_exception.h @@ -6,13 +6,10 @@ class BpfException final : public std::runtime_error { public: - explicit BpfException(const std::string &message) - : std::runtime_error(message) { - } + explicit BpfException(const std::string &message) + : std::runtime_error(message) {} - explicit BpfException(const char *message) - : std::runtime_error(message) { - } + explicit BpfException(const char *message) : std::runtime_error(message) {} }; #endif // PYLIBBPF_BPF_EXCEPTION_H diff --git a/src/core/bpf_object.cpp b/src/core/bpf_object.cpp index 5b328bd..9ae949a 100644 --- a/src/core/bpf_object.cpp +++ b/src/core/bpf_object.cpp @@ -106,7 +106,8 @@ BpfObject::_get_or_create_program(struct bpf_program *prog) { } // Create and cache - auto bpf_prog = std::make_shared(shared_from_this(), prog, prog_name); + auto bpf_prog = + std::make_shared(shared_from_this(), prog, prog_name); prog_cache_[prog_name] = bpf_prog; return bpf_prog; diff --git a/src/core/bpf_program.cpp b/src/core/bpf_program.cpp index 3da1b78..e3319af 100644 --- a/src/core/bpf_program.cpp +++ b/src/core/bpf_program.cpp @@ -1,6 +1,6 @@ -#include "bpf_object.h" #include "bpf_program.h" #include "bpf_exception.h" +#include "bpf_object.h" #include #include diff --git a/src/core/bpf_program.h b/src/core/bpf_program.h index 4f7dfc6..2b27cc4 100644 --- a/src/core/bpf_program.h +++ b/src/core/bpf_program.h @@ -1,10 +1,10 @@ #ifndef PYLIBBPF_BPF_PROGRAM_H #define PYLIBBPF_BPF_PROGRAM_H +#include #include #include #include -#include class BpfObject;