cppfront
cppfront copied to clipboard
A personal experimental C++ Syntax 2 -> Syntax 1 compiler
**Will your feature suggestion _automate or eliminate_ X% of current C++ guidance literature?** not for cpp1 but it would definitely help improve initialization and remove some of the duplication and...
### Proposed syntax: `: == ;` which would compile to `using ;` ### the problem we should allow a syntax to allow for explicitly saying just using in pure cpp2:...
quick example for reproducing: ``` main: () = { using std::operator""sv; std::cout
quick example for reproducing: ``` xf: () -> int = 42; qq: namespace = { using ::xf; } ``` results in: ``` namespace qq { using ::xf; } ``` being...
As I understand it, there's no `friend` keyword in Cpp2, but some operators are emitted as hidden friends in a type: - streaming operators `>>` and ` void; ``` (Maybe...
**TLDR**: Nowhere on the documentation website (that I could find) is it written that syntax `-> forward SomeType` or `-> move SomeType` is valid for return types. Context: I've been...
For the same motivations as in [P0847](https://wg21.link/p0847), I'd like to be able to write the equivalent of the "deducing this" feature in Cpp2. Here's one example where the feature would...
For variable declarations and return statements at the very least, in the lowered c++ code a space is present at the end of the line after the ; in the...
If I write a raw string literal and a line starts with \t (probably other whitespace as well, did not test more) it will inject a space before the tab....
module; export module utils:part2; import :part1; results in part2.cpp2(4,1): error: a namespace-scope object must have an initializer there currently is a workaround, explicitly writing, but that might result in duplicate...