Skip to content

Commit 1c956da

Browse files
committed
Janitorial clang-format
1 parent fc4d9a5 commit 1c956da

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/core/bpf_exception.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66

77
class BpfException final : public std::runtime_error {
88
public:
9-
explicit BpfException(const std::string &message)
10-
: std::runtime_error(message) {
11-
}
9+
explicit BpfException(const std::string &message)
10+
: std::runtime_error(message) {}
1211

13-
explicit BpfException(const char *message)
14-
: std::runtime_error(message) {
15-
}
12+
explicit BpfException(const char *message) : std::runtime_error(message) {}
1613
};
1714

1815
#endif // PYLIBBPF_BPF_EXCEPTION_H

src/core/bpf_object.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ BpfObject::_get_or_create_program(struct bpf_program *prog) {
106106
}
107107

108108
// Create and cache
109-
auto bpf_prog = std::make_shared<BpfProgram>(shared_from_this(), prog, prog_name);
109+
auto bpf_prog =
110+
std::make_shared<BpfProgram>(shared_from_this(), prog, prog_name);
110111
prog_cache_[prog_name] = bpf_prog;
111112

112113
return bpf_prog;

src/core/bpf_program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include "bpf_object.h"
21
#include "bpf_program.h"
32
#include "bpf_exception.h"
3+
#include "bpf_object.h"
44
#include <cerrno>
55
#include <utility>
66

src/core/bpf_program.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#ifndef PYLIBBPF_BPF_PROGRAM_H
22
#define PYLIBBPF_BPF_PROGRAM_H
33

4+
#include <cstring>
45
#include <libbpf.h>
56
#include <memory>
67
#include <string>
7-
#include <cstring>
88

99
class BpfObject;
1010

0 commit comments

Comments
 (0)