HighCommander4 wrote:

If I'm understanding correctly, this patch only completes the keywords 
themselves.

SemaCodeComplete also has the ability to produce "snippets", for example 
[here](https://searchfox.org/llvm/rev/4e44bd027bf4e490380be770172994561616bd2d/clang/lib/Sema/SemaCodeComplete.cpp#2405-2420)
 is a snippet for `if` statements. In such a case, the inserted text is `if 
(condition) { statements }`, with `condition` and `statements` being marked as 
placeholders (in editors with snippet support, the cursor will jump to the 
placeholders to allow you to type over them).

What do you think about adding similar snippets for `if constexpr` and `if 
consteval`?

https://github.com/llvm/llvm-project/pull/124315
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to