Skip to content

Commit

Permalink
Format source
Browse files Browse the repository at this point in the history
Signed-off-by: David Galiffi <[email protected]>
  • Loading branch information
dgaliffiAMD committed Oct 3, 2024
1 parent 4d9e04e commit eec32a1
Show file tree
Hide file tree
Showing 13 changed files with 180 additions and 174 deletions.
2 changes: 1 addition & 1 deletion source/lib/core/categories.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ using category_type_id_t = typename category_type_id<Idx>::type;
} // namespace rocprofsys

#define ROCPROFSYS_DEFINE_CATEGORY_TRAIT(TYPE, ENUM) \
namespace rocprofsys \
namespace rocprofsys \
{ \
template <> \
struct category_type_id<ENUM> \
Expand Down
12 changes: 6 additions & 6 deletions source/lib/core/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#include <vector>

#define ROCPROFSYS_DECLARE_COMPONENT(NAME) \
namespace rocprofsys \
namespace rocprofsys \
{ \
namespace component \
{ \
Expand All @@ -63,20 +63,20 @@
namespace trait \
{ \
template <> \
struct is_component<rocprofsys::component::NAME> : true_type \
struct is_component<rocprofsys::component::NAME> : true_type \
{}; \
} \
} \
namespace tim \
{ \
namespace component \
{ \
using ::rocprofsys::component::NAME; \
using ::rocprofsys::component::NAME; \
} \
}

#define ROCPROFSYS_COMPONENT_ALIAS(NAME, ...) \
namespace rocprofsys \
namespace rocprofsys \
{ \
namespace component \
{ \
Expand All @@ -87,7 +87,7 @@
{ \
namespace component \
{ \
using ::rocprofsys::component::NAME; \
using ::rocprofsys::component::NAME; \
} \
}

Expand All @@ -97,7 +97,7 @@
namespace trait \
{ \
template <> \
struct TRAIT<::rocprofsys::TYPE> : VALUE \
struct TRAIT<::rocprofsys::TYPE> : VALUE \
{}; \
} \
}
Expand Down
8 changes: 4 additions & 4 deletions source/lib/core/components/fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,16 @@ ROCPROFSYS_DEFINE_CONCRETE_TRAIT(report_self, component::sampling_percent, false

#define ROCPROFSYS_DECLARE_EXTERN_COMPONENT(NAME, HAS_DATA, ...) \
TIMEMORY_DECLARE_EXTERN_TEMPLATE( \
struct tim::component::base<TIMEMORY_ESC(rocprofsys::component::NAME), \
struct tim::component::base<TIMEMORY_ESC(rocprofsys::component::NAME), \
__VA_ARGS__>) \
TIMEMORY_DECLARE_EXTERN_OPERATIONS(TIMEMORY_ESC(rocprofsys::component::NAME), \
TIMEMORY_DECLARE_EXTERN_OPERATIONS(TIMEMORY_ESC(rocprofsys::component::NAME), \
HAS_DATA) \
TIMEMORY_DECLARE_EXTERN_STORAGE(TIMEMORY_ESC(rocprofsys::component::NAME))

#define ROCPROFSYS_INSTANTIATE_EXTERN_COMPONENT(NAME, HAS_DATA, ...) \
TIMEMORY_INSTANTIATE_EXTERN_TEMPLATE( \
struct tim::component::base<TIMEMORY_ESC(rocprofsys::component::NAME), \
struct tim::component::base<TIMEMORY_ESC(rocprofsys::component::NAME), \
__VA_ARGS__>) \
TIMEMORY_INSTANTIATE_EXTERN_OPERATIONS(TIMEMORY_ESC(rocprofsys::component::NAME), \
TIMEMORY_INSTANTIATE_EXTERN_OPERATIONS(TIMEMORY_ESC(rocprofsys::component::NAME), \
HAS_DATA) \
TIMEMORY_INSTANTIATE_EXTERN_STORAGE(TIMEMORY_ESC(rocprofsys::component::NAME))
10 changes: 5 additions & 5 deletions source/lib/core/containers/operators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@
#define ROCPROFSYS_OPERATOR_TEMPLATE2(template_name2) \
ROCPROFSYS_IMPORT_TEMPLATE2(template_name2) \
template <typename T, typename U, typename B> \
struct is_chained_base<::rocprofsys::container::template_name2<T, U, B>> \
struct is_chained_base<::rocprofsys::container::template_name2<T, U, B>> \
{ \
using value = ::rocprofsys::container::true_t; \
using value = ::rocprofsys::container::true_t; \
};

// Import a 1-type-argument operator template into boost (if necessary) and
// provide a specialization of 'is_chained_base<>' for it.
#define ROCPROFSYS_OPERATOR_TEMPLATE1(template_name1) \
ROCPROFSYS_IMPORT_TEMPLATE1(template_name1) \
template <typename T, typename B> \
struct is_chained_base<::rocprofsys::container::template_name1<T, B>> \
struct is_chained_base<::rocprofsys::container::template_name1<T, B>> \
{ \
using value = ::rocprofsys::container::true_t; \
using value = ::rocprofsys::container::true_t; \
};

#define ROCPROFSYS_OPERATOR_TEMPLATE(template_name) \
Expand All @@ -74,7 +74,7 @@
template <typename T, typename U, typename B, typename O> \
struct is_chained_base<template_name<T, U, B, O>> \
{ \
using value = ::rocprofsys::container::true_t; \
using value = ::rocprofsys::container::true_t; \
}; \
\
ROCPROFSYS_OPERATOR_TEMPLATE2(template_name##2) \
Expand Down
Loading

0 comments on commit eec32a1

Please sign in to comment.