aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2024-04-23 10:29:02 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2024-04-25 09:51:25 +0000
commit42255af64a5471a2668e3a0552d82639e1f70ee4 (patch)
tree55e4e054ab4b4505eef12fa21cc551b4f86fc0a1
parent177ba183076bd6fe6b29b1d657b954cca256506b (diff)
downloadsrc-42255af64a5471a2668e3a0552d82639e1f70ee4.tar.gz
src-42255af64a5471a2668e3a0552d82639e1f70ee4.zip
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
-rwxr-xr-xtools/build/checkstyle9.pl1
1 files changed, 1 insertions, 0 deletions
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|