From 29f78b0d188deeabb823e7ddce72b5bd9c1c7645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Mon, 22 Jul 2024 16:13:12 +0200 Subject: [PATCH] Avoid wrong warnings --- src/LoadStoreChunk.cpp | 3 ++- src/auxiliary/Future.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/LoadStoreChunk.cpp b/src/LoadStoreChunk.cpp index f3080bb08e..96e8ed0f0e 100644 --- a/src/LoadStoreChunk.cpp +++ b/src/LoadStoreChunk.cpp @@ -295,11 +295,12 @@ namespace compose template class compose::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; \ template auto core::ConfigureLoadStore::enqueueLoad() \ + /* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \ -> auxiliary::DeferredFuture>; \ template auto core::ConfigureLoadStore::load(EnqueuePolicy) \ ->std::shared_ptr; diff --git a/src/auxiliary/Future.cpp b/src/auxiliary/Future.cpp index 5886126527..5699bb894f 100644 --- a/src/auxiliary/Future.cpp +++ b/src/auxiliary/Future.cpp @@ -42,10 +42,13 @@ auto DeferredFuture::wait() -> void template class DeferredFuture; template class DeferredFuture; +// clang-format off #define INSTANTIATE_FUTURE(dtype) \ + /* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \ template class DeferredFuture>; OPENPMD_FOREACH_DATASET_DATATYPE(INSTANTIATE_FUTURE) #undef INSTANTIATE_FUTURE +// clang-format on } // namespace openPMD::auxiliary #include "openPMD/UndefDatatypeMacros.hpp"