1 // SPDX-License-Identifier: GPL-2.0-only
3 /// Remove unneeded semicolon.
5 // Confidence: Moderate
6 // Copyright: (C) 2012 Peter Senna Tschudin, INRIA/LIP6.
7 // URL: http://coccinelle.lip6.fr/
8 // Comments: Some false positives on empty default cases in switch statements.
9 // Options: --no-includes --include-headers
50 position p != {r_default.p, r_case.p};
63 if p[0].line != p1[0].line_end:
64 cocci.include_match(False)
71 @script:python depends on report@
74 coccilib.report.print_report(p[0],"Unneeded semicolon")
81 @script:python depends on org@
84 cocci.print_main("Unneeded semicolon",p)