The branch main has been updated by 0mp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=42255af64a5471a2668e3a0552d82639e1f70ee4

commit 42255af64a5471a2668e3a0552d82639e1f70ee4
Author:     Mateusz Piotrowski <0...@freebsd.org>
AuthorDate: 2024-04-23 10:29:02 +0000
Commit:     Mateusz Piotrowski <0...@freebsd.org>
CommitDate: 2024-04-25 09:51:25 +0000

    checkstyle9: Allow a space between "*" and _*restrict
    
    Before the change, we would get errors like this:
    
        ERROR: "foo * bar" should be "foo *bar"
        #369: FILE: foobar.c:369:
        +barbaz(char * __restrict s,
    
    Reviewed by:            des, imp
    Sponsored by:           Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D44911
---
 tools/build/checkstyle9.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/build/checkstyle9.pl b/tools/build/checkstyle9.pl
index 7fa02bcabc97..99fd354fbacf 100755
--- a/tools/build/checkstyle9.pl
+++ b/tools/build/checkstyle9.pl
@@ -202,6 +202,7 @@ our $Sparse = qr{
 # Notes to $Attribute:
 our $Attribute = qr{
                        const|
+                       _*restrict|
                        volatile|
                        QEMU_NORETURN|
                        QEMU_WARN_UNUSED_RESULT|

Reply via email to