diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2018-01-16 16:55:41 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2018-01-16 16:55:41 +0000 |
| commit | dab736f16d5441ed7ac712cd076f16c03f720fcc (patch) | |
| tree | c429d68dc4836bcd99dbb39e3431c46419955fab /clang | |
| parent | c6df38c9852e5aa53999021c281c511a571a6d67 (diff) | |
| download | bcm5719-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
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/Basic/Builtins.def | 4 |
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) |

