From fb331a5f0d552817f9c10029fa1a7a60b74cb653 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 3 Dec 2022 14:11:19 +0100 Subject: [PATCH] :rotating_light: suppress cppcoreguidelines-avoid-do-while --- include/nlohmann/detail/input/binary_reader.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 832c36ddf..058afd387 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -2760,7 +2760,7 @@ class binary_reader */ char_int_type get_ignore_noop() { - do + do // NOLINT(cppcoreguidelines-avoid-do-while) { get(); } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index e11f52968..5960d28ce 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -11838,7 +11838,7 @@ class binary_reader */ char_int_type get_ignore_noop() { - do + do // NOLINT(cppcoreguidelines-avoid-do-while) { get(); }