cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

A personal experimental C++ Syntax 2 -> Syntax 1 compiler

Results 313 cppfront issues
Sort by recently updated
recently updated
newest added

This change reworks a big part of the code for `is`. * added concepts for simplify and utilize concept subsumption rules, * inspired by @JohelEGP - I have learned more...

**Describe the bug** Cppfront crashes with an ICE when given some invalid Cpp2 code. **To Reproduce** Run cppfront on this code. The unnamed function / lambda expression has a syntax...

bug

**Describe the bug** CTAD does not appear to work with `cpp2::in` when using a parameter in a statement scope. **To Reproduce** Run cppfront on this code (which is similar to...

bug

Can Cppfront detect bugs where an object of derived class is deleted via a pointer to its base class that has a non-virtual destructor? Here's some Cpp2 code demonstrating the...

suggestion

In response to [P2688](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2688r0.pdf), Pattern Matching discussion for Kona 2022, it was specified after a poll that WG21 committee prefers composition of patterns instead of chaining.Since then, there have been...

suggestion

**Suggestion** Cpp2 could support the pipeline operator `|>` as proposed in [P2011](https://wg21.link/P2011) and further explored in [P2672](https://wg21.link/P2672). Specifically, the pipeline operator with the "placeholder model" with mandatory placeholder (e.g. `$`),...

suggestion

Can cppfront prevent bugs like this? ``` main: () -> int = { m: std::mutex = (); _ = std::scoped_lock(m); // Oops return 0; } ``` The user probably intended...

suggestion

AFAIK, there's no way to define template specializations in cppfront. I found this out when trying to define a custom `std::formatter`. Here's my expected syntax. ``` Foo: @struct type =...

bug

# [D](#title)esign for program-defined metafunctions for cppfront ## [I](#intro)ntroduction This write-up presents a design to extend cppfront to evaluate program-defined metafunctions. ## [C](#conception)onception Support for metafunctions was first added by...

- Update `cpp2util.h` to support `is` and `as` for `std::expected` - Add new `pure2-expected-is-as` regression test This replaces the original PR #954; I couldn't successfully rebase it onto the updated...

awaiting-cla
pri-5: other ideas and suggestions