HomeFreeBSD

devel/cdecl: update to 13.1

Description

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.

Details

Provenance
lerAuthored on Jan 9 2023, 8:21 PM
Parents
R11:f675fabbd572: net-im/t*: update Telegram Desktop from 4.5.2 to 4.5.3
Branches
Unknown
Tags
Unknown