[clang] [clang-tools-extra] Add code completion for C++20 keywords. (PR #107982)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 07:01:28 PDT 2024
================
@@ -2186,6 +2197,45 @@ AddOrdinaryNameResults(SemaCodeCompletion::ParserCompletionContext CCC,
} else {
Results.AddResult(Result("template", CodeCompletionResult::RK_Keyword));
}
+
+ if (SemaRef.getLangOpts().CPlusPlus20 &&
+ SemaRef.getLangOpts().CPlusPlusModules) {
+ // export
+ Results.AddResult(Result("export", CodeCompletionResult::RK_Keyword));
+
+ if (SemaRef.CurContext->isTranslationUnit()) {
----------------
cor3ntin wrote:
It only happens during completion so there is probably a bug with that https://godbolt.org/z/7M8EPodoP
https://github.com/llvm/llvm-project/pull/107982
More information about the cfe-commits
mailing list