🚨 suppress cppcoreguidelines-avoid-do-while

This commit is contained in:
Niels Lohmann 2022-12-03 15:12:12 +01:00
parent eca2ed5690
commit e3f73112f3
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
3 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Checks: '*,
-cert-err58-cpp,
-concurrency-mt-unsafe,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-goto,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,

View File

@ -2760,7 +2760,7 @@ class binary_reader
*/
char_int_type get_ignore_noop()
{
do // NOLINT(cppcoreguidelines-avoid-do-while)
do
{
get();
}

View File

@ -1499,7 +1499,7 @@ scan_number_done:
void skip_whitespace()
{
do // NOLINT(cppcoreguidelines-avoid-do-while)
do
{
get();
}