[PATCH] D101598: [clang][Sema] adds `[[clang::no_address]]` attribute
Christopher Di Bella via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 29 23:33:14 PDT 2021
cjdb created this revision.
cjdb added reviewers: rsmith, gbiv, aaron.ballman, manojgupta.
Herald added a reviewer: george.burgess.iv.
cjdb requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
[namespace.std]/p6 indicates that taking the address of standard
library is unspecified (possibly ill-formed). This commit adds an
opt-in mechanism for standard library functions to ensure that a
program can't take the address of said function.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D101598
Files:
clang/include/clang/AST/DeclBase.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/AST/Decl.cpp
clang/lib/AST/DeclBase.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/attr-no-address.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101598.341776.patch
Type: text/x-patch
Size: 26219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210430/e6a316dd/attachment-0001.bin>
More information about the cfe-commits
mailing list