I want to suppress this warning:
warning: the parameter 'data_timestamp' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param]
std::optional<QDateTime> data_timestamp) {
and tried different variants:
performance-unnecessary-value-param.AllowedTypes: 'std::optional<QDateTime>'
performance-unnecessary-value-param.AllowedTypes: '::std::optional<QDateTime>'
performance-unnecessary-value-param.AllowedTypes: 'optional<QDateTime>$'
but none of them works. While for ordinary types all works fine.
So how should I match concrete template specialisation std::optional<QDateTime>
in clang-tidy config?