From: Nico Weber Date: Tue, 16 Jan 2018 16:55:41 +0000 (+0000) Subject: Add va_start()/va_copy()/va_end to Builtins.def X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f41e84dea2b7a2eb7b105acdabfe1139c298db6b;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322573 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Builtins.def b/include/clang/Basic/Builtins.def index 00bf1bd7bb..716f014fc3 100644 --- a/include/clang/Basic/Builtins.def +++ b/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)