This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2-tracer: ignore single line comments when parsing headers
Author:  Deborah Brouwer <deborah.brou...@collabora.com>
Date:    Thu Nov 30 16:46:30 2023 -0800

Just in case there are single-line comments that start with '//',
ignore them in the autogeneration script.

Signed-off-by: Deborah Brouwer <deborah.brou...@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/v4l2-tracer/v4l2-tracer-gen.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=61d5d0c344c8ca91a762a0009ef722d5263fc152
diff --git a/utils/v4l2-tracer/v4l2-tracer-gen.pl 
b/utils/v4l2-tracer/v4l2-tracer-gen.pl
index 1e4caddae86c..7b4f859b7177 100755
--- a/utils/v4l2-tracer/v4l2-tracer-gen.pl
+++ b/utils/v4l2-tracer/v4l2-tracer-gen.pl
@@ -151,7 +151,8 @@ sub clean_up_line {
        $line =~ s/^\s+//; # remove leading whitespace
        $line =~ s/.*\# define.*//; # zero out line if it has defines inside a 
structure (e.g. v4l2_jpegcompression)
        $line =~ s/^\s*\/?\s?\*.*//; # zero out line if it has comments where 
the line starts with start with /* / * or just *
-       $line =~ s/\s*\/\*.*//; # remove comments at the end of a line 
following a member
+       $line =~ s/\s*\/\*.*//; # remove comments /* */ at the end of a line 
following a member
+       $line =~ s/\s*\/\/.*//; # remove comments // at the end of a line 
following a member
        $line =~ s/\*\/$//; # zero out line if it has comments that begin 
without any slashs or asterisks but end with */
        # zero out lines that don't have a ; or { because they are comments but 
without any identifying slashes or asteriks
        if ($line !~ /.*[\;|\{].*/) {

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to