logoalt Hacker News

a_t48today at 12:26 AM1 replyview on HN

I believe there's ways to configure clang to flag dangerous implicit casts as well.


Replies

Groxxtoday at 1:16 AM

-Wconversion perhaps: https://clang.llvm.org/docs/DiagnosticsReference.html#wconve... or -Wimplicit-int-conversion for the main check I've built in other languages (afaict, I have not used C(++) professionally)