[all-commits] [llvm/llvm-project] 0954c9: Add macro to suppress -Wunnecessary-virtual-specif...
Devon Loehr via All-commits
all-commits at lists.llvm.org
Wed May 21 10:54:57 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0954c9d487e7cb30673df9f0ac125f71320d2936
https://github.com/llvm/llvm-project/commit/0954c9d487e7cb30673df9f0ac125f71320d2936
Author: Devon Loehr <DKLoehr at users.noreply.github.com>
Date: 2025-05-21 (Wed, 21 May 2025)
Changed paths:
M clang/include/clang/AST/Decl.h
M clang/include/clang/AST/DeclCXX.h
M clang/include/clang/AST/DeclFriend.h
M clang/include/clang/AST/DeclOpenMP.h
M clang/include/clang/Driver/Action.h
M clang/include/clang/Sema/Sema.h
M clang/lib/AST/ByteCode/InterpFrame.h
M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
M clang/lib/CodeGen/CGStmtOpenMP.cpp
M clang/lib/Driver/ToolChains/Hexagon.h
M llvm/cmake/modules/HandleLLVMOptions.cmake
M llvm/include/llvm/Analysis/InstSimplifyFolder.h
M llvm/include/llvm/Analysis/TargetFolder.h
M llvm/include/llvm/IR/ConstantFolder.h
M llvm/include/llvm/IR/NoFolder.h
M llvm/include/llvm/Support/Compiler.h
M llvm/include/llvm/Transforms/Scalar/GVNExpression.h
M llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
M llvm/lib/Target/X86/X86InstrInfo.h
Log Message:
-----------
Add macro to suppress -Wunnecessary-virtual-specifier (#139614)
Followup to #138741.
This adds the requested macro to silence
`-Wunnecessary-virtual-specifier` when declaring virtual anchor
functions in `final` classes, per [LLVM
policy](https://llvm.org/docs/CodingStandards.html#provide-a-virtual-method-anchor-for-classes-in-headers).
It also cleans up any remaining instances of the warning, allowing us to
stop disabling it when we build LLVM.
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