diff --git a/.clang-tidy b/.clang-tidy index 06fa42e..76c4ee3 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -11,6 +11,8 @@ Checks: > readability-*, -bugprone-branch-clone, -bugprone-easily-swappable-parameters, + -bugprone-multi-level-implicit-pointer-conversion, + -bugprone-unchecked-optional-access, -cppcoreguidelines-avoid-c-arrays, -cppcoreguidelines-avoid-magic-numbers, -cppcoreguidelines-avoid-non-const-global-variables, @@ -21,6 +23,7 @@ Checks: > -cppcoreguidelines-pro-type-cstyle-cast, -cppcoreguidelines-pro-type-union-access, -cppcoreguidelines-special-member-functions, + -misc-include-cleaner, -misc-non-private-member-variables-in-classes, -modernize-avoid-c-arrays, -modernize-use-trailing-return-type, diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index 1b3dea0..34802ac 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -387,7 +387,7 @@ void ProcessEvent(const sf::Window& window, const sf::Event& event) else if (const auto* textEntered = event.getIf()) { // Don't handle the event for unprintable characters - if (!(textEntered->unicode < ' ' || textEntered->unicode == 127)) + if (textEntered->unicode >= ' ' && textEntered->unicode != 127) io.AddInputCharacter(textEntered->unicode); } else if (const auto* joystickConnected = event.getIf())