Update cppcheck to 1.5.2 (Cppcheck 2.20) and fix its new findings (#5829)

Cppcheck 2.20 rejects invocations of unknown function-like macros in #if
conditions instead of evaluating them as 0. default_defines.hpp expands
the Hedley macros to the compiler's feature-test operators (__has_attribute
etc.), so define them as 0 in a generated include file.

It also reports a false bufferAccessOutOfBounds in the float overload of
float_from_bits, sizing the parameter as the double overload's; use the
size of the source instead (equal by the static_assert).

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann authored and GitHub committed 2026-10-15 20:04:46 +02:00
1 parent ce28c722bc
commit 91b9ee2602
4 files changed
+11 -4

No files matched your search

+1 -1
View File
@@ -1 +1 @@
cppcheck==1.5.1
cppcheck==1.5.2