summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-01-16 16:55:41 +0000
committerNico Weber <nicolasweber@gmx.de>2018-01-16 16:55:41 +0000
commitdab736f16d5441ed7ac712cd076f16c03f720fcc (patch)
treec429d68dc4836bcd99dbb39e3431c46419955fab
parentc6df38c9852e5aa53999021c281c511a571a6d67 (diff)
downloadbcm5719-llvm-dab736f16d5441ed7ac712cd076f16c03f720fcc.tar.gz
bcm5719-llvm-dab736f16d5441ed7ac712cd076f16c03f720fcc.zip
Add va_start()/va_copy()/va_end to Builtins.def
That way, clang suggests including stdarg.h when these are used in C files. https://reviews.llvm.org/D42085 llvm-svn: 322573
-rw-r--r--clang/include/clang/Basic/Builtins.def4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/Builtins.def b/clang/include/clang/Basic/Builtins.def
index 00bf1bd7bb5..716f014fc3d 100644
--- a/clang/include/clang/Basic/Builtins.def
+++ b/clang/include/clang/Basic/Builtins.def
@@ -802,6 +802,10 @@ LANGBUILTIN(__fastfail, "vUi", "nr", ALL_MS_LANGUAGES)
LIBBUILTIN(_setjmpex, "iJ", "fj", "setjmpex.h", ALL_MS_LANGUAGES)
// C99 library functions
+// C99 stdarg.h
+LIBBUILTIN(va_start, "vA.", "fnt", "stdarg.h", ALL_LANGUAGES)
+LIBBUILTIN(va_end, "vA", "fn", "stdarg.h", ALL_LANGUAGES)
+LIBBUILTIN(va_copy, "vAA", "fn", "stdarg.h", ALL_LANGUAGES)
// C99 stdlib.h
LIBBUILTIN(abort, "v", "fr", "stdlib.h", ALL_LANGUAGES)
LIBBUILTIN(calloc, "v*zz", "f", "stdlib.h", ALL_LANGUAGES)
OpenPOWER on IntegriCloud