mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:43:33 +03:00
checksrc: detect // comments on column 0
Spotted while working on #6045 Closes #6048
This commit is contained in:
parent
bc5455fa74
commit
7d8c89d47b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue