Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Apr 2024 09:52:51 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 42255af64a54 - main - checkstyle9: Allow a space between "*" and _*restrict
Message-ID:  <202404250952.43P9qp61053716@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp:

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

commit 42255af64a5471a2668e3a0552d82639e1f70ee4
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2024-04-23 10:29:02 +0000
Commit:     Mateusz Piotrowski <0mp@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|



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202404250952.43P9qp61053716>