mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05: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