dlang-community / libdparse

Library for lexing and parsing D source code
https://libdparse.dlang.io
Boost Software License 1.0
114 stars 56 forks source link

Storage classes for C style variadic functions. #426

Closed MoonlightSentinel closed 3 years ago

MoonlightSentinel commented 3 years ago

dlang/dmd#11125 added support for certain storage classes on the ... of C style variadic functions, e.g.

https://github.com/dlang/druntime/blob/104ac712331e4d3573fc277084334a528b5dadb1/src/core/stdc/stdio.d#L1273-L1274.

dparse issues the following error messages:

src/core/stdc/stdio.d(1274:54)[error]: Basic type, type constructor, symbol, `typeof`, `__traits`, `__vector` or `mixin` expected
src/core/stdc/stdio.d(1274:58)[error]: invalid variable declaration or function declaration
src/core/stdc/stdio.d(1274:58)[warn]: Empty declaration