You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * @brief Find index of an entity type in its variant. * @details For example, you can use the method to find an index of a message type in a message variant or an index * of a subscription type in a subscription variant. * @tparam Variant variant of one or more entity types. * @tparam Type entity type to search.*/template <typename Variant, typename Type>
staticconstexprsize_t get_type_index = boost::mp11::mp_find<Variant, Type>::value;
CLang result:
In file included from /vsts/agent/_work/2/core/message_bus.h:10:
/vsts/agent/_work/2/core/message_endpoint.h:67:9: warning: '@tparam' command used in a comment that is not attached to a template declaration [-Wdocumentation]
* @tparam Variant variant of one or more entity types.
^~~~~~
/vsts/agent/_work/2/core/message_endpoint.h:68:9: warning: '@tparam' command used in a comment that is not attached to a template declaration [-Wdocumentation]
* @tparam Type entity type to search.
^~~~~~
/vsts/agent/_work/2/core/message_endpoint.h:67:9: warning: '@tparam' command used in a comment that is not attached to a template declaration [-Wdocumentation]
* @tparam Variant variant of one or more entity types.
^~~~~~
/vsts/agent/_work/2/core/message_endpoint.h:68:9: warning: '@tparam' command used in a comment that is not attached to a template declaration [-Wdocumentation]
* @tparam Type entity type to search.
^~~~~~
4 warnings generated.
4 warnings generated.
[ 90%] Linking CXX static library ...library.a
[ 90%] Built target ...-library
gmake: *** [Makefile:156: all] Error 2
The text was updated successfully, but these errors were encountered:
I dunno if I should open a separate issue for this or not, but it seems that -Wdocumentation also does not work when on concepts and give the same warning/error for @tparams. (does not have to be a template template, this was just an example I thought of on the spot)
/// @brief Concept ensuring a CRTP class./// @tparam T Derived class./// @tparam TBase Base CRTP class.template <typename T, template <typename> typename TBase>
concept IsCRTP = std::derived_from<T, TBase<T>>;
Code:
CLang result:
The text was updated successfully, but these errors were encountered: