[clang] [Sema] Add code completion for if constexpr (PR #124315)

via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 15 04:08:09 PST 2025


================
@@ -6749,6 +6749,21 @@ void SemaCodeCompletion::CodeCompleteInitializer(Scope *S, Decl *D) {
   CodeCompleteExpression(S, Data);
 }
 
+void SemaCodeCompletion::CodeCompleteIfConstExpr(Scope *S) const {
+  ResultBuilder Results(SemaRef, CodeCompleter->getAllocator(),
+                        CodeCompleter->getCodeCompletionTUInfo(),
+                        CodeCompletionContext::CCC_SymbolOrNewName);
----------------
FantasqueX wrote:

<img width="461" alt="image" src="https://github.com/user-attachments/assets/0f2e681e-636e-44bc-8789-c46270ebafa8" />

I think what we want here is only one keyword.

https://github.com/llvm/llvm-project/pull/124315


More information about the cfe-commits mailing list