[clang] [clang-tools-extra] [llvm] Add code completion for C++20 keywords. (PR #107982)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 12 03:29:16 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()) {
----------------
16bit-ykiko wrote:
I made some modification to `ParseExportDeclaration` to fix the problem.
https://github.com/llvm/llvm-project/pull/107982
More information about the cfe-commits
mailing list