[all-commits] [llvm/llvm-project] 91d5a5: [clang] Drop explicit -Woverloaded-virtual build o...

Bruno De Fraine via All-commits all-commits at lists.llvm.org
Fri Sep 25 01:59:28 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91d5a537b6b2b62eb1d3dbc5c9c358d2d699ff26
      https://github.com/llvm/llvm-project/commit/91d5a537b6b2b62eb1d3dbc5c9c358d2d699ff26
  Author: Bruno De Fraine <bruno.defraine at globalfoundries.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/lib/CIR/CMakeLists.txt
    M clang/tools/cir-opt/CMakeLists.txt

  Log Message:
  -----------
  [clang] Drop explicit -Woverloaded-virtual build option (#225359)

Nowadays, Clang and GCC have reasonable (and aligned) default
`-Woverloaded-virtual` warnings when using `-Wall`. Fall back to this
default and omit the more aggressive `-Woverloaded-virtual` warnings
only present in GCC's level 2 mode of the warning.

The motivation for this change is discussed in the following RFC:
https://discourse.llvm.org/t/rfc-drop-explicit-woverloaded-virtual-clang-build-option/91857

Removing the explicit `-Woverloaded-virtual` build option also allows
removing the workaround from e1bd39c.



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