mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
checksrc: detect // comments on column 0
Spotted while working on #6045 Closes #6048
This commit is contained in:
parent
bc5455fa74
commit
7d8c89d47b
@ -442,7 +442,7 @@ sub scanfile {
|
||||
|
||||
# crude attempt to detect // comments without too many false
|
||||
# positives
|
||||
if($l =~ /^([^"\*]*)[^:"]\/\//) {
|
||||
if($l =~ /^(([^"\*]*)[^:"]|)\/\//) {
|
||||
checkwarn("CPPCOMMENTS",
|
||||
$line, length($1), $file, $l, "\/\/ comment");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user