[PATCH] D68377: [Builtins] Teach Clang about memccpy

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 4 12:36:02 PDT 2019


xbolva00 marked an inline comment as done.
xbolva00 added inline comments.


================
Comment at: include/clang/Basic/Builtins.def:983
 // POSIX string.h
+LIBBUILTIN(memccpy, "v*v*vC*iz",  "f",     "string.h", ALL_GNU_LANGUAGES)
 LIBBUILTIN(stpcpy, "c*c*cC*",     "f",     "string.h", ALL_GNU_LANGUAGES)
----------------
aaron.ballman wrote:
> xbolva00 wrote:
> > aaron.ballman wrote:
> > > Isn't `memccpy` supported by Visual Studio? What should happen there?
> > ”This POSIX function is deprecated. Use the ISO C++ conformant _memccpy instead.“
> Thanks for verifying it's still supported (deprecated != unsupported). We do support other Microsoft builtins, so should this one be added?
Ok, I will add it.

One last question, should I somehow represent that memccpy is in C 20 (if so, how) ?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68377/new/

https://reviews.llvm.org/D68377





More information about the cfe-commits mailing list