Skip to content

Commit

Permalink
Refs #20569: Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Mar 11, 2024
1 parent a56fa75 commit f18ce47
Show file tree
Hide file tree
Showing 16 changed files with 4,457 additions and 4,106 deletions.
15 changes: 10 additions & 5 deletions include/fastdds/dds/builtin/typelookup/common/TypeLookupTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class TypeLookup_getTypes_Result
FASTDDS_EXPORTED_API TypeLookup_getTypes_Out& result();

#ifndef DOXYGEN_SHOULD_SKIP_THIS
FASTDDS_SER_METHOD_DEPRECATED(3, "eprosima::fastdds::dds::builtin::TypeLookup_getTypes_Result::getCdrSerializedSize()",
FASTDDS_SER_METHOD_DEPRECATED(3,
"eprosima::fastdds::dds::builtin::TypeLookup_getTypes_Result::getCdrSerializedSize()",
"In favor of version using eprosima::fastcdr::calculate_serialized_size.")
FASTDDS_EXPORTED_API static size_t getCdrSerializedSize(
const TypeLookup_getTypes_Result& data,
Expand Down Expand Up @@ -187,7 +188,8 @@ class TypeLookup_getTypeDependencies_In
FASTDDS_EXPORTED_API void serialize(
eprosima::fastcdr::Cdr& cdr) const;

FASTDDS_SER_METHOD_DEPRECATED(3, "eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_In::deserialize()",
FASTDDS_SER_METHOD_DEPRECATED(3,
"eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_In::deserialize()",
"In favor of version using eprosima::fastcdr::deserialize.")
FASTDDS_EXPORTED_API void deserialize(
eprosima::fastcdr::Cdr& cdr);
Expand Down Expand Up @@ -221,7 +223,8 @@ class TypeLookup_getTypeDependencies_Out
FASTDDS_EXPORTED_API void serialize(
eprosima::fastcdr::Cdr& cdr) const;

FASTDDS_SER_METHOD_DEPRECATED(3, "eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Out::deserialize()",
FASTDDS_SER_METHOD_DEPRECATED(3,
"eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Out::deserialize()",
"In favor of version using eprosima::fastcdr::deserialize.")
FASTDDS_EXPORTED_API void deserialize(
eprosima::fastcdr::Cdr& cdr);
Expand Down Expand Up @@ -279,12 +282,14 @@ class TypeLookup_getTypeDependencies_Result
const TypeLookup_getTypeDependencies_Result& data,
size_t current_alignment = 0);

FASTDDS_SER_METHOD_DEPRECATED(3, "eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Result::serialize()",
FASTDDS_SER_METHOD_DEPRECATED(3,
"eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Result::serialize()",
"In favor of version using eprosima::fastcdr::serialize.")
FASTDDS_EXPORTED_API void serialize(
eprosima::fastcdr::Cdr& cdr) const;

FASTDDS_SER_METHOD_DEPRECATED(3, "eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Result::deserialize()",
FASTDDS_SER_METHOD_DEPRECATED(3,
"eprosima::fastdds::dds::builtin::TypeLookup_getTypeDependencies_Result::deserialize()",
"In favor of version using eprosima::fastcdr::deserialize.")
FASTDDS_EXPORTED_API void deserialize(
eprosima::fastcdr::Cdr& cdr);
Expand Down
22 changes: 12 additions & 10 deletions include/fastdds/rtps/common/FragmentNumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,31 @@
#include <cmath>
#include <algorithm>

namespace eprosima{
namespace fastrtps{
namespace rtps{
namespace eprosima {
namespace fastrtps {
namespace rtps {

using FragmentNumber_t = uint32_t;

//!Structure FragmentNumberSet_t, contains a group of fragmentnumbers.
//!@ingroup COMMON_MODULE
using FragmentNumberSet_t = BitmapRange<FragmentNumber_t>;

inline std::ostream& operator<<(std::ostream& output, const FragmentNumberSet_t& fns)
inline std::ostream& operator <<(
std::ostream& output,
const FragmentNumberSet_t& fns)
{
output << fns.base() << ":";
fns.for_each([&](FragmentNumber_t it)
{
output << it << "-";
});
{
output << it << "-";
});

return output;
}

}
}
}
} // namespace rtps
} // namespace fastrtps
} // namespace eprosima

#endif /* _FASTDDS_RTPS_RPTS_ELEM_FRAGNUM_H_ */
47 changes: 32 additions & 15 deletions include/fastdds/rtps/common/MatchingInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@

#include <fastdds/rtps/common/Guid.h>

namespace eprosima{
namespace fastrtps{
namespace rtps{
namespace eprosima {
namespace fastrtps {
namespace rtps {

/**
* @enum MatchingStatus, indicates whether the matched publication/subscription method of the PublisherListener or SubscriberListener has
* been called for a matching or a removal of a remote endpoint.
* @ingroup COMMON_MODULE
*/
#if defined(_WIN32)
enum FASTDDS_EXPORTED_API MatchingStatus{
enum FASTDDS_EXPORTED_API MatchingStatus
{
#else
enum MatchingStatus{
#endif
enum MatchingStatus
{
#endif // if defined(_WIN32)
MATCHED_MATCHING,//!< MATCHED_MATCHING, new publisher/subscriber found
REMOVED_MATCHING //!< REMOVED_MATCHING, publisher/subscriber removed

Expand All @@ -48,21 +50,36 @@ namespace rtps{
class FASTDDS_EXPORTED_API MatchingInfo
{
public:

//!Default constructor
MatchingInfo():status(MATCHED_MATCHING){};
MatchingInfo()
: status(MATCHED_MATCHING)
{
}

/**
* @param stat Status
* @param guid GUID
*/
MatchingInfo(MatchingStatus stat,const GUID_t&guid):status(stat),remoteEndpointGuid(guid){};
~MatchingInfo(){};
* @param stat Status
* @param guid GUID
*/
MatchingInfo(
MatchingStatus stat,
const GUID_t& guid)
: status(stat)
, remoteEndpointGuid(guid)
{
}

~MatchingInfo()
{
}

//!Status
MatchingStatus status;
//!Remote endpoint GUID
GUID_t remoteEndpointGuid;
};
}
}
}
} // namespace rtps
} // namespace fastrtps
} // namespace eprosima

#endif /* _FASTDDS_RTPS_MATCHINGINFO_H_ */
Loading

0 comments on commit f18ce47

Please sign in to comment.