Skip to content

Commit

Permalink
Avoid wrong warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jul 22, 2024
1 parent 43890f9 commit 29f78b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LoadStoreChunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,12 @@ namespace compose
template class compose::ConfigureLoadStore<ConfigureLoadStore>;

/* clang-format would destroy the NOLINT comments */
//// clang-format off
// clang-format off
#define INSTANTIATE_METHOD_TEMPLATES(dtype) \
template auto core::ConfigureLoadStore::enqueueStore() \
-> DynamicMemoryView<dtype>; \
template auto core::ConfigureLoadStore::enqueueLoad() \
/* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
-> auxiliary::DeferredFuture<std::shared_ptr<dtype>>; \
template auto core::ConfigureLoadStore::load(EnqueuePolicy) \
->std::shared_ptr<dtype>;
Expand Down
3 changes: 3 additions & 0 deletions src/auxiliary/Future.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ auto DeferredFuture<T>::wait() -> void

template class DeferredFuture<void>;
template class DeferredFuture<auxiliary::detail::shared_ptr_dataset_types>;
// clang-format off
#define INSTANTIATE_FUTURE(dtype) \
/* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
template class DeferredFuture<std::shared_ptr<dtype>>;
OPENPMD_FOREACH_DATASET_DATATYPE(INSTANTIATE_FUTURE)
#undef INSTANTIATE_FUTURE
// clang-format on
} // namespace openPMD::auxiliary

#include "openPMD/UndefDatatypeMacros.hpp"

0 comments on commit 29f78b0

Please sign in to comment.