[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-04-22 Thread via cfe-commits
zibi2 wrote: > Actually, a trailing comma in the macro invocation might work too. It’s been > a while since I last had to deal w/ this. Yes, it does and I think it's cleaner than my proposal. Thank you. https://github.com/llvm/llvm-project/pull/84520 ___

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-04-22 Thread via cfe-commits
zibi2 wrote: I agree the code is not C++17 compliant. An alternative fix would be to compile this file with `-Wno-c++20-extensions`. https://github.com/llvm/llvm-project/pull/84520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-04-19 Thread via cfe-commits
Sirraide wrote: Actually, a trailing comma in the macro invocation might work too. It’s been a while since I last had to deal w/ this. https://github.com/llvm/llvm-project/pull/84520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-04-19 Thread via cfe-commits
Sirraide wrote: > @Sirraide, I noticed the following build issue when new compiler with this > change (bootstrap compiler) is being used to build one of the files for > `clangd`: > > ``` > .../clang-tools-extra/clangd/unittests/FindTargetTests.cpp:430:29: error: > passing no argument for the

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-04-19 Thread via cfe-commits
zibi2 wrote: @Sirraide, I noticed the following build issue when new compiler with this change (bootstrap compiler) is being used to build one of the files for `clangd`: ``` .../clang-tools-extra/clangd/unittests/FindTargetTests.cpp:430:29: error: passing no argument for the '...' parameter

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-20 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/84520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-20 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/84520 >From 502692869e3105bb2c55955bc4baff63b1475770 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Fri, 8 Mar 2024 18:15:07 +0100 Subject: [PATCH 1/3] [Clang] Update missing varargs arg extension warnings --- clang/

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-20 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/84520 >From 502692869e3105bb2c55955bc4baff63b1475770 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Fri, 8 Mar 2024 18:15:07 +0100 Subject: [PATCH 1/3] [Clang] Update missing varargs arg extension warnings --- clang/

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-20 Thread via cfe-commits
@@ -993,11 +993,18 @@ MacroArgs *Preprocessor::ReadMacroCallArgumentList(Token &MacroName, // If the macro contains the comma pasting extension, the diagnostic // is suppressed; we know we'll get another diagnostic later. if (!MI->hasCommaPasting()) { -

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-20 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM aside from a comment request https://github.com/llvm/llvm-project/pull/84520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-20 Thread Aaron Ballman via cfe-commits
@@ -993,11 +993,18 @@ MacroArgs *Preprocessor::ReadMacroCallArgumentList(Token &MacroName, // If the macro contains the comma pasting extension, the diagnostic // is suppressed; we know we'll get another diagnostic later. if (!MI->hasCommaPasting()) { -

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-20 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/84520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/84520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-08 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Just a nit here. https://github.com/llvm/llvm-project/pull/84520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-08 Thread Shafik Yaghmour via cfe-commits
@@ -993,11 +993,18 @@ MacroArgs *Preprocessor::ReadMacroCallArgumentList(Token &MacroName, // If the macro contains the comma pasting extension, the diagnostic // is suppressed; we know we'll get another diagnostic later. if (!MI->hasCommaPasting()) { -

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-08 Thread via cfe-commits
https://github.com/Sirraide updated https://github.com/llvm/llvm-project/pull/84520 >From 502692869e3105bb2c55955bc4baff63b1475770 Mon Sep 17 00:00:00 2001 From: Sirraide Date: Fri, 8 Mar 2024 18:15:07 +0100 Subject: [PATCH 1/2] [Clang] Update missing varargs arg extension warnings --- clang/

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Sirraide) Changes This updates a few warnings that were diagnosing no arguments for a `...` variadic macro parameter as a GNU extension when it actually is a C++20/C23 extension now. This fixes #84495. --- Full diff: https://githu

[clang] [Clang] Update missing varargs arg extension warnings (PR #84520)

2024-03-08 Thread via cfe-commits
https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/84520 This updates a few warnings that were diagnosing no arguments for a `...` variadic macro parameter as a GNU extension when it actually is a C++20/C23 extension now. This fixes #84495. >From 502692869e3105bb2c