From 55c4215d583183f37f33b79ec3c1b02ed3b429e9 Mon Sep 17 00:00:00 2001 From: ehughsbaird <44244083+ehughsbaird@users.noreply.github.com> Date: Sat, 30 Nov 2024 04:24:48 +0000 Subject: [PATCH] Silence another clang-tidy warning Not relevant for this purpose. --- build-scripts/get_translation_characters.py | 4 ++-- src/cldr/imgui-glyph-ranges.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-scripts/get_translation_characters.py b/build-scripts/get_translation_characters.py index a67c4560c058c..24851bb32a2f0 100755 --- a/build-scripts/get_translation_characters.py +++ b/build-scripts/get_translation_characters.py @@ -29,8 +29,8 @@ def main(): "// ./build-scripts/get_translation_characters.py en ar cs da de " "el es fr hu id is it ja ko nb nl pl pt ru sr tr uk_UA zh_Hans " "zh_Hant > src/cldr/imgui-glyph-ranges.cpp\n\n" - "// NOLINTBEGIN(cata-static-declarations,readability-function-size)" - "\n") + "// NOLINTBEGIN(cata-static-declarations,readability-function-size," + "modernize-avoid-c-arrays)\n") add_preprocessor() print("static NOINLINE void AddGlyphs( ImFontGlyphRangesBuilder *b, " "ImWchar const *glyphp, ImWchar const *end) {\n" diff --git a/src/cldr/imgui-glyph-ranges.cpp b/src/cldr/imgui-glyph-ranges.cpp index fd47b61fcebf0..2fa93ee958021 100644 --- a/src/cldr/imgui-glyph-ranges.cpp +++ b/src/cldr/imgui-glyph-ranges.cpp @@ -1,7 +1,7 @@ // generated by get_translation_characters.py; example: // ./build-scripts/get_translation_characters.py en ar cs da de el es fr hu id is it ja ko nb nl pl pt ru sr tr uk_UA zh_Hans zh_Hant > src/cldr/imgui-glyph-ranges.cpp -// NOLINTBEGIN(cata-static-declarations,readability-function-size) +// NOLINTBEGIN(cata-static-declarations,readability-function-size,modernize-avoid-c-arrays) #if defined(__GNUC__) or defined(__clang__) #define NOINLINE __attribute__ ((noinline))