clang-tidy: add a subset of cppcoreguidelines and other style checks
[lttng-tools.git] / src / bin / lttng-sessiond / field.cpp
index 5a0c584f22813197ac9a7e3686aee29e6536fa75..2d7f9deaca9c89b9f7916ace43407272fbc83918 100644 (file)
@@ -15,8 +15,8 @@
 namespace lst = lttng::sessiond::trace;
 
 namespace {
-template <class FieldTypeSet>
-bool fields_are_equal(const FieldTypeSet& a, const FieldTypeSet& b)
+template <class FieldTypeContainerType>
+bool fields_are_equal(const FieldTypeContainerType& a, const FieldTypeContainerType& b)
 {
        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(),
-                         [](typename FieldTypeSet::const_reference field_a,
-                            typename FieldTypeSet::const_reference field_b) {
+                         [](typename FieldTypeContainerType::const_reference field_a,
+                            typename FieldTypeContainerType::const_reference 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
 {
This page took 0.023579 seconds and 4 git commands to generate.