From 6c711ff4765db1059bae167d0ef254a412436f92 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 3 Dec 2022 14:51:46 +0100 Subject: [PATCH] :rotating_light: suppress cppcoreguidelines-avoid-do-while --- include/nlohmann/detail/input/lexer.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 72e995108..091035acf 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -1499,7 +1499,7 @@ scan_number_done: void skip_whitespace() { - do + do // NOLINT(cppcoreguidelines-avoid-do-while) { get(); } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 5960d28ce..9dd36574b 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -8804,7 +8804,7 @@ scan_number_done: void skip_whitespace() { - do + do // NOLINT(cppcoreguidelines-avoid-do-while) { get(); }