[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

2025-11-01 Thread via cfe-commits
owenca wrote: > > The `TT_PointerOrReference` token (`*`, `&`, or `&&`) before a declarator > > is part of the type and should not go with the declarator, so wrapping > > before `*` doesn't make sense IMO. The "`TT_PointerOrReference` token (`*`, `&`, or `&&`) before a declarator" part meant

[clang-tools-extra] [clang-tidy] Fix alphabetical order in `ReleaseNotes.rst` (PR #166038)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: mitchell (zeyi2) Changes Fix an incorrect order in `ReleaseNotes.rst` --- Full diff: https://github.com/llvm/llvm-project/pull/166038.diff 1 Files Affected: - (modified) clang-tools-extra/docs/ReleaseNotes.rst (+6-6)

[clang-tools-extra] [clang-tidy] Fix alphabetical order in `ReleaseNotes.rst` (PR #166038)

2025-11-01 Thread via cfe-commits
https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/166038 Fix an incorrect order in `ReleaseNotes.rst` >From 27d4cbd65bcb57cfe13016b4d972dd4683fe9d61 Mon Sep 17 00:00:00 2001 From: mtx Date: Sun, 2 Nov 2025 13:18:19 +0800 Subject: [PATCH] [clang-tidy] Fix order in Relea

[clang] [llvm] [Hexagon] Add V81 instructions and intrinsics (PR #165903)

2025-11-01 Thread Ikhlas Ajbar via cfe-commits
https://github.com/iajbar closed https://github.com/llvm/llvm-project/pull/165903 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8565fbc - [Hexagon] Add V81 instructions and intrinsics (#165903)

2025-11-01 Thread via cfe-commits
Author: Ikhlas Ajbar Date: 2025-11-01T23:55:38-05:00 New Revision: 8565fbc8385699fad2ad4c2fe1fa9da975411e62 URL: https://github.com/llvm/llvm-project/commit/8565fbc8385699fad2ad4c2fe1fa9da975411e62 DIFF: https://github.com/llvm/llvm-project/commit/8565fbc8385699fad2ad4c2fe1fa9da975411e62.diff

[clang] [clang-format] Improve annotating templates (PR #165631)

2025-11-01 Thread via cfe-commits
owenca wrote: > The static_assert hinted to be an expression and when the || was hit the fate > was doomed. As far as I see we can never be sure if it's an expression or a > template, but we can improve the situation for common cases. It seems to me that `static_assert` is a declaration with a

[clang] [flang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-11-01 Thread Kevin Sala Penades via cfe-commits
https://github.com/kevinsala updated https://github.com/llvm/llvm-project/pull/152651 >From 099c502bdf02ed9bc34bbfc70a6e786746ecee90 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Fri, 8 Aug 2025 10:43:52 -0700 Subject: [PATCH 01/12] [OpenMP] Add parser/semantic support for dyn_groupprivate c

[clang] [CIR] Upstream isfpclass op (PR #166037)

2025-11-01 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish updated https://github.com/llvm/llvm-project/pull/166037 >From 058f43b6b69551fb832a38dfd9127510798609ac Mon Sep 17 00:00:00 2001 From: Jasmine Tang Date: Sat, 1 Nov 2025 20:32:55 -0700 Subject: [PATCH] Initial implementation for isfpclass and related builtins Add

[clang] [CIR] Upstream isfpclass op (PR #166037)

2025-11-01 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions c,h,cpp -- clang/include/clang/CIR/Dialect/IR/FPEnv.h c

[clang] [CIR] Upstream isfpclass op (PR #166037)

2025-11-01 Thread Jasmine Tang via cfe-commits
https://github.com/badumbatish created https://github.com/llvm/llvm-project/pull/166037 Ref commit in incubator: ee17ff67f3e567585db991cdad1159520c516bb4 There is a minor change in the assumption for emitting a direct callee. In incubator, `bool hasAttributeNoBuiltin = false` (`llvm-project

[clang] Revert "Ignore trailing NullStmts in StmtExprs for GCC compatibility." (PR #166036)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: KaiWeng (KaiYG) Changes This reverts commit b1e511bf5a4c702ace445848b30070ac2e021241. https://github.com/llvm/llvm-project/issues/160243 Reverting because the GCC C front end is incorrect. --- Full diff: https://github.com/llvm/llvm-proje

[clang] Revert "Ignore trailing NullStmts in StmtExprs for GCC compatibility." (PR #166036)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: KaiWeng (KaiYG) Changes This reverts commit b1e511bf5a4c702ace445848b30070ac2e021241. https://github.com/llvm/llvm-project/issues/160243 Reverting because the GCC C front end is incorrect. --- Full diff: https://github.com/llvm/ll

[clang] Revert "Ignore trailing NullStmts in StmtExprs for GCC compatibility." (PR #166036)

2025-11-01 Thread via cfe-commits
https://github.com/KaiYG created https://github.com/llvm/llvm-project/pull/166036 This reverts commit b1e511bf5a4c702ace445848b30070ac2e021241. https://github.com/llvm/llvm-project/issues/160243 Reverting because the GCC C front end is incorrect. >From 91c2333455265c6596411d033bb849b4b5254f01

[clang] [llvm] [Hexagon] Add V81 instructions and intrinsics (PR #165903)

2025-11-01 Thread Ikhlas Ajbar via cfe-commits
https://github.com/iajbar updated https://github.com/llvm/llvm-project/pull/165903 >From 38b4de6236b1a5dafe5675bdb32ff64439ebe339 Mon Sep 17 00:00:00 2001 From: Ikhlas Ajbar Date: Fri, 31 Oct 2025 11:25:07 -0700 Subject: [PATCH] [Hexagon] Add V81 instructions and intrinsics --- clang/lib/Head

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Shafik Yaghmour via cfe-commits
shafik wrote: I am going to be at the wg21 meeting next week, so I may not have a chance to look at this. https://github.com/llvm/llvm-project/pull/166004 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

2025-11-01 Thread via cfe-commits
@@ -315,6 +315,19 @@ class AnnotatedLine; /// A wrapper around a \c Token storing information about the /// whitespace characters preceding it. + +// Describes the kind of a block comment. +enum class CommentKind { + // A plain comment, i.e. /* ... */. + Plain, + // A comme

[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

2025-11-01 Thread via cfe-commits
https://github.com/Men-cotton updated https://github.com/llvm/llvm-project/pull/162105 >From 7a29a63fe2bfca5e7bf6af5ab2fd3f0ff1ea52cf Mon Sep 17 00:00:00 2001 From: mencotton Date: Tue, 7 Oct 2025 23:14:20 +0900 Subject: [PATCH 01/13] [clang-format] Add SpaceInComments controls for block comme

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-11-01 Thread via cfe-commits
EugeneZelenko wrote: > @EugeneZelenko hi, any progress here? should I fix/add something else? You need to wait for other reviewers. I mostly check documentation and minor code style issues. https://github.com/llvm/llvm-project/pull/139525 ___ cfe-com

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings N/N (PR #165172)

2025-11-01 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/165172 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Update google todo checker with style guide changes. (PR #165565)

2025-11-01 Thread via cfe-commits
@@ -11,41 +11,100 @@ #include "clang/Lex/Preprocessor.h" #include -namespace clang::tidy::google::readability { +namespace clang::tidy { + +namespace google::readability { + +enum class StyleKind { Parentheses, Hyphen }; + +} // namespace google::readability + +template <> st

[clang-tools-extra] [clang-tidy] Update google todo checker with style guide changes. (PR #165565)

2025-11-01 Thread via cfe-commits
@@ -329,6 +329,10 @@ Changes in existing checks adding an option to allow pointer arithmetic via prefix/postfix increment or decrement operators. +- Improved :doc:`google-readability-todo + ` check to accept the new todo EugeneZelenko wrote: ```suggestio

[clang] [clang] Mark labels referenced when used in named break or continue (PR #166033)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (camc) Changes Fixes #166013 Marks labels that appear in a c2y named break or continue statement as referenced to fix false-positive unused diagnostics. --- Full diff: https://github.com/llvm/llvm-project/pull/166033.diff 3 Files

[clang] [clang] Mark labels referenced when used in named break or continue (PR #166033)

2025-11-01 Thread via cfe-commits
https://github.com/camc created https://github.com/llvm/llvm-project/pull/166033 Fixes #166013 Marks labels that appear in a c2y named break or continue statement as referenced to fix false-positive unused diagnostics. >From d758fa880bc3f41c18ff71762e7a60d5eac1aafc Mon Sep 17 00:00:00 2001 Fro

[clang] [llvm] [Clang]: Enable speculative devirtualization (PR #159685)

2025-11-01 Thread Hassnaa Hamdi via cfe-commits
https://github.com/hassnaaHamdi updated https://github.com/llvm/llvm-project/pull/159685 >From 5a6c69b498d59edee3147c5de8c9c7b40f48c4b0 Mon Sep 17 00:00:00 2001 From: Hassnaa Hamdi Date: Tue, 23 Sep 2025 20:47:55 + Subject: [PATCH 1/2] [WPD]: Add devirtualization pass to the pass pipeline.

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `bolt,clang-tools-extra,clang,lld,lldb,llvm,mlir` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/

[clang-tools-extra] [clang-tidy] Update google todo checker with style guide changes. (PR #165565)

2025-11-01 Thread Congcong Cai via cfe-commits
@@ -9,3 +9,14 @@ The relevant style guide section is https://google.github.io/styleguide/cppguide.html#TODO_Comments. Corresponding cpplint.py check: `readability/todo` + +Options +--- + +.. option:: Style + + A string specifying the TODO style for fix-it hints. Accepted

[clang-tools-extra] [clang-tidy] Update google todo checker with style guide changes. (PR #165565)

2025-11-01 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/165565 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Update google todo checker with style guide changes. (PR #165565)

2025-11-01 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/165565 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Port FormatTestComments to verifyFormat (PR #164310)

2025-11-01 Thread via cfe-commits
=?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: owenca wrote: > Only reviewed the "reducing the number of `get...StyleWithColumns` calls" > part, which should really be split to a separate patch. Oh well. Done in #166029. https:/

[clang-tools-extra] 4c21d0c - [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (#166020)

2025-11-01 Thread via cfe-commits
Author: Jakub Kuderski Date: 2025-11-02T00:12:33Z New Revision: 4c21d0cb14806fe1f5f42abd9d7e772013f625cb URL: https://github.com/llvm/llvm-project/commit/4c21d0cb14806fe1f5f42abd9d7e772013f625cb DIFF: https://github.com/llvm/llvm-project/commit/4c21d0cb14806fe1f5f42abd9d7e772013f625cb.diff LOG

[clang] 4c21d0c - [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (#166020)

2025-11-01 Thread via cfe-commits
Author: Jakub Kuderski Date: 2025-11-02T00:12:33Z New Revision: 4c21d0cb14806fe1f5f42abd9d7e772013f625cb URL: https://github.com/llvm/llvm-project/commit/4c21d0cb14806fe1f5f42abd9d7e772013f625cb DIFF: https://github.com/llvm/llvm-project/commit/4c21d0cb14806fe1f5f42abd9d7e772013f625cb.diff LOG

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar closed https://github.com/llvm/llvm-project/pull/166020 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement "rZ" inline asm constraint (PR #166022)

2025-11-01 Thread Vladimir Miloserdov via cfe-commits
https://github.com/miloserdow edited https://github.com/llvm/llvm-project/pull/166022 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement "rZ" inline asm constraint (PR #166022)

2025-11-01 Thread Vladimir Miloserdov via cfe-commits
https://github.com/miloserdow updated https://github.com/llvm/llvm-project/pull/166022 >From 1653040f9f259adec342ced3a5bdbd43824cffe9 Mon Sep 17 00:00:00 2001 From: Vladimir Miloserdov Date: Sat, 1 Nov 2025 21:35:52 + Subject: [PATCH] [AArch64] Implement "rZ" inline asm constraint Add supp

[clang] [llvm] [clang] Add test run of 'dump_ast_matchers.py' (PR #165472)

2025-11-01 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: The test shouldn't be accessing anything over the internet. That should be fixed before landing. https://github.com/llvm/llvm-project/pull/165472 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/13643 Here is the

[clang] [clang-format][NFC] Clean up FormatTestComments.cpp (PR #166029)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: owenca (owenca) Changes - Replace verifyFormat(Foo, Bar, ...) with verifyFormat(Foo, ...) or verifyNoChange(Foo, ...) if Foo = Bar. - Other minor cleanups --- Patch is 27.18 KiB, truncated to 20.00 KiB below, full version: https

[clang] [clang-format][NFC] Clean up FormatTestComments.cpp (PR #166029)

2025-11-01 Thread via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/166029 - Replace verifyFormat(Foo, Bar, ...) with verifyFormat(Foo, ...) or verifyNoChange(Foo, ...) if Foo = Bar. - Other minor cleanups >From f3cc41bacb4636a32abc2312498649cb355940f2 Mon Sep 17 00:00:00 2001 From: O

[clang-tools-extra] [clang-tidy][mlir] Expand to cover pointer of builder (PR #159423)

2025-11-01 Thread Baranov Victor via cfe-commits
@@ -66,10 +86,25 @@ void f() { mlir::ImplicitLocOpBuilder ib; // CHECK-MESSAGES: :[[@LINE+2]]:3: warning: use 'OpType::create(builder, ...)' instead of 'builder.create(...)' [llvm-use-new-mlir-op-builder] - // CHECK-FIXES: mlir::ModuleOp::create(ib); + // CHECK-FIXES: m

[clang-tools-extra] [clang-tidy][mlir] Expand to cover pointer of builder (PR #159423)

2025-11-01 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. Apart from some comments in tests, LGTM https://github.com/llvm/llvm-project/pull/159423 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang-tools-extra] [clang-tidy][mlir] Expand to cover pointer of builder (PR #159423)

2025-11-01 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/159423 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][mlir] Expand to cover pointer of builder (PR #159423)

2025-11-01 Thread Baranov Victor via cfe-commits
@@ -40,22 +48,34 @@ void g(mlir::OpBuilder &b) { b.create(b.getUnknownLoc(), "gaz"); } +class CustomBuilder : public mlir::ImplicitLocOpBuilder { +public: + mlir::NamedOp f(const char *name) { +// CHECK-MESSAGES: :[[@LINE+2]]:12: warning: use 'OpType::create(builder, .

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings N/N (PR #165172)

2025-11-01 Thread Baranov Victor via cfe-commits
vbvictor wrote: @EugeneZelenko, @localspook Added comments in case you missed. AFAIK GitHub doesn't notify on replied messages https://github.com/llvm/llvm-project/pull/165172 ___ cfe-commits mailing list [email protected] https://lists.llvm.

[clang-tools-extra] [clang-tidy] Fix `bugprone-exception-escape` not diagnosing throws in argument lists (PR #165955)

2025-11-01 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/165955 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-11-01 Thread Vasiliy Kulikov via cfe-commits
segoon wrote: @EugeneZelenko hi, any progress here? should I fix/add something else? https://github.com/llvm/llvm-project/pull/139525 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement "rZ" inline asm constraint (PR #166022)

2025-11-01 Thread Vladimir Miloserdov via cfe-commits
https://github.com/miloserdow updated https://github.com/llvm/llvm-project/pull/166022 >From 9482083bb6cb4c9790f325674cf53fad9d38d580 Mon Sep 17 00:00:00 2001 From: Vladimir Miloserdov Date: Sat, 1 Nov 2025 21:35:52 + Subject: [PATCH] [AArch64] Implement "rZ" inline asm constraint Add supp

[clang] [lldb] [Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (PR #165996)

2025-11-01 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/165996 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (PR #165996)

2025-11-01 Thread Michael Buch via cfe-commits
@@ -97,6 +97,9 @@ add_lldb_library(lldbTarget lldbUtility lldbValueObject lldbPluginProcessUtility + + CLANG_LIBS +clangCodeGen Michael137 wrote: This I'm pretty sure we cant do architecturally. Only LLDB's Clang plugin (and dependent compone

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From eb5b66dd394388b4818f566740ee3ba64bc2d06c Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [llvm] [AArch64] Implement "rZ" inline asm constraint (PR #166022)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-clang Author: Vladimir Miloserdov (miloserdow) Changes Add support for the "rZ" inline assembly constraint. The constraint accepts literal zero values and emits the arch zero register (xzr/wzr) instead of materializ

[clang] [llvm] [AArch64] Implement "rZ" inline asm constraint (PR #166022)

2025-11-01 Thread Vladimir Miloserdov via cfe-commits
https://github.com/miloserdow created https://github.com/llvm/llvm-project/pull/166022 Add support for the "rZ" inline assembly constraint. The constraint accepts literal zero values and emits the arch zero register (xzr/wzr) instead of materializing zero in a gpr. In AArch64.cpp: - validat

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Refactor to remove clangDriver dependency from clangFrontend and flangFrontentd (PR #165277)

2025-11-01 Thread Naveen Seth Hanig via cfe-commits
@@ -76,6 +76,7 @@ add_flang_library(flangFrontend CLANG_LIBS clangBasic clangDriver naveen-seth wrote: Done, and thanks for pointing that out! https://github.com/llvm/llvm-project/pull/165277 ___ cfe-commits m

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From b0d5dd5d4d76714dd359ceeec5d50e049a729dd0 Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Refactor to remove clangDriver dependency from clangFrontend and flangFrontentd (PR #165277)

2025-11-01 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/165277 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Refactor to remove clangDriver dependency from clangFrontend (PR #165277)

2025-11-01 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/165277 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From 50dca4ba9f7d4dd328fd88beebf1cd740ed0b538 Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From 8aafd000c2971d7b44edd01a4c16adf70be6796f Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar auto_merge_enabled https://github.com/llvm/llvm-project/pull/166020 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/166020 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Jakub Kuderski (kuhar) Changes Update all uses of variadic `.Cases` to use the initializer list overload instead. I plan to mark variadic `.Cases` as deprecated in a followup PR. For more context, see https://github.com/llvm/llvm-p

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-mc Author: Jakub Kuderski (kuhar) Changes Update all uses of variadic `.Cases` to use the initializer list overload instead. I plan to mark variadic `.Cases` as deprecated in a followup PR. For more context, see https://github.com/llvm/llvm-projec

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Jakub Kuderski (kuhar) Changes Update all uses of variadic `.Cases` to use the initializer list overload instead. I plan to mark variadic `.Cases` as deprecated in a followup PR. For more context, see https://github.com/llvm/llvm-projec

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Jakub Kuderski (kuhar) Changes Update all uses of variadic `.Cases` to use the initializer list overload instead. I plan to mark variadic `.Cases` as deprecated in a followup PR. For more context, see https://github.com/llvm/llvm

[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [ADT] Prepare to deprecate variadic `StringSwitch::Cases`. NFC. (PR #166020)

2025-11-01 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar created https://github.com/llvm/llvm-project/pull/166020 Update all uses of variadic `.Cases` to use the initializer list overload instead. I plan to mark variadic `.Cases` as deprecated in a followup PR. For more context, see https://github.com/llvm/llvm-project/pull/

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-b-1` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/27154 Here is the rele

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From cd50218732cc9242c76e1e7f2dad90b07b3ee372 Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] 04f87c6 - [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (#166016)

2025-11-01 Thread via cfe-commits
Author: Jakub Kuderski Date: 2025-11-01T20:10:52Z New Revision: 04f87c693c7e5bb579c69b5c29086d2a5aae7b8f URL: https://github.com/llvm/llvm-project/commit/04f87c693c7e5bb579c69b5c29086d2a5aae7b8f DIFF: https://github.com/llvm/llvm-project/commit/04f87c693c7e5bb579c69b5c29086d2a5aae7b8f.diff LOG

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar closed https://github.com/llvm/llvm-project/pull/166016 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From 9525a3739014d8ba993101aada0f516efdba8d78 Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [Basic] Use nullptr instead of NULL (NFC) (PR #166008)

2025-11-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/166008 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bf71c34 - [Basic] Use nullptr instead of NULL (NFC) (#166008)

2025-11-01 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-11-01T12:41:51-07:00 New Revision: bf71c342540ee9ca79644c72748c9f288ea4c375 URL: https://github.com/llvm/llvm-project/commit/bf71c342540ee9ca79644c72748c9f288ea4c375 DIFF: https://github.com/llvm/llvm-project/commit/bf71c342540ee9ca79644c72748c9f288ea4c375.diff L

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From a95664fb4e215c4e3d68f606791c339fe6450fd6 Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-11-01 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin commented: Thanks for working on this. I started to review but I had barely any time to scratch the surface https://github.com/llvm/llvm-project/pull/165195 ___ cfe-commits mailing list [email protected] https://lis

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-11-01 Thread Corentin Jabot via cfe-commits
@@ -177,6 +185,11 @@ def CoyieldExpr : StmtNode; def ConceptSpecializationExpr : StmtNode; def RequiresExpr : StmtNode; +// C++26 Expansion statement support expressions +def CXXExpansionInitListExpr : StmtNode; +def CXXExpansionInitListSelectExpr : StmtNode; +def CXXDestructu

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-11-01 Thread Corentin Jabot via cfe-commits
@@ -445,6 +450,8 @@ def err_unspecified_size_with_static : Error< "'static' may not be used without an array size">; def err_expected_parentheses_around_typename : Error< "expected parentheses around type name in %0 expression">; +def err_expansion_stmt_requires_range : Err

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-11-01 Thread Corentin Jabot via cfe-commits
@@ -376,6 +376,7 @@ LANGOPT(ConstexprCallDepth, 32, 512, Benign, "maximum constexpr call depth") LANGOPT(ConstexprStepLimit, 32, 1048576, Benign, "maximum constexpr evaluation steps") +LANGOPT(MaxTemplateForExpansions, 32, 256, Benign, "maximum template for exp

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-11-01 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/165195 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar auto_merge_enabled https://github.com/llvm/llvm-project/pull/166016 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix false-positive lambda shadow diagnostics in explicit object member functions (PR #165919)

2025-11-01 Thread Oleksandr T. via cfe-commits
@@ -8492,12 +8492,13 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, DeclContext *NewDC = D->getDeclContext(); if (FieldDecl *FD = dyn_cast(ShadowedDecl)) { -if (CXXMethodDecl *MD = dyn_cast(NewDC)) { +if (CXXMethodDecl *MD = +dyn_cast

[clang] [Clang] fix false-positive lambda shadow diagnostics in explicit object member functions (PR #165919)

2025-11-01 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/165919 >From 2b9ad0f1609fa7926448451750eccfcfa080b520 Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Fri, 31 Oct 2025 22:54:53 +0200 Subject: [PATCH 1/3] [Clang] fix false-positive lambda shadow diagnostics

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From 1f35dcf02856c5dea76c021a19b9c37b9a21fa33 Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/166016 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jakub Kuderski (kuhar) Changes Suggest the initializer_list overload instead. I plan to deprecate the last variadic `.Cases` in a separate PR. For more context, see https://github.com/llvm/llvm-project/pull/163117. --- Full diff: https:

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-adt Author: Jakub Kuderski (kuhar) Changes Suggest the initializer_list overload instead. I plan to deprecate the last variadic `.Cases` in a separate PR. For more context, see https://github.com/llvm/llvm-project/pull/163117. --- Full diff: htt

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp -- clang/test/Parser/cxx-auto-type-specifier.cpp cl

[clang] [llvm] [ADT] Deprecate variadic `StringSwitch::CasesLower`. NFC. (PR #166016)

2025-11-01 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar created https://github.com/llvm/llvm-project/pull/166016 Suggest the initializer_list overload instead. I plan to deprecate the last variadic `.Cases` in a separate PR. For more context, see https://github.com/llvm/llvm-project/pull/163117. >From 0f1d11641f870f655c19

[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)

2025-11-01 Thread Osama Abdelkader via cfe-commits
https://github.com/osamakader updated https://github.com/llvm/llvm-project/pull/166004 >From 9bc604524425641cdf7072a080d4e7ef160c51a1 Mon Sep 17 00:00:00 2001 From: Osama Abdelkader Date: Sat, 1 Nov 2025 19:53:55 +0200 Subject: [PATCH] [clang] Reject 'auto' storage class with type specifier in

[clang] [clang] Optimize SourceManager.getSpellingLocSlowCase and SourceManager.getFileLocSlowCase (PR #164269)

2025-11-01 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. This change seems fine to me, thanks! https://github.com/llvm/llvm-project/pull/164269 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [Basic] Use nullptr instead of NULL (NFC) (PR #166008)

2025-11-01 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/166008 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix false-positive lambda shadow diagnostics in explicit object member functions (PR #165919)

2025-11-01 Thread Corentin Jabot via cfe-commits
@@ -8492,12 +8492,13 @@ void Sema::CheckShadow(NamedDecl *D, NamedDecl *ShadowedDecl, DeclContext *NewDC = D->getDeclContext(); if (FieldDecl *FD = dyn_cast(ShadowedDecl)) { -if (CXXMethodDecl *MD = dyn_cast(NewDC)) { +if (CXXMethodDecl *MD = +dyn_cast

[clang] [Clang] fix false-positive lambda shadow diagnostics in explicit object member functions (PR #165919)

2025-11-01 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/165919 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix false-positive lambda shadow diagnostics in explicit object member functions (PR #165919)

2025-11-01 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/165919 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Basic] Use nullptr instead of NULL (NFC) (PR #166008)

2025-11-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Identified with modernize-use-nullptr. --- Full diff: https://github.com/llvm/llvm-project/pull/166008.diff 1 Files Affected: - (modified) clang/lib/Basic/Targets/AVR.cpp (+17-17) ``diff

[clang] [Basic] Use nullptr instead of NULL (NFC) (PR #166008)

2025-11-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/166008 Identified with modernize-use-nullptr. >From 0f44f8f9106be8c6b2be729df9b3a02249618492 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 29 Oct 2025 23:17:59 -0700 Subject: [PATCH] [Basic] Use nullpt

[clang] [clang][HLSL] Fix include guard typo in hlsl_compat_overloads.h (PR #164540)

2025-11-01 Thread via cfe-commits
github-actions[bot] wrote: @Kristianerik Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a b

[clang] [clang][HLSL] Fix include guard typo in hlsl_compat_overloads.h (PR #164540)

2025-11-01 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/164540 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 44df23a - [clang][HLSL] Fix include guard typo in hlsl_compat_overloads.h (#164540)

2025-11-01 Thread via cfe-commits
Author: Krisitan Erik Olsen Date: 2025-11-01T18:01:06Z New Revision: 44df23aa8ea20618318feda3a445457be3da1ecf URL: https://github.com/llvm/llvm-project/commit/44df23aa8ea20618318feda3a445457be3da1ecf DIFF: https://github.com/llvm/llvm-project/commit/44df23aa8ea20618318feda3a445457be3da1ecf.diff

[clang] [flang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-11-01 Thread Alexey Bataev via cfe-commits
@@ -17694,7 +17697,7 @@ OMPClause *SemaOpenMP::ActOnOpenMPSingleExprWithArgClause( static_cast(Argument[ScheduleKind]), Expr, StartLoc, LParenLoc, ArgumentLoc[Modifier1], ArgumentLoc[Modifier2], ArgumentLoc[ScheduleKind], DelimLoc, EndLoc); -break;

[clang] [lldb] [Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (PR #165996)

2025-11-01 Thread Dan Liew via cfe-commits
@@ -378,3 +379,31 @@ clang::CreateLLVMCodeGen(DiagnosticsEngine &Diags, llvm::StringRef ModuleName, HeaderSearchOpts, PreprocessorOpts, CGO, C, CoverageInfo); } + +namespace clang { +namespace CodeGen { +std::option

[clang] [flang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-11-01 Thread Alexey Bataev via cfe-commits
@@ -12722,6 +12725,20 @@ void OMPClauseReader::VisitOMPXDynCGroupMemClause(OMPXDynCGroupMemClause *C) { C->setLParenLoc(Record.readSourceLocation()); } +void OMPClauseReader::VisitOMPDynGroupprivateClause( +OMPDynGroupprivateClause *C) { + VisitOMPClauseWithPreInit(C);

  1   2   >