Open jlatusek opened 2 months ago
@jlatusek Those are all from using the GLib API macros, right? Sounds like we need to add suppressions for those cases or something. That's not code we control.
@bzbarsky-apple This error is caused by using glib macros to do the casting. We can try to do the casting another way, but glib macros also check that the object being casted is of the correct type.
Right, so it sounds like we need to suppress the clang-tidy check for these known-safe cases....
Reproduction steps
bugprone-casting-through-void
to.clang-tidy
Clang-tidy validation
and previous step from build.yamlBug prevalence
always
GitHub hash of the SDK that was being used
4cdce52a5fa25542d4fbeb3cdff6e75b3aa1c379
Platform
other
Platform Version(s)
No response
Anything else?
Log file with clang-tidy error: 1_Build on Linux (fake, gcc_release, clang, simulated).txt