projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format-cpp: run clang-format in parallel
[lttng-tools.git]
/
src
/
common
/
filter.cpp
diff --git
a/src/common/filter.cpp
b/src/common/filter.cpp
index 2bff02031f2b97d5220bf034af286f2e3e386682..39e403dfbafd7132fdee9914a269ea5e35d55593 100644
(file)
--- a/
src/common/filter.cpp
+++ b/
src/common/filter.cpp
@@
-6,6
+6,7
@@
*/
#include "filter.hpp"
*/
#include "filter.hpp"
+
#include <stddef.h>
struct bytecode_symbol_iterator {
#include <stddef.h>
struct bytecode_symbol_iterator {
@@
-14,16
+15,15
@@
struct bytecode_symbol_iterator {
size_t offset, len;
};
size_t offset, len;
};
-struct bytecode_symbol_iterator *bytecode_symbol_iterator_create(
- struct lttng_bytecode *bytecode)
+struct bytecode_symbol_iterator *bytecode_symbol_iterator_create(struct lttng_bytecode *bytecode)
{
{
- struct bytecode_symbol_iterator *it =
NULL
;
+ struct bytecode_symbol_iterator *it =
nullptr
;
if (!bytecode) {
goto end;
}
if (!bytecode) {
goto end;
}
- it =
(bytecode_symbol_iterator *) zmalloc(sizeof(*it)
);
+ it =
zmalloc<bytecode_symbol_iterator>(
);
if (!it) {
goto end;
}
if (!it) {
goto end;
}
@@
-64,12
+64,11
@@
int bytecode_symbol_iterator_get_type(struct bytecode_symbol_iterator *it)
ret = *((uint16_t *) (it->bytecode + it->offset));
end:
return ret;
ret = *((uint16_t *) (it->bytecode + it->offset));
end:
return ret;
-
}
+}
-const char *bytecode_symbol_iterator_get_name(
- struct bytecode_symbol_iterator *it)
+const char *bytecode_symbol_iterator_get_name(struct bytecode_symbol_iterator *it)
{
{
- const char *ret =
NULL
;
+ const char *ret =
nullptr
;
if (!it) {
goto end;
if (!it) {
goto end;
This page took
0.024722 seconds
and
4
git commands to generate.