From c0a15a0067a16079c8b0a590393cc8d56f605cfc Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Thu, 6 Aug 2020 14:47:42 +0200 Subject: [PATCH] Keep all the infra and the user happy Refs !330 --- src/gromacs/hardware/gpu_hw_info.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gromacs/hardware/gpu_hw_info.h b/src/gromacs/hardware/gpu_hw_info.h index 28b928066e..125a3a9eed 100644 --- a/src/gromacs/hardware/gpu_hw_info.h +++ b/src/gromacs/hardware/gpu_hw_info.h @@ -69,13 +69,15 @@ enum class DeviceStatus : int * Check-source wants to warn about the use of a symbol name that would * require an inclusion of config.h. However the use is in a comment, so that * is a false warning. So C-style string concatenation is used to fool the - * naive parser in check-source. In turn, that needs a clang-format suppression - * in order to look reasonable. + * naive parser in check-source. That needs a clang-format suppression + * in order to look reasonable. Also clang-tidy wants to suggest that a comma is + * missing, so that is suppressed. */ static const gmx::EnumerationArray c_deviceStateString = { "compatible", "nonexistent", "incompatible", // clang-format off - "incompatible (please recompile with correct GMX _OPENCL_NB_CLUSTER_SIZE of 4)", + // NOLINTNEXTLINE(bugprone-suspicious-missing-comma) + "incompatible (please recompile with correct GMX" "_OPENCL_NB_CLUSTER_SIZE of 4)", // clang-format on "non-functional", "unavailable" }; -- 2.11.4.GIT