https://bugs.kde.org/show_bug.cgi?id=400504
Bug ID: 400504 Summary: Add new checker that warns about variables declared that are only used inside one of the branches on an if Product: clazy Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: wishlist Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: aa...@kde.org CC: smart...@kde.org Target Milestone: --- It would need to be whitelist based like unused-non-trivial-variable I would like a test that warns you if you have stuff like QFileInfo obj; if (bla) { // use obj } else { // don't use obj } And tell you to move the obj declaration inside the first if block -- You are receiving this mail because: You are watching all bug changes.