devel/cdecl: update to 13.1

ChangeLog:
auto type definitions and casts
Defining or casting a type containing auto is now correctly reported as an error.

C23 auto
Added support for auto as a deduced type in C23.

C23 trigraphs
Trigraphs are no longer supported in C23.

_BitInt(<int>) help
_BitInt(<int>) was added to the help text.

Color prompt
Now printing the prompt in color even when readline is disabled.

More English synonyms
The following English synonyms have been added:

                boolean  _Bool
                Boolean  _Bool
                 char 8  char8_t
                char 16  char16_t
                char 32  char32_t
             const-eval  consteval
    constant-evaluation  consteval
             const-expr  constexpr
    constant-expression  constexpr
             const-init  constinit
constant-initialization  constinit
       double precision  double
         floating point  float
           user defined  user-defined
         wide character  wchar_t
C++ auto help
auto is now correctly listed as a C++ type in the help for C++11 and later.

More pseudo-English type names
When explaining gibberish, print types in C/C++ (e.g., int), not pseudo-English (e.g., integer).

--no-english-types, -T, & english-types
Added command-line options to disable printing type names in pseuso-English and corresponding set option.

More english for user-defined conversions
User-defined conversions in pseudo-English now allow "const[ant] eval[uation]", "const[ant] expr[ession]", and "const[ant] init[ialization]" for a storage class.

_BitInt maximum bits
Now check that the maximum number of bits for _BitInt is 64.

explicit-int parsing
Fixed a bug of not resetting the current explicit-int option to none before parsing a new string.

friend scoped user-defined conversion operators
Explaining a friend scoped user-defined conversion operator, e.g.:

explain friend C::operator int()
is now parsed correctly.

[[noreturn]] in C23.
[[noreturn]] is now printed rather than _Noreturn in C23.

Invalid destructor name error
Improved the error message for an invalid destructor name, e.g., S::~T.

Removed --interactive & -i options
Removed these command-line options. They've been in cdecl since the beginning, but never seemed to have a justification.

exit and quit command line arguments
Both the exit and quit commands when given as the first word of the first argument on the command line are now correctly reported as an error.

C23 constexpr help
Added missing constexpr to the help for C23.

Missing C++ types man page
Added some missing C++23 types to the manual page.

Octal digit separators
Digit separators are now supported for octal integers.

reproducible and unsequenced man page
Added missing reproducible and unsequenced to the manual page.

Variadic function parameter
A ... is now correctly allowed as the only function parameter in C++ as well as C23.
This commit is contained in:
Larry Rosenman 2023-01-09 14:21:18 -06:00
parent f675fabbd5
commit 6e09787d31
No known key found for this signature in database
GPG Key ID: 697C99B1AB48A77D
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= cdecl
PORTVERSION= 13.0
PORTVERSION= 13.1
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= devel

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1667312169
SHA256 (paul-j-lucas-cdecl-cdecl-13.0_GH0.tar.gz) = 53a70c59ef1bfa39f890d5bd788698e49a6c007f43ffdc05da8c0b4d99a5c1a2
SIZE (paul-j-lucas-cdecl-cdecl-13.0_GH0.tar.gz) = 806096
TIMESTAMP = 1673295671
SHA256 (paul-j-lucas-cdecl-cdecl-13.1_GH0.tar.gz) = 323696db4a1b438b68a5acebb148e9e6274c5cb98f23e923fa271620bee1aed1
SIZE (paul-j-lucas-cdecl-cdecl-13.1_GH0.tar.gz) = 788168