aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDevon Loehr <DKLoehr@users.noreply.github.com>2025-05-28 06:15:22 -0400
committerGitHub <noreply@github.com>2025-05-28 12:15:22 +0200
commit63de20c0de05ce7b8b3968a9d210aa0f3d01acd4 (patch)
tree45c8ead9d68f31f52836b0a18b331bfac8cf79c6 /clang/lib/CodeGen/CodeGenFunction.cpp
parent8b6e98559de15dc75edddf616ed37c5b6e23dfba (diff)
downloadllvm-63de20c0de05ce7b8b3968a9d210aa0f3d01acd4.zip
llvm-63de20c0de05ce7b8b3968a9d210aa0f3d01acd4.tar.gz
llvm-63de20c0de05ce7b8b3968a9d210aa0f3d01acd4.tar.bz2
Reland "Add macro to suppress -Wunnecessary-virtual-specifier" (#141091)
This fixes #139614 on non-clang compilers by moving `__has_warning` completely inside the `#if defined(__clang__)` block. This prevents a parse failure from compilers which don't recognize `__has_warning`. Original description: 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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions