File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -784,7 +784,7 @@ void RecordComponent::loadChunk_impl(
784784
785785 std::optional<T> val =
786786 switchNonVectorType<detail::do_convert</* To = */ T>>(
787- /* from = */ getDatatype (), rc.m_constantValue );
787+ /* dt = */ getDatatype (), rc.m_constantValue );
788788
789789 if (val.has_value ())
790790 {
Original file line number Diff line number Diff line change @@ -41,15 +41,21 @@ auto DeferredComputation<T>::valid() const noexcept -> bool
4141
4242template class DeferredComputation <void >;
4343template class DeferredComputation <RecordComponent::shared_ptr_dataset_types>;
44- // clang-format off
44+
45+ // need this for clang-tidy
46+ #define OPENPMD_ARRAY (type ) type[]
47+ #define OPENPMD_APPLY_TEMPLATE (template_, type ) template_<type>
48+
4549#define INSTANTIATE_FUTURE (dtype ) \
46- /* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
47- template class DeferredComputation <std::shared_ptr<dtype>>;
48- #define INSTANTIATE_FUTURE_WITH_AND_WITHOUT_EXTENT (type ) INSTANTIATE_FUTURE(type) INSTANTIATE_FUTURE(type[])
50+ template class DeferredComputation <OPENPMD_APPLY_TEMPLATE( \
51+ std::shared_ptr, dtype)>;
52+ #define INSTANTIATE_FUTURE_WITH_AND_WITHOUT_EXTENT (type ) \
53+ INSTANTIATE_FUTURE (type) INSTANTIATE_FUTURE(OPENPMD_ARRAY(type))
4954OPENPMD_FOREACH_NONVECTOR_DATATYPE (INSTANTIATE_FUTURE_WITH_AND_WITHOUT_EXTENT)
5055#undef INSTANTIATE_FUTURE
5156#undef INSTANTIATE_FUTURE_WITH_AND_WITHOUT_EXTENT
52- // clang-format on
57+ #undef OPENPMD_ARRAY
58+ #undef OPENPMD_APPLY_TEMPLATE
5359} // namespace openPMD::auxiliary
5460
5561#include " openPMD/UndefDatatypeMacros.hpp"
You can’t perform that action at this time.
0 commit comments