Hacker News new | past | comments | ask | show | jobs | submit login

clang-tidy has a check for this -- it's not a compiler check but with clangd and LSP, almost every code editor can show an inline warning: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unch...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: