https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/7] add co_return, co_await, co_yield, consteval, constinit,
concep
zyn0217 wrote:
> I am not sure which section I should add in clang/docs/ReleaseNotes.rst?
> There isn't a section related to code completion.
@16bit-ykiko There is an individual file for clang-tools-extras
`clang-tools-extra/docs/ReleaseNotes.rst` which covers changes in clangd. See
also http
https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/7] add co_return, co_await, co_yield, consteval, constinit,
concep
https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/7] add co_return, co_await, co_yield, consteval, constinit,
concep
16bit-ykiko wrote:
> What about `module`, `import` and `export`?
Added, but I am not sure how to test them. Do I need a actual input module file
or just use name started with `mod` like `modulexx` to test it.
https://github.com/llvm/llvm-project/pull/107982
16bit-ykiko wrote:
> This change needs a release note. Please add an entry to
> `clang/docs/ReleaseNotes.rst` in the section the most adapted to the change,
> and referencing any Github issue this change fixes. Thanks!
I an not sure which section I should add in `clang/docs/ReleaseNotes.rst`?
https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/7] add co_return, co_await, co_yield, consteval, constinit,
concep
@@ -1837,6 +1837,10 @@ static void AddTypeSpecifierResults(const LangOptions
&LangOpts,
Builder.AddChunk(CodeCompletionString::CK_RightParen);
Results.AddResult(Result(Builder.TakeString()));
}
+
+if (LangOpts.CPlusPlus20) {
16bit-ykiko wro
https://github.com/cor3ntin commented:
This change needs a release note.
Please add an entry to `clang/docs/ReleaseNotes.rst` in the section the most
adapted to the change, and referencing any Github issue this change fixes.
Thanks!
https://github.com/llvm/llvm-project/pull/107982
@@ -1837,6 +1837,10 @@ static void AddTypeSpecifierResults(const LangOptions
&LangOpts,
Builder.AddChunk(CodeCompletionString::CK_RightParen);
Results.AddResult(Result(Builder.TakeString()));
}
+
+if (LangOpts.CPlusPlus20) {
cor3ntin wrote:
https://github.com/cor3ntin edited
https://github.com/llvm/llvm-project/pull/107982
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik commented:
What about `module`, `import` and `export`?
https://github.com/llvm/llvm-project/pull/107982
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
16bit-ykiko wrote:
Also test with clangd, it work well.


{ co_await 1; }
+
+// RUN: %clang_cc1 -std=c++20 -code-completion-at=%s:1:3 %s | FileCheck
--check-prefix=CHECK-TOP-LEVEL %s
+// CHECK-TOP-
https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/6] add co_return, co_await, co_yield, consteval, constinit,
concep
@@ -0,0 +1,35 @@
+const char8_t x = 1;
+
+template requires true
+const int y = requires { typename T::type; requires T::value; };
+
+int f(){ co_await 1; }
+
+// RUN: %clang_cc1 -std=c++20 -code-completion-at=%s:1:3 %s | FileCheck
--check-prefix=CHECK-TOP-LEVEL %s
+// CHECK-TOP-
https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/5] add co_return, co_await, co_yield, consteval, constinit,
concep
https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/4] add co_return, co_await, co_yield, consteval, constinit,
concep
https://github.com/16bit-ykiko updated
https://github.com/llvm/llvm-project/pull/107982
>From fedea9e4fd57b618fe341e0c30982bff0f098c52 Mon Sep 17 00:00:00 2001
From: ykiko
Date: Tue, 10 Sep 2024 14:59:10 +0800
Subject: [PATCH 1/3] add co_return, co_await, co_yield, consteval, constinit,
concep
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 1c334debecd70bd28e61a36c40c3f96cf5467331
9a1a85c1c98a7e1826a3836028ddf7d37fdecd90 --e
https://github.com/16bit-ykiko edited
https://github.com/llvm/llvm-project/pull/107982
___
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: ykiko (16bit-ykiko)
Changes
This commit adds code completion for C++20 keywords.
1. complete `concept` in template context
- [x] `template conce^` -> `concept`
- [ ] `conce^`
2. complete `requires`
- [x] constrain
https://github.com/16bit-ykiko created
https://github.com/llvm/llvm-project/pull/107982
This commit adds code completion for C++20 keywords.
1. complete `concept` in template context
- [x] `template conce^` -> `concept`
- [ ] `conce^`
2. complete `requires`
- [x] constraints in te
23 matches
Mail list logo