cppfront
cppfront copied to clipboard
A personal experimental C++ Syntax 2 -> Syntax 1 compiler
I'm trying to contribute but ran into a few issues. By default my editor is configured to run clang-format on save and clang-tidy to show me possible fixes to different...
**Background**: This request stems from #1234. I am not sure if #714 addresses this too but since @hsutter said he would like to do it, I assume this is separate...
[BUG] using a lamba as a parameter for a function in a for loop causes std::move from non-last use
This is the best I could trim the example down... ``` test: (inout view) -> bool = { v: std::vector = (a, b, c); for view do (copy line) {...
In the regression test run https://github.com/hsutter/cppfront/actions/runs/10382592222/job/28745930035?pr=1224. I got a diff for an linking of `main` in a random directory. We probably should remove the user of temporary intermediate targets. ```...
**Describe the bug** When string interpolation is used within a string literal that is used to construct a `std::format_string` (for example, in `std::print` or `std::format`), the string literal is expanded...
g++ cppfront.cpp -std=c++20 -o cppfront C:/codeblocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/as.exe: C:\Users\Dio\AppData\Local\Temp\ccY6j4zz.o: too many sections (41204) C:\Users\Dio\AppData\Local\Temp\ccsHBHmj.s: Assembler messages: C:\Users\Dio\AppData\Local\Temp\ccsHBHmj.s: Fatal error: can't write 11 bytes to section .text of C:\Users\Dio\AppData\Local\Temp\ccY6j4zz.o: 'file too big' C:/codeblocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/as.exe:...
**Describe the bug** ```go main: () -> int = { b := 2 & int(3); std::cout
**Describe the bug** I have a Cpp1 class with some integral `const static` members initialized inside class. This allows me to use them to declare other members, notable `std::array`. Tried...
**TLDR**: Implementing function/object aliases as `constexpr` is confusing/don't work as *aliases*. `==` should mean `constexpr`. Aliases can use the unified declaration syntax `name : kind = statement`. **Will your feature...
In case I didn't miss anything, it is currently not possible to create an enum instance from a raw integer. If the values of enum instances should matter at all...