Skip to content
⌘K

cppfront

Experimental compiler from a potential C++ 'syntax 2' (Cpp2) to today's Syntax 1.

health 18contrib 126.0k

Overview & architecture

Categories
Language & Toolchain / Compilersprimary
C++ standard
C++20
Build systems
–
Languages
C++
Last release
v0.8.1 · Jan 31, 2025

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
6.0k▲ 10
Merged PRs (30d)
latest
2▲ 2
Contributors (90d)
latest
1
Issue first response p50
–
No snapshots yet.
190 open issues12 open PRs2 commits (30d)0 good first issues0 help wanted

Recent notable activity

  • Release
    cppfront v0.8.1

    Highlights Added support for "guard" local object naming convention For a local variable whose name starts with "guard" we do not automatically move from last use. This gives language meaning to a naming convention of "guard" as a name prefix for guard-like stack objects, such as local std::scoped_lock objects, whose…

    Herb Sutterv0.8.1
  • Release
    cppfront v0.8.0

    Highlights Changed license to Apache 2.0 with LLVM Exception With the changes below, notably to make the remaining tweaks for function syntax, I think version 0.8 is now stable enough to be ready for a license that allows commercial use. Thank you again to everyone who provided feedback and PRs so far! Note: This…

    Herb Sutterv0.8.0
  • Release
    cppfront v0.7.4: V0.7.4

    Highlights Expanded compile-time support for is Thanks to @filipsajdak for this PR! The built-in is implementation is now constexpr, and cases that are known statically now produce compile-time values. Unified using syntax I had been using the Cpp1 syntax since I had nothing substantially better. But that did leave…

    Herb Sutterv0.7.4
  • Release
    cppfront v0.7.3

    What's Changed: Highlights Note: The first two were actually in 0.7.2 but I forgot to mention them in the 0.7.2 release notes. Allow is constraints on wildcarded parameters and locals. The following now works (and the last line would be an error if not commented out): cpp print: (r: _ is std::regular) = { std::cout is…

    Herb Sutterv0.7.3
  • Blog
    cppfront: Midsummer update

    Over the winter and spring I spent a bunch of time building my essay “C++ safety, in context” and the related ACCU 2024 safety keynote, and on behind-the-scenes work toward improving C++ memory safety that you’ll be hearing more about in the coming months (including a lock-free…

    Herb Sutterby Herb Sutter · Sutter's Mill
  • Release
    cppfront v0.7.2

    What's Changed: Highlights Add range operators, e.g., iter1 ... iter2 or 1 ..= 100 (see docs: ... and ..= range operators) Add @regex metafunction by @MaxSagebaum (docs in progress) Add support for function types, e.g., std::function forward std::string > and pointers to functions like pfn: *(i: inout int) -> forward…

    Herb Sutterv0.7.2
  • Release
    cppfront v0.7.1

    What's Changed: Highlights Add .. syntax to invoke only a member function (no UFCS), e.g., mystring..append("foo") Allow x: const = init; and x: * = init; without _ type wildcard Allow concatenated string literals, e.g., "Hello " "(name$)\n" Faster compile time when doing heavy reflection and code generation Ensure…

    Herb Sutterv0.7.1
  • Release
    cppfront v0.7.0

    Initial feature set is complete, including documentation. Modulo bugs of course, and with more new features still to be added as this project continues to evolve.

    Herb Sutterv0.7.0
  • Blog
    cppfront: Autumn update

    Since the 2022-12-31 year-end mini-update and the 2023-04-30 spring update, progress has continued on cppfront. (If you don’t know what this personal project is, please see the CppCon 2022 talk on YouTube for an overview, and the CppNow 2023 talk on YouTube for an interim…

    Herb Sutterby Herb Sutter · Sutter's Mill
  • Blog
    cppfront: Spring update

    Since the year-end mini-update, progress has continued on cppfront. (If you don’t know what this personal project is, please see the CppCon 2022 talk on YouTube.) This update covers Acknowledgments, and highlights of what’s new in the compiler and language since last time,…

    Herb Sutterby Herb Sutter · Sutter's Mill

Maintainers & organizations

every claim links to its source

Maintainers

Top contributors

Releases & changelog

  • cppfront v0.8.1

    Highlights Added support for "guard" local object naming convention For a local variable whose name starts with "guard" we do not automatically move from last use. This gives language meaning to a naming convention of "guard" as a name prefix for guard-like stack objects, such as local std::scoped_lock objects, whose…

  • cppfront v0.8.0major

    Highlights Changed license to Apache 2.0 with LLVM Exception With the changes below, notably to make the remaining tweaks for function syntax, I think version 0.8 is now stable enough to be ready for a license that allows commercial use. Thank you again to everyone who provided feedback and PRs so far! Note: This…

  • cppfront v0.7.4: V0.7.4

    Highlights Expanded compile-time support for is Thanks to @filipsajdak for this PR! The built-in is implementation is now constexpr, and cases that are known statically now produce compile-time values. Unified using syntax I had been using the Cpp1 syntax since I had nothing substantially better. But that did leave…

  • cppfront v0.7.3

    What's Changed: Highlights Note: The first two were actually in 0.7.2 but I forgot to mention them in the 0.7.2 release notes. Allow is constraints on wildcarded parameters and locals. The following now works (and the last line would be an error if not commented out): cpp print: (r: _ is std::regular) = { std::cout is…

  • cppfront v0.7.2

    What's Changed: Highlights Add range operators, e.g., iter1 ... iter2 or 1 ..= 100 (see docs: ... and ..= range operators) Add @regex metafunction by @MaxSagebaum (docs in progress) Add support for function types, e.g., std::function forward std::string > and pointers to functions like pfn: *(i: inout int) -> forward…

  • cppfront v0.7.1

    What's Changed: Highlights Add .. syntax to invoke only a member function (no UFCS), e.g., mystring..append("foo") Allow x: const = init; and x: * = init; without _ type wildcard Allow concatenated string literals, e.g., "Hello " "(name$)\n" Faster compile time when doing heavy reflection and code generation Ensure…

  • cppfront v0.7.0major

    Initial feature set is complete, including documentation. Modulo bugs of course, and with more new features still to be added as this project continues to evolve.

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement.
1 more candidate below the publish threshold
LabelleduntouchedcandidateMatches your profileCompilers

Cannot handle assignment to u8 and i16 from literal values

Describe the bug If a variable is declared as u8 and a character literal is assigned to it, or a variable is declared as i16 and an integer literal is assigned to it, the generated code cannot be compiled by clang++ (g++ compiles but with warnings). I suspect this also applies to the respective signed/unsigned counterparts. To Reproduce Steps to reproduce the behavior: Sample code - distilled down to minimal essentials please test.cpp2 main: () -> int = { foo: u8; foo = 'a'; bar: i16; bar = 3; } Command lines including which C++ compiler you are using cppfront test.cpp2 -p clang++ -std=c++20…

37score
cpp20testing
  • Demand 25% × 0.00 = 00 reactions, 1 comments (not counted alone)
  • Technical fit 30% × 0.73 = 22cppfront is in Language & Toolchain (a focus area); issue needs cpp20, which you listed; project tags you follow: cpp20
  • Maintainer engagement 25% × 0.20 = 5comments not checked; labelled (triaged)
  • Feasibility 20% × 0.50 = 10clear scope; has reproduction steps; has code; project onboarding 25%
Evidence
Suggested first step

Reproduce the bug on the latest main branch of cppfront, reduce it to a minimal example, and post your findings on the issue before opening a PR.

Related:Compilers
Rule-generated · updated Oct 7, 2026

Why this score

Health 18Contribution friendliness 12computed 20h ago
  • Activity0.31
    2 merged PRs in 30 days (full marks at 20); 2 commits in 30 days (full marks at 60) [health score: no data for maintainer responsiveness; weights renormalized]health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs site [contrib score: no data for maintainer responsiveness; weights renormalized]contrib
  • Entry points0.00
    0 open, unassigned good-first-issue/help-wanted issues without a PR (full marks at 10) [contrib score: no data for maintainer responsiveness; weights renormalized]contrib
  • Release cadence0.03
    last release 661 days ago (full marks within 90, zero after 730); 0 releases in 365 days (full marks at 4) [health score: no data for maintainer responsiveness; weights renormalized]health
  • Backlog pressure0.00
    98% of 130 scanned open issues are older than a year (full marks at <= 20%, zero at >= 80%) [health score: no data for maintainer responsiveness; weights renormalized]health
  • Contributor breadth0.23
    1 unique contributors in 90 days (full marks at 25); top contributor has 79% of commits; stars count for at most 5% of this signal [health score: no data for maintainer responsiveness; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.