diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2025-04-15 12:21:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-15 12:21:04 -0400 |
commit | ece10a64cb180ba931b60cbd939d80412973eada (patch) | |
tree | 7c6cf8ca212430347dfd1401c0a7787754b44897 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 98534eee847dfa80ff88b213a628a6149f8754d9 (diff) | |
download | llvm-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