Merge pull request #73250 from rschu1ze/clang-tidy-template

Minor follow-up to #72869
This commit is contained in:
Robert Schulze 2024-12-15 14:56:00 +00:00 committed by GitHub
commit 2c4e63e523
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 7 deletions

View File

@ -11,7 +11,7 @@
#pragma GCC diagnostic ignored "-Wunused-macros"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
// NOLINTBEGIN(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr)
// NOLINTBEGIN(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr,modernize-macro-to-enum)
%}
struct NameAndGlyph {
const char *name;
@ -2250,4 +2250,4 @@ const char *glyph;
"zwj;", ""
"zwnj;", ""
%%
// NOLINTEND(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr)
// NOLINTEND(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr,modernize-macro-to-enum)

View File

@ -13,7 +13,7 @@ echo '%language=C++
#pragma GCC diagnostic ignored "-Wunused-macros"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC diagnostic ignored "-Wshorten-64-to-32"
// NOLINTBEGIN(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr)
// NOLINTBEGIN(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr,modernize-macro-to-enum)
%}
struct NameAndGlyph {
const char *name;
@ -24,4 +24,4 @@ const char *glyph;
# character reference as available at https://html.spec.whatwg.org/multipage/named-characters.html
curl -X GET https://html.spec.whatwg.org/entities.json | jq -r 'keys[] as $k | "\"\($k)\", \(.[$k] | .characters|tojson)"' | sed 's/^"&/"/' >> HTMLCharacterReference.gperf
echo '%%' >> HTMLCharacterReference.gperf
echo '// NOLINTEND(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr)' >> HTMLCharacterReference.gperf
echo '// NOLINTEND(google-runtime-int,hicpp-use-nullptr,modernize-use-nullptr,modernize-macro-to-enum)' >> HTMLCharacterReference.gperf

View File

@ -24,9 +24,9 @@
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#pragma GCC diagnostic ignored "-Wunused-macros"
#include <cstring>
// NOLINTBEGIN(modernize-macro-to-enum)
/// NOLINTBEGIN(modernize-macro-to-enum)
#include <cstring>
#define TOTAL_KEYWORDS 5045
#define MIN_WORD_LENGTH 4
@ -110737,6 +110737,6 @@ const char * TopLevelDomainLookupHash::isValid(const char * str, size_t len)
}
return nullptr;
}
/// NOLINTEND(modernize-macro-to-enum)
// NOLINTEND(modernize-macro-to-enum)
#line 5060 "tldLookup.gperf"

View File

@ -9,6 +9,7 @@
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#pragma GCC diagnostic ignored "-Wunused-macros"
// NOLINTBEGIN(modernize-macro-to-enum)
%}
# List generated using https://publicsuffix.org/list/public_suffix_list.dat
%%
@ -5058,3 +5059,4 @@ basicserver.io
virtualserver.io
enterprisecloud.nu
%%
// NOLINTEND(modernize-macro-to-enum)

View File

@ -13,8 +13,10 @@ echo '%language=C++
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#pragma GCC diagnostic ignored "-Wunused-macros"
// NOLINTBEGIN(modernize-macro-to-enum)
%}
# List generated using https://publicsuffix.org/list/public_suffix_list.dat
%%' > tldLookup.gperf
grep -v "//" public_suffix_list.dat | grep . | grep "\." | grep -ve "\..*\..*" >> tldLookup.gperf
echo "%%" >> tldLookup.gperf
echo '// NOLINTEND(modernize-macro-to-enum)' >> tldLookup.gperf