github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff ecb7f5aaeed2de738a79f1bb78b2196718007176
6ff448ed506e0ef75db2c9974a628a965e85df2f --e
anutosh491 wrote:
For anyone interested in seeing the error at realtime, I am just leaving the
static link for xeus-cpp-lite here.
https://compiler-research.org/xeus-cpp/lab/index.html
Possibly trying something like
```
int x = 5;
auto capture = [&]() { return x * 2; };
```
Should display the
ferdymercury wrote:
Thanks! fyi also @hahnjo
https://github.com/llvm/llvm-project/pull/127467
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
anutosh491 wrote:
Hmmm, the code formatter has a suggestion. Just increases the lines on a simple
test. Not sure if the code formatter should be respected here !
https://github.com/llvm/llvm-project/pull/127467
___
cfe-commits mailing list
cfe-commits
anutosh491 wrote:
cc @ferdymercury @vgvassilev
https://github.com/llvm/llvm-project/pull/127467
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/anutosh491 edited
https://github.com/llvm/llvm-project/pull/127467
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Anutosh Bhat (anutosh491)
Changes
Fixes #123300
What is seen
```
clang-repl> int x = 42;
clang-repl> auto capture = [&]() { return x * 2; };
In file included from <<< inputs >>>:1:
input_line_4:1:17: error: non-local lambda expression can
anutosh491 wrote:
Should be fixed now
```
clang-repl> int x = 5; auto capture = [&]() { return x * 2; };
In file included from <<< inputs >>>:1:
input_line_1:1:28: error: non-local lambda expression cannot have a
capture-default
1 | int x = 5; auto capture = [&]() { return x * 2; };
|
https://github.com/anutosh491 created
https://github.com/llvm/llvm-project/pull/127467
Fixes #123300
What is seen
```
clang-repl> int x = 42;
clang-repl> auto capture = [&]() { return x * 2; };
In file included from <<< inputs >>>:1:
input_line_4:1:17: error: non-local lambda expression cannot