- User Since
- Dec 1 2017, 4:00 AM (76 w, 5 d)
Dec 16 2017
Dec 15 2017
Dec 11 2017
I think so
- If users do actually want to use labels in their switch statements, how should they suppress the diagnostics from the checker?
Good point, is there recommended way to implement options for checker? Where can I find any reference example?
- What is the benefit of adding this check in the static analyzer vs. in clang-tidy?
(My own sense is that the check for labels that are close to "default" could be on by default but that warning on *any* label inside a switch is more stylistic. I think users should have to opt in to that check.)
It makes sense. So, I can make generic case when we found any label in swichStmt opt-in (default=off) and left cases when it looks like typo in 'case' or 'default' keywords enabled by default.
Dec 10 2017
- Now implemented via MatchFinder
- Added missing License header
- Pass all StringRefs by value
- Method names now start from small letter
- Using StringRef::edit_distance instead of custom "similarity" metric
- Various other formating fixes