[all-commits] [llvm/llvm-project] 009d36: [clang][CodeComplete] Add code completion for if c...

Letu Ren via All-commits all-commits at lists.llvm.org
Sun Mar 16 23:45:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 009d36222cfdb59f49597e01d157ca4f65ac9295
      https://github.com/llvm/llvm-project/commit/009d36222cfdb59f49597e01d157ca4f65ac9295
  Author: Letu Ren <fantasquex at gmail.com>
  Date:   2025-03-17 (Mon, 17 Mar 2025)

  Changed paths:
    M clang/include/clang/Sema/SemaCodeCompletion.h
    M clang/lib/Parse/ParseStmt.cpp
    M clang/lib/Sema/SemaCodeComplete.cpp
    A clang/test/CodeCompletion/if-const.cpp

  Log Message:
  -----------
  [clang][CodeComplete] Add code completion for if constexpr and consteval (#124315)

Code complete `constexpr` and `consteval` keywords after `if` in the
relevant language modes. If pattern completion is enabled, the
completions also include placeholders for the condition (in the case
of `constexpr`) and statement block.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list