]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cstyle: Allow URLs in C++ comments
authorColMelvin <chris.lindee+github@gmail.com>
Thu, 13 Oct 2022 18:05:05 +0000 (13:05 -0500)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 18:05:05 +0000 (11:05 -0700)
commit642c2dee44acbb35045515f3a012e24b24c79776
tree0ac1276367466bfe7c78fcf6eb30eec0c5a7cdc0
parentab8d9c1783c4fe51f3ef8518f560fedd2c6fab19
cstyle: Allow URLs in C++ comments

If a C++ comment contained a URL, the `://` part of the URL would
trigger an error because there was no trailing blank, but trailing
blanks make for an invalid URL.  Modify the check to ignore text
within the C++ comment.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Lindee <chris.lindee+github@gmail.com>
Closes #13987
scripts/cstyle.pl