aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2025-04-15 12:21:04 -0400
committerGitHub <noreply@github.com>2025-04-15 12:21:04 -0400
commitece10a64cb180ba931b60cbd939d80412973eada (patch)
tree7c6cf8ca212430347dfd1401c0a7787754b44897 /clang/lib/CodeGen/CodeGenModule.cpp
parent98534eee847dfa80ff88b213a628a6149f8754d9 (diff)
downloadllvm-ece10a64cb180ba931b60cbd939d80412973eada.zip
llvm-ece10a64cb180ba931b60cbd939d80412973eada.tar.gz
llvm-ece10a64cb180ba931b60cbd939d80412973eada.tar.bz2
Allow some attributes on declarations after definitions (#135791)
The deprecated, maybe_unused, and nodiscard standard attributes may all be applied to a redeclaration after a definition has already appeared. We were previously dropping the attribute in that case, now we retain the attribute after the redeclaration. Note: someday we may want to tablegen this as part of information from Attr.td. We may also want to relax the restriction here so that the syntax used does not matter. This is an intentionally conservative fix. Fixes #135481
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions