This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit cd7a3cd799eb365783cba5083174244ee97f0238
Author:     Martin Storsjö <[email protected]>
AuthorDate: Fri Apr 10 12:25:56 2026 +0300
Commit:     Martin Storsjö <[email protected]>
CommitDate: Wed Apr 29 13:49:27 2026 +0300

    tools/indent_arm_assembly: Recognize more comment forms, for skipping 
lowercasing
    
    When we try to lowercase register names (e.g. Q0 -> q0) we avoid
    doing that for parts of the code that are comments, as comments
    occasionally contain pseudocode that contain such mentions that
    aren't register names, but pseudocode/reference code variables.
    See 7ebb6c54eb4e4ecc6c7e6121cb41babf44a04351 for more details
    about that.
    
    In addition to recognizing comments starting with //, also
    recognize /* and @ (which is a comment char in arm assembly, but
    not in aarch64).
---
 tools/indent_arm_assembly.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/indent_arm_assembly.pl b/tools/indent_arm_assembly.pl
index aefd58265d..0c85ff3ac4 100755
--- a/tools/indent_arm_assembly.pl
+++ b/tools/indent_arm_assembly.pl
@@ -221,12 +221,12 @@ while (<$in>) {
 
         # Lowercase register names. Only apply this on lines up to
         # comments, as this can match common spec/code references in
-        # code comments. Split the string on // for comments, apply the
+        # code comments. Split the string on //, /* or @ for comments, apply 
the
         # substitution on the first segment (up to a comment char), and
         # join the string again.
-        my @parts = split(/\/\//, $rest);
+        my @parts = split(/(\/\/|\/\*|@)/, $rest);
         $parts[0] =~ s/\b([XWVQDSHBZP][0-9]+)\b/lc($1)/ge;
-        $rest = join('//', @parts);
+        $rest = join('', @parts);
 
         # Lowercase the aarch64 vector layout description, .8B -> .8b
         $rest =~ s/(\.[84216]*[BHSD])/lc($1)/ge;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to