[clang] [clang][CodeComplete] Add code completion for if constexpr and consteval (PR #124315)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 8 21:26:52 PST 2025


================
@@ -6749,6 +6749,55 @@ void SemaCodeCompletion::CodeCompleteInitializer(Scope *S, Decl *D) {
   CodeCompleteExpression(S, Data);
 }
 
+void SemaCodeCompletion::CodeCompleteIfConst(Scope *S,
+                                             bool AfterExclaim) const {
----------------
HighCommander4 wrote:

`CodeCompleteKeywordAfterIf` would make more sense to me ("code-complete a keyword [namely, `constexpr` or `consteval`] that comes after `if`")

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


More information about the cfe-commits mailing list