mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-02-10 15:10:54 +00:00
Janitorial clang-format
This commit is contained in:
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include "bpf_object.h"
|
||||
#include "bpf_program.h"
|
||||
#include "bpf_exception.h"
|
||||
#include "bpf_object.h"
|
||||
#include <cerrno>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user