Janitorial clang-format

This commit is contained in:
Pragyansh Chaturvedi
2025-10-19 04:06:54 +05:30
parent fc4d9a51e7
commit 1c956da07f
4 changed files with 7 additions and 9 deletions

View File

@ -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

View File

@ -106,7 +106,8 @@ BpfObject::_get_or_create_program(struct bpf_program *prog) {
}
// Create and cache
auto bpf_prog = std::make_shared<BpfProgram>(shared_from_this(), prog, prog_name);
auto bpf_prog =
std::make_shared<BpfProgram>(shared_from_this(), prog, prog_name);
prog_cache_[prog_name] = bpf_prog;
return bpf_prog;

View File

@ -1,6 +1,6 @@
#include "bpf_object.h"
#include "bpf_program.h"
#include "bpf_exception.h"
#include "bpf_object.h"
#include <cerrno>
#include <utility>

View File

@ -1,10 +1,10 @@
#ifndef PYLIBBPF_BPF_PROGRAM_H
#define PYLIBBPF_BPF_PROGRAM_H
#include <cstring>
#include <libbpf.h>
#include <memory>
#include <string>
#include <cstring>
class BpfObject;