1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/vera++/scripts/rules/T001.tcl
2020-02-14 14:17:16 +01:00

14 lines
391 B
Tcl
Executable File

#!/usr/bin/tclsh
# One-line comments should not have forced continuation
foreach f [getSourceFileNames] {
foreach t [getTokens $f 1 0 -1 -1 {cppcomment}] {
set lineNumber [lindex $t 1]
set wholeLine [getLine $f $lineNumber]
if {[string index $wholeLine end] == "\\"} {
report $f $lineNumber "line-continuation in one-line comment"
}
}
}