[PATCH] D156054: [Clang][Sema] DR722 (nullptr and varargs) and missing -Wvarargs diagnostics
Mital Ashok via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 10 14:41:44 PDT 2023
MitalAshok updated this revision to Diff 549176.
MitalAshok added a comment.
Address feedback; Reuse DefaultArgumentPromotion instead of duplicating its functionality when building VaArgExpr
There is the added bonus for it working with dependent types somewhat (`template<typename T> __builtin_va_arg(ap, T[2]);` will warn in the template instead of waiting for it to be instantiated).
I can add the check for dependent types back if this is unwanted.
I don't think there are any edge cases where this will give a false warning.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156054/new/
https://reviews.llvm.org/D156054
Files:
clang/docs/ReleaseNotes.rst
clang/lib/AST/FormatString.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/CXX/drs/dr7xx.cpp
clang/test/CodeGen/xcore-abi.c
clang/test/Sema/format-pointer.c
clang/test/Sema/format-strings-pedantic.c
clang/test/SemaCXX/format-strings-0x-nopedantic.cpp
clang/test/SemaCXX/varargs.cpp
clang/www/cxx_dr_status.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156054.549176.patch
Type: text/x-patch
Size: 15066 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230810/06bbd054/attachment.bin>
More information about the cfe-commits
mailing list