Support C23's Variadics Without a Named Parameter
This PR removes the static check that disallowed extern functions with ellipsis (varargs) as the only parameter since this is now valid in C23. Also, adds a doc comment for `check_decl_cvariadic_pos()` and fixes the name of the function (`varadic` -> `variadic`).
This commit is contained in:
parent
62a104df98
commit
f005b451c2
3 changed files with 5 additions and 17 deletions
|
@ -97,9 +97,6 @@ ast_passes_fn_body_extern = incorrect function inside `extern` block
|
|||
ast_passes_fn_param_c_var_args_not_last =
|
||||
`...` must be the last argument of a C-variadic function
|
||||
|
||||
ast_passes_fn_param_c_var_args_only =
|
||||
C-variadic function must be declared with at least one named argument
|
||||
|
||||
ast_passes_fn_param_doc_comment =
|
||||
documentation comments cannot be applied to function parameters
|
||||
.label = doc comments are not allowed here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue