[all-commits] [llvm/llvm-project] 3c4e73: [Sema][clangd] add noexcept to override functions ...

Sirui Mu via All-commits all-commits at lists.llvm.org
Fri Jun 27 23:37:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c4e7308028e31aef21e50730145ba7f9b439363
      https://github.com/llvm/llvm-project/commit/3c4e7308028e31aef21e50730145ba7f9b439363
  Author: Sirui Mu <msrlancern at gmail.com>
  Date:   2025-06-28 (Sat, 28 Jun 2025)

  Changed paths:
    M clang/lib/Sema/SemaCodeComplete.cpp
    M clang/test/CodeCompletion/overrides.cpp

  Log Message:
  -----------
  [Sema][clangd] add noexcept to override functions during code completion (#75937)

If a virtual function is declared with `noexcept`, functions that
override this function in the derived classes must be declared with
`noexcept` as well. This PR updates code completion in clang Sema. It
adds `noexcept` specifier to override functions in the code completion
result if the functions override a `noexcept` virtual function.



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