[PATCH] D57918: Add an attribute that causes clang to emit fortified calls to C stdlib functions
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 8 12:00:30 PST 2019
aaron.ballman added inline comments.
================
Comment at: clang/include/clang/Basic/Attr.td:1572
+ let Spellings = [Clang<"fortify_stdlib">];
+ let Args = [IntArgument<"Type">, IntArgument<"Flag">];
+ let Subjects = SubjectList<[Function]>;
----------------
Nothing in the docs describes these two arguments.
================
Comment at: clang/include/clang/Basic/AttrDocs.td:987
+
+Only a specific set of standard library functions are supported:
+ - memcpy
----------------
And we don't have Annex K versions for any of these, like memset_s()?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57918/new/
https://reviews.llvm.org/D57918
More information about the cfe-commits
mailing list