[PATCH] D156172: [clang][CodeGen] Emit annotations for function declarations.
Brendan Dahl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 15:07:03 PDT 2023
brendandahl created this revision.
Herald added a project: All.
brendandahl requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Previously, annotations were only emitted for function definitions. With
this change annotations are also emitted for declarations. Emitting for
both also more closely matches the behavior of regular function attributes.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D156172
Files:
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/annotations-declaration.c
clang/test/CodeGen/annotations-global.c
clang/test/CodeGenCXX/attr-annotate.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156172.543711.patch
Type: text/x-patch
Size: 5812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230724/eafcfeaa/attachment.bin>
More information about the cfe-commits
mailing list