[cfe-commits] r72936 - /cfe/trunk/include/clang/AST/Builtins.def

Eli Friedman eli.friedman at gmail.com
Fri Jun 5 01:20:10 PDT 2009

Author: efriedma
Date: Fri Jun  5 03:20:10 2009
New Revision: 72936

URL: http://llvm.org/viewvc/llvm-project?rev=72936&view=rev
PR3443: Add stpcpy builtin (plus a few other related builtins).  Yes, 
we're still missing a mechanism to disable these in strict mode, but 
that's not a new issue.


Modified: cfe/trunk/include/clang/AST/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Builtins.def?rev=72936&r1=72935&r2=72936&view=diff

--- cfe/trunk/include/clang/AST/Builtins.def (original)
+++ cfe/trunk/include/clang/AST/Builtins.def Fri Jun  5 03:20:10 2009
@@ -369,6 +369,11 @@
 // Non-C library functions
 // FIXME: Non-C-standard stuff shouldn't be builtins in non-GNU mode!
 LIBBUILTIN(alloca, "v*z",         "f",     "stdlib.h")
+// POSIX string.h
+LIBBUILTIN(stpcpy, "c*c*cC*",     "f",     "string.h")
+LIBBUILTIN(stpncpy, "c*c*cC*z",   "f",     "string.h")
+LIBBUILTIN(strdup, "c*cC*",       "f",     "string.h")
+LIBBUILTIN(strndup, "c*cC*z",     "f",     "string.h")
 // POSIX strings.h
 LIBBUILTIN(index, "c*cC*i",       "f",     "strings.h")
 LIBBUILTIN(rindex, "c*cC*i",      "f",     "strings.h")

More information about the cfe-commits mailing list