[all-commits] [llvm/llvm-project] bd6ee6: [C23][Parser] Accept single variadic parameter fun...
yronglin via All-commits
all-commits at lists.llvm.org
Mon Jun 23 18:40:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bd6ee6ac21331352688a5e47c3b610ca36c696d5
https://github.com/llvm/llvm-project/commit/bd6ee6ac21331352688a5e47c3b610ca36c696d5
Author: yronglin <yronglin777 at gmail.com>
Date: 2025-06-24 (Tue, 24 Jun 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Parse/ParseDecl.cpp
M clang/test/C/C23/n2975.c
Log Message:
-----------
[C23][Parser] Accept single variadic parameter function declarator in type name (#145362)
Fixs: https://github.com/llvm/llvm-project/issues/145250.
This PR makes clang accept single variadic parameter function declarator
in type name.
Eg.
```c
int va_fn(...); // ok
// As typeof() argument
typeof(int(...))*fn_ptr = &va_fn; // ok
// As _Generic association type
int i = _Generic(typeof(va_fn), int(...):1); // ok
```
Signed-off-by: yronglin <yronglin777 at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list