[libcxx-commits] [clang] [libcxx] [llvm] Add unnecessary-virtual-specifier to -Wextra (PR #138741)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 7 07:04:14 PDT 2025


Sirraide wrote:

> This seems like a good way to do it, since it clearly documents what's going on. LLVM is the only project I've seen with such a policy; across all of chromium's dependencies, the extra `virtual` specifiers we flagged were indeed mistakes. The issue with libc++ was more to do with infrastructure than the warning itself, IIUC.

Alright, in that case I’d say it would be nice to do that in a follow-up pr so we can stop disabling the warning.

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


More information about the libcxx-commits mailing list