[all-commits] [llvm/llvm-project] 0e2468: [Clang] CWG722: nullptr to ellipses (#104704)

Mital Ashok via All-commits all-commits at lists.llvm.org
Tue Aug 20 09:32:14 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e24686af49d2f9e50438d3a27db6f1ade594855
      https://github.com/llvm/llvm-project/commit/0e24686af49d2f9e50438d3a27db6f1ade594855
  Author: Mital Ashok <mital at mitalashok.co.uk>
  Date:   2024-08-20 (Tue, 20 Aug 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/FormatString.cpp
    M clang/lib/Sema/SemaExpr.cpp
    A clang/test/CXX/drs/cwg722.cpp
    M clang/test/CXX/drs/cwg7xx.cpp
    A clang/test/Sema/format-pointer.c
    M clang/test/Sema/format-strings-pedantic.c
    M clang/www/cxx_dr_status.html

  Log Message:
  -----------
  [Clang] CWG722: nullptr to ellipses (#104704)

https://cplusplus.github.io/CWG/issues/722.html

nullptr passed to a variadic function now converted to void* in C++.
This does not affect C23 nullptr.

Also fixes -Wformat-pedantic so that it no longer warns for nullptr
passed to %p (because it is converted to void* in C++ and it is allowed
for va_arg(ap, void*) in C23)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list