Turn English phrases to C or C++ declarations Cdecl is a program which will turn English-like phrases such as "declare foo as array 5 of pointer to function returning int" into C declarations such as "int (*foo[5])()". It can also translate the C into the pseudo-English. And it handles typecasts, too. Plus C++. And in this version it has command line editing and history with the GNU readline library.
Original maintainer | Fredrik Hallenberg |
---|---|
Homepage | https://github.com/paul-j-lucas/cdecl/ |
6.9

2.5













Distribution | Version | Since | Package | Installed | Packager | |
---|---|---|---|---|---|---|
![]() | deb | 2.5-13+b2 | 2017-11-10 | 24.8 kiB | 67 kiB | Fredrik Hallenberg |
![]() | deb | 2.5-13+b2 | 2017-11-10 | 24.8 kiB | 67 kiB | Fredrik Hallenberg |
![]() | rpm | 2.5-lp150.1.3 | 2019-01-17 | 31.5 kiB | 52.9 kiB | https://bugs.opensuse.org |
![]() | rpm | 2.5-lp151.2.3 | 2019-01-23 | 31.5 kiB | 52.9 kiB | https://bugs.opensuse.org |
![]() | rpm | 2.5-lp152.3.4 | 2020-01-07 | 31.5 kiB | 52.9 kiB | https://bugs.opensuse.org |
![]() | rpm | 2.5-20.1 | 2019-01-17 | 25.9 kiB | 49 kiB | http://bugs.opensuse.org |
![]() | rpm | 6.9-1.1 | 2020-03-08 | 116 kiB | 285 kiB | https://bugs.opensuse.org |
![]() | deb | 2.5-13build1 | 2017-11-10 | 25 kiB | 66 kiB | Ubuntu Developers |
![]() | deb | 2.5-13build1 | 2017-11-10 | 25 kiB | 66 kiB | Ubuntu Developers |
![]() | deb | 2.5-13build1 | 2019-01-14 | 25 kiB | 66 kiB | Ubuntu Developers |
![]() | deb | 2.5-13build2 | 2019-01-27 | 25.6 kiB | 70 kiB | Ubuntu Developers |
![]() | deb | 2.5-13build2 | 2019-06-17 | 25.6 kiB | 70 kiB | Ubuntu Developers |
![]() | deb | 2.5-13build2 | 2020-01-07 | 25.6 kiB | 70 kiB | Ubuntu Developers |
![]() | deb | 2.5-13 | 2017-11-10 | 23.6 kiB | 88 kiB | Ubuntu Developers |
Manual pages
cdecl(1)
cdecl, c++decl - compose and decipher C & C++ declarations and casts
Latest updates

OpenSUSE Tumbleweed oss: Updated from 6.8.2-1.1 to 6.9-1.1
2020-03-08
- Update to release 6.9
- The `cast` command now accepts `as` and `to` in addition to `into`.
- Autocomplete was missing `explain-by-default;`.

OpenSUSE Tumbleweed oss: Updated from 6.8.1-1.1 to 6.8.2-1.1
2020-01-26
- Update to release 6.8.2
- When in explain-by-default mode, a special case has to be made for `const` and `static` keywords, since the `explain` command is implied only when not followed by the `cast` keyword.

OpenSUSE Tumbleweed oss: Updated from 6.8-1.1 to 6.8.1-1.1
2020-01-24
- Update to release 6.8.1
- Reset lexer start-state

OpenSUSE Tumbleweed oss: Updated from 6.6.2-1.1 to 6.8-1.1
2020-01-15
- Update to release 6.8
- Since the set explicit-int option was added (an option that takes a value), a set lang=lang option was added.

OpenSUSE Leap 15.2 oss: Version 2.5-lp152.3.4 introduced
2020-01-07
- keyword-identifier.patch: rename identifier conflicting with keyword

Ubuntu 20.04 focal/universe: Version 2.5-13build2 introduced
2020-01-07
- No-change rebuild for readline soname change.

OpenSUSE Tumbleweed oss: Updated from 2.5-15.19 to 6.6.2-1.1
2019-12-24
- Update to release 6.6.2
- Command-line long-options.
- Distinguishes among K&R C, C89, C95, C99, C11, C18, C++98, C++03, C++11, C++14, C++17, and C++20.
- Support for C89 const, restrict, and volatile declarations.
- Support for the standard C95 type wchar_t.
- Support for the standard C99 types _Bool, _Complex,
_Imaginary, int8_t, int16_t, ptrdiff_t, size_t, etc. - Support for C99 static, type-qualified, and variable length array function arguments.
- Support for the standard C11 atomic types atomic_bool, atomic_char, etc.
- Support for the standard C11 and C++11 types char16_t, char32_t, and thread_local.
- Support for inline function and variable declarations.
- Support for typedef declarations.
- Support for variadic function arguments.
- Support for C and C++ alternative tokens (and, and_eq, etc.).
- Support for C++ mutable data members, namespaces and scoped names, new-style casts, throw, overloaded operators, and friend, virtual and pure virtual member function declarations, and user-defined conversion operators.
- Support for C++11 constexpr, enum class, final, noexcept, override, rvalue references, user-defined literals, using (as a typedef synonym), the function trailing return-type syntax, and ref-qualified member function declarations.
- Support for C++ [[carries_dependency]], [[deprecated]],
[maybe_unused], [[nodiscard]], and [[noreturn]] attributespecifiers.
- Better warning and error messages complete with location information and color.
- Drop cdecl-2.5-deb11.diff

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 reintroduced
2019-10-10
- No-change rebuild for readline soname change.

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 removed
2019-10-10

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 reintroduced
2019-10-10
- No-change rebuild for readline soname change.

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 removed
2019-10-10

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 reintroduced
2019-09-25
- No-change rebuild for readline soname change.

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 removed
2019-09-25

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 reintroduced
2019-09-25
- No-change rebuild for readline soname change.

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 removed
2019-09-25

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 reintroduced
2019-09-06
- No-change rebuild for readline soname change.

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 removed
2019-09-06

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 reintroduced
2019-09-06
- No-change rebuild for readline soname change.

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 removed
2019-09-06

Ubuntu 19.10 eoan/universe: Version 2.5-13build2 reintroduced
2019-09-06
- No-change rebuild for readline soname change.
Related packages
cdecl-debuginfo - Debug information for package cdecl
cdecl-debugsource - Debug sources for package cdecl