mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-03-23 05:31:31 +00:00
Janitorial clang-format
This commit is contained in:
@ -6,13 +6,10 @@
|
|||||||
|
|
||||||
class BpfException final : public std::runtime_error {
|
class BpfException final : public std::runtime_error {
|
||||||
public:
|
public:
|
||||||
explicit BpfException(const std::string &message)
|
explicit BpfException(const std::string &message)
|
||||||
: std::runtime_error(message) {
|
: std::runtime_error(message) {}
|
||||||
}
|
|
||||||
|
|
||||||
explicit BpfException(const char *message)
|
explicit BpfException(const char *message) : std::runtime_error(message) {}
|
||||||
: std::runtime_error(message) {
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PYLIBBPF_BPF_EXCEPTION_H
|
#endif // PYLIBBPF_BPF_EXCEPTION_H
|
||||||
|
|||||||
@ -106,7 +106,8 @@ BpfObject::_get_or_create_program(struct bpf_program *prog) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create and cache
|
// 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;
|
prog_cache_[prog_name] = bpf_prog;
|
||||||
|
|
||||||
return bpf_prog;
|
return bpf_prog;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "bpf_object.h"
|
|
||||||
#include "bpf_program.h"
|
#include "bpf_program.h"
|
||||||
#include "bpf_exception.h"
|
#include "bpf_exception.h"
|
||||||
|
#include "bpf_object.h"
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
#ifndef PYLIBBPF_BPF_PROGRAM_H
|
#ifndef PYLIBBPF_BPF_PROGRAM_H
|
||||||
#define PYLIBBPF_BPF_PROGRAM_H
|
#define PYLIBBPF_BPF_PROGRAM_H
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
#include <libbpf.h>
|
#include <libbpf.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstring>
|
|
||||||
|
|
||||||
class BpfObject;
|
class BpfObject;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user