cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

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

Results 268 cppfront issues
Sort by recently updated
recently updated
newest added
trafficstars

**To Reproduce** ```c++ main: () = { i := 0; p: std::unique_ptr; while i < 3 next i++ { std::cout

bug

**[Title](#title)**: [RFC] How to highlight Cpp2. **[Description](#desc)**: After #429, I've written another Cpp2 parser at to highlight code in the editor used by Compiler Explorer. I've adopted the existing highlighting...

This PR contains a handful of small helper extractions to simplify the ``to_cpp1.h`` file, which reduces its length by about 1000 lines. Indeed, this file is very long and I...

Typeid cannot be used when -fno-rtti is used. Fixed compilation of generated sources on arm-none-eabi-g++ 13.1.

**DISCLAIMERS TO SET EXPECTATIONS:** I'm generally against language feature requests/changes unless they can be shown to improve simplicity, safety, or toolability in a quantifiable way. So: - _Please limit suggestions...

suggestion

Adds a CITATION.cff file to the repo to ease citing in research papers and technical reports

**Describe the bug** A recent commit may have broken the explicit discard requirement. **To Reproduce** Run cppfront on this code: ```cpp m: std::mutex = (); //

bug

Now that the initial documentation is complete, I can spend more time writing and reviewing code, and catching up with issues and PRs. What would help me is: **If there...

Cpp2 could support tuple indexing expressions like [Rust](https://doc.rust-lang.org/reference/expressions/tuple-expr.html#tuple-indexing-expressions) and [Swift](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/expressions#Explicit-Member-Expression) as syntactic sugar for `std::get`. ```cpp main: () -> int = { bag: std::tuple = (1, "test", 3.14); std::cout

suggestion

Makes it possible to have `cppfront` output generated files into a separate directory (unless `-output` is specified). **Before:** ```bash $ ls .. ../hello.cpp2 $ cppfront ../hello.cpp2 $ ls .. ../hello.cpp2...