Skip to content

Commit 29f78b0

Browse files
committed
Avoid wrong warnings
1 parent 43890f9 commit 29f78b0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/LoadStoreChunk.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,12 @@ namespace compose
295295
template class compose::ConfigureLoadStore<ConfigureLoadStore>;
296296

297297
/* clang-format would destroy the NOLINT comments */
298-
//// clang-format off
298+
// clang-format off
299299
#define INSTANTIATE_METHOD_TEMPLATES(dtype) \
300300
template auto core::ConfigureLoadStore::enqueueStore() \
301301
-> DynamicMemoryView<dtype>; \
302302
template auto core::ConfigureLoadStore::enqueueLoad() \
303+
/* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
303304
-> auxiliary::DeferredFuture<std::shared_ptr<dtype>>; \
304305
template auto core::ConfigureLoadStore::load(EnqueuePolicy) \
305306
->std::shared_ptr<dtype>;

src/auxiliary/Future.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ auto DeferredFuture<T>::wait() -> void
4242

4343
template class DeferredFuture<void>;
4444
template class DeferredFuture<auxiliary::detail::shared_ptr_dataset_types>;
45+
// clang-format off
4546
#define INSTANTIATE_FUTURE(dtype) \
47+
/* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
4648
template class DeferredFuture<std::shared_ptr<dtype>>;
4749
OPENPMD_FOREACH_DATASET_DATATYPE(INSTANTIATE_FUTURE)
4850
#undef INSTANTIATE_FUTURE
51+
// clang-format on
4952
} // namespace openPMD::auxiliary
5053

5154
#include "openPMD/UndefDatatypeMacros.hpp"

0 commit comments

Comments
 (0)