projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.clang-tidy: remove modernize-concat-nested-namespaces
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
field.cpp
diff --git
a/src/bin/lttng-sessiond/field.cpp
b/src/bin/lttng-sessiond/field.cpp
index 5a0c584f22813197ac9a7e3686aee29e6536fa75..94d002167556a87fe3901359a25d9f28d49c4872 100644
(file)
--- a/
src/bin/lttng-sessiond/field.cpp
+++ b/
src/bin/lttng-sessiond/field.cpp
@@
-15,8
+15,8
@@
namespace lst = lttng::sessiond::trace;
namespace {
namespace lst = lttng::sessiond::trace;
namespace {
-template <class FieldType
Set
>
-bool fields_are_equal(const FieldType
Set& a, const FieldTypeSet
& b)
+template <class FieldType
ContainerType
>
+bool fields_are_equal(const FieldType
ContainerType& a, const FieldTypeContainerType
& b)
{
if (a.size() != b.size()) {
return false;
{
if (a.size() != b.size()) {
return false;
@@
-25,8
+25,8
@@
bool fields_are_equal(const FieldTypeSet& a, const FieldTypeSet& b)
return std::equal(a.cbegin(),
a.cend(),
b.cbegin(),
return std::equal(a.cbegin(),
a.cend(),
b.cbegin(),
- [](typename FieldType
Set
::const_reference field_a,
- typename FieldType
Set
::const_reference field_b) {
+ [](typename FieldType
ContainerType
::const_reference field_a,
+ typename FieldType
ContainerType
::const_reference field_b) {
return *field_a == *field_b;
});
}
return *field_a == *field_b;
});
}
@@
-47,9
+47,7
@@
lst::type::type(unsigned int in_alignment) : alignment{ in_alignment }
{
}
{
}
-lst::type::~type()
-{
-}
+lst::type::~type() = default;
bool lst::type::operator==(const lst::type& other) const noexcept
{
bool lst::type::operator==(const lst::type& other) const noexcept
{
@@
-67,8
+65,8
@@
lst::field::field(std::string in_name, lst::type::cuptr in_type) :
name{ std::move(in_name) }, _type{ std::move(in_type) }
{
if (!_type) {
name{ std::move(in_name) }, _type{ std::move(in_type) }
{
if (!_type) {
- LTTNG_THROW_ERROR(
-
fmt::format(
"Invalid type used to create field: field name = `{}`", name));
+ LTTNG_THROW_ERROR(
lttng::format(
+ "Invalid type used to create field: field name = `{}`", name));
}
}
}
}
@@
-92,7
+90,7
@@
const lst::type& lst::field::get_type() const
if (_type) {
return *_type;
} else {
if (_type) {
return *_type;
} else {
- LTTNG_THROW_ERROR(
fmt
::format(
+ LTTNG_THROW_ERROR(
lttng
::format(
"Invalid attempt to access field type after transfer: field name = `{}`",
name));
}
"Invalid attempt to access field type after transfer: field name = `{}`",
name));
}
@@
-164,7
+162,7
@@
lst::floating_point_type::floating_point_type(unsigned int in_alignment,
return;
}
return;
}
- LTTNG_THROW_INVALID_ARGUMENT_ERROR(
fmt
::format(
+ LTTNG_THROW_INVALID_ARGUMENT_ERROR(
lttng
::format(
"Invalid exponent/mantissa values provided while creating {}", typeid(*this)));
}
"Invalid exponent/mantissa values provided while creating {}", typeid(*this)));
}
This page took
0.023829 seconds
and
4
git commands to generate.