Neil Henderson

Results 29 issues of Neil Henderson

**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

- 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

C++ compilers at high warning levels warn about unused variables or class members. This PR adds `[[maybe_unused]]` to anonymous objects (named `_`) at function and class scope (excludes namespace scope,...

**Describe the bug** When compiling the regression-tests with a high warning level there are warnings in `cpp2util.h` as well as in some of the generated C++ code that cppfront produces....

bug

## Suggestion Cppfront could support conditional compilation where unselected branches are dropped and not lowered to Cpp1. This would be useful for at least two cases: **1. When a Cpp2...

suggestion

**Suggestion** As presented at CppCon 23, cppfront could transform integer arithmetic operations so that they trap/terminate on overflow, underflow or carry. This is a similar solution to my #220 suggestion....

suggestion

`VS.Initialize` is a new, optional method that extension authors can (preferably should) call during their AsyncPackage's InitializeAsync, and pass in their AsyncPackage's JoinableTaskFactory instance. By default, the `VS.JoinableTaskFactory` property returns...

**Describe the bug** cppfront produces an error when parsing a UTF-8 character literal (`u8`) which is not a hex character. **To Reproduce** Run cppfront on this code: ```cpp main: ()...

bug

**Describe the bug** I can't find a Cpp2 syntax to emit a `static constexpr` local variable. `static constexpr` variables are useful (particularly in debug/non-optimised builds) for look-up tables in a...

bug