tests/lint: remove redundant documentation

This commit is contained in:
rillig 2024-03-01 17:22:55 +00:00
parent befbe528d3
commit 9e211f3599
10 changed files with 21 additions and 21 deletions

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_348.c,v 1.9 2023/03/28 14:44:35 rillig Exp $ */
/* $NetBSD: msg_348.c,v 1.10 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_348.c"
// Test for message 348: maximum value %d of '%s' does not match maximum array index %d [348]
// Test for message: maximum value %d of '%s' does not match maximum array index %d [348]
/* lint1-extra-flags: -r -X 351 */

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_349.c,v 1.2 2023/03/28 14:44:35 rillig Exp $ */
/* $NetBSD: msg_349.c,v 1.3 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_349.c"
// Test for message 349: non type argument to alignof is a GCC extension [348]
// Test for message: non type argument to alignof is a GCC extension [349]
/* lint1-flags: -S -w -X 351 */

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_350.c,v 1.3 2023/07/07 19:45:22 rillig Exp $ */
/* $NetBSD: msg_350.c,v 1.4 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_350.c"
// Test for message 350: '_Atomic' requires C11 or later [350]
// Test for message: '_Atomic' requires C11 or later [350]
/*
* The keyword '_Atomic' was added in C11. This test ensures that in C99

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_351.c,v 1.7 2023/07/07 19:45:22 rillig Exp $ */
/* $NetBSD: msg_351.c,v 1.8 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_351.c"
// Test for message 351: missing%s header declaration for '%s' [351]
// Test for message: missing%s header declaration for '%s' [351]
/*
* Warn about declarations or definitions for functions or objects that are

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_352.c,v 1.2 2023/07/07 19:45:22 rillig Exp $ */
/* $NetBSD: msg_352.c,v 1.3 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_352.c"
// Test for message 352: nested 'extern' declaration of '%s' [352]
// Test for message: nested 'extern' declaration of '%s' [352]
/*
* C allows to declare external functions or objects inside function bodies,

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_353.c,v 1.4 2023/07/14 08:53:52 rillig Exp $ */
/* $NetBSD: msg_353.c,v 1.5 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_353.c"
// Test for message 353: empty initializer braces require C23 or later [353]
// Test for message: empty initializer braces require C23 or later [353]
//
// See also:
// c23.c

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_354.c,v 1.1 2023/08/03 18:48:42 rillig Exp $ */
/* $NetBSD: msg_354.c,v 1.2 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_354.c"
// Test for message 354: '_Static_assert' requires C11 or later [354]
// Test for message: '_Static_assert' requires C11 or later [354]
//
// See also:
// c23.c

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_355.c,v 1.1 2023/08/03 18:48:42 rillig Exp $ */
/* $NetBSD: msg_355.c,v 1.2 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_355.c"
// Test for message 355: '_Static_assert' without message requires C23 or later [355]
// Test for message: '_Static_assert' without message requires C23 or later [355]
//
// See also:
// c23.c

View File

@ -1,7 +1,7 @@
/* $NetBSD: msg_356.c,v 1.1 2024/02/03 20:10:11 rillig Exp $ */
/* $NetBSD: msg_356.c,v 1.2 2024/03/01 17:22:55 rillig Exp $ */
# 3 "msg_356.c"
// Test for message 356: short octal escape '%.*s' followed by digit '%c' [356]
// Test for message: short octal escape '%.*s' followed by digit '%c' [356]
/* lint1-extra-flags: -X 351 */

View File

@ -1,5 +1,5 @@
#! /usr/bin/lua
-- $NetBSD: check-msgs.lua,v 1.21 2024/02/06 22:47:21 rillig Exp $
-- $NetBSD: check-msgs.lua,v 1.22 2024/03/01 17:22:55 rillig Exp $
--[[
@ -118,10 +118,10 @@ local function check_test_files(msgs)
local msgid = filename:match("^msg_(%d%d%d)")
if msgs[msgid] then
local unescaped_msg = msgs[msgid]:gsub("\\(.)", "%1")
local expected_text = ("%s [%s]"):format(unescaped_msg, msgid)
local expected_text = ("Test for message: %s [%s]"):format(unescaped_msg, msgid)
local fullname = ("%s/%s"):format(testdir, filename)
if not file_contains(fullname, expected_text) then
print_error("%s must contain: %s", fullname, expected_text)
print_error("%s must contain: // %s", fullname, expected_text)
end
end
end