[all-commits] [llvm/llvm-project] 9e9569: [clang][Headers] Do not define varargs macros for ...

Adhemerval Zanella via All-commits all-commits at lists.llvm.org
Tue Nov 8 11:30:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e956995db1fc7e792e3dfb3a465a52626195557
      https://github.com/llvm/llvm-project/commit/9e956995db1fc7e792e3dfb3a465a52626195557
  Author: Adhemerval Zanella <adhemerval.zanella at linaro.org>
  Date:   2022-11-08 (Tue, 08 Nov 2022)

  Changed paths:
    M clang/lib/Headers/stdarg.h
    M compiler-rt/test/sanitizer_common/TestCases/Linux/signal_send.cpp

  Log Message:
  -----------
  [clang][Headers] Do not define varargs macros for __need___va_list

The glibc uses the define to avoid namespace polution on headers
that requires variadic argument, where the inclusion of stdarg.h is
required to obtain the va_list definition.

For such cases only __gnuc_va_list is required.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D137268




More information about the All-commits mailing list