[clang] [clang][bytecode] Check for global decls in destructors (PR #137525)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/10975 Here is the relevant piece of the build log f

[clang] 41112db - [clang][NFC] Remove old commented out code

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:50:14+03:00 New Revision: 41112db5a5a7806b27de9b6a460894b82036b41a URL: https://github.com/llvm/llvm-project/commit/41112db5a5a7806b27de9b6a460894b82036b41a DIFF: https://github.com/llvm/llvm-project/commit/41112db5a5a7806b27de9b6a460894b82036b41a.

[clang] b10296e - [clang][NFC] Convert `Sema::PragmaClangSectionKind` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:57:10+03:00 New Revision: b10296eff0c26497aac01b96d57a5dffacebec67 URL: https://github.com/llvm/llvm-project/commit/b10296eff0c26497aac01b96d57a5dffacebec67 DIFF: https://github.com/llvm/llvm-project/commit/b10296eff0c26497aac01b96d57a5dffacebec67.

[clang] [lldb] [clang] Add `__ptrauth_restricted_intptr` qualifier (PR #137580)

2025-04-27 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/137580 >From 0129e28643f667febb23dba1521134a6151c2f7d Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Sun, 27 Apr 2025 22:33:44 -0700 Subject: [PATCH] [clang] Add `__ptrauth_restricted_intptr` qualifier __ptrauth_rest

[clang] 4f96ce4 - [clang][NFC] Convert `Sema::PragmaClangSectionAction` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T09:06:32+03:00 New Revision: 4f96ce414bcc35ec7e3d8bec18f6a4d7a4c4632a URL: https://github.com/llvm/llvm-project/commit/4f96ce414bcc35ec7e3d8bec18f6a4d7a4c4632a DIFF: https://github.com/llvm/llvm-project/commit/4f96ce414bcc35ec7e3d8bec18f6a4d7a4c4632a.

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Lorenzo Mauro via cfe-commits
LorenzoMauro wrote: Thanks for taking a look! Happy to adjust anything if needed. https://github.com/llvm/llvm-project/pull/137544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-27 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > > Then secondly, LLVM only allows "squash and merge" merging of PRs - so all > > these nicely split changes (with individual explanations soon, I'd hope!) > > would end up all mushed together. So unfortunately, to preserve the info > > about each of them, they'd need to be fi

[clang] [ASTMatchers] Use llvm::is_detected (NFC) (PR #137560)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137560.diff 2 Files Affected: - (modified) clang/include/clang/ASTMatchers/ASTMatchersInternal.h (+5-13) - (modified) clang/unittests/ASTMat

[clang] [ASTMatchers] Use llvm::is_detected (NFC) (PR #137560)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137560 None >From 11261a022f2720eb3e368fd88981cb6b1c82c223 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Apr 2025 14:53:36 -0700 Subject: [PATCH] [ASTMatchers] Use llvm::is_detected (NFC) --- .../c

[clang] c215318 - [clang] Fix and test triviality of __ptrauth types (#137474)

2025-04-27 Thread via cfe-commits
Author: halbi2 Date: 2025-04-27T20:07:49-07:00 New Revision: c21531895a5d5e6ffc349d6e229d71dd1463860a URL: https://github.com/llvm/llvm-project/commit/c21531895a5d5e6ffc349d6e229d71dd1463860a DIFF: https://github.com/llvm/llvm-project/commit/c21531895a5d5e6ffc349d6e229d71dd1463860a.diff LOG: [

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Thanks! https://github.com/llvm/llvm-project/pull/137474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread via cfe-commits
github-actions[bot] wrote: @halbi2 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 build,

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/137474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137574.diff 5 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp (+1-1) - (modified) clang/

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137574 None >From b26fb883437b6822cfab50189d1fe96cb3ca330f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 13 Apr 2025 17:34:57 -0700 Subject: [PATCH] [clang] Use range constructors of *Set (NFC) --- ..

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/15145 Here is the relevant piece of the build lo

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/16865 Her

[clang-tools-extra] [clang-tidy] Improve integer comparison by matching valid expressions outside implicitCastExpr (PR #134188)

2025-04-27 Thread Congcong Cai via cfe-commits
@@ -52,8 +54,17 @@ intCastExpression(bool IsSigned, const auto StaticCastExpr = cxxStaticCastExpr(has(ImplicitCastExpr)); const auto FunctionalCastExpr = cxxFunctionalCastExpr(has(ImplicitCastExpr)); + // Match function calls or variable references not directly wrapped by

[clang] ed95624 - [clang][NFC] Convert `StmtDiscardKind` to a scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T06:54:00+03:00 New Revision: ed95624e208e5bf7c3eeadfccee0fb6060a4ca98 URL: https://github.com/llvm/llvm-project/commit/ed95624e208e5bf7c3eeadfccee0fb6060a4ca98 DIFF: https://github.com/llvm/llvm-project/commit/ed95624e208e5bf7c3eeadfccee0fb6060a4ca98.

[clang] 096c20c - [clang][NFC] Convert enums in TypeLocBuilder into constants

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T06:57:16+03:00 New Revision: 096c20c0b1284ccf3d3af106a026450403bc288f URL: https://github.com/llvm/llvm-project/commit/096c20c0b1284ccf3d3af106a026450403bc288f DIFF: https://github.com/llvm/llvm-project/commit/096c20c0b1284ccf3d3af106a026450403bc288f.

[clang] 55651e7 - [clang] Use range constructors of *Set (NFC) (#137574)

2025-04-27 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-27T21:17:14-07:00 New Revision: 55651e743b413af8787aa526de63d8c26c4a718b URL: https://github.com/llvm/llvm-project/commit/55651e743b413af8787aa526de63d8c26c4a718b DIFF: https://github.com/llvm/llvm-project/commit/55651e743b413af8787aa526de63d8c26c4a718b.diff L

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/137574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Close #54334 --- Full diff: https://github.com/llvm/llvm-project/pull/137577.diff 7 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions.rst (+22) - (modified) clang/docs/ReleaseNotes.rst (+1

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/137571 >From 1f4e0a2f61f75c45aea2651dff2f08d1a60d4526 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Apr 2025 19:44:12 -0700 Subject: [PATCH 1/2] [ASTMatchers] Simplify isDefaultedHelper (NFC) We can

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/137571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Jakub Kuderski via cfe-commits
@@ -871,14 +871,11 @@ IteratorT matchesFirstInPointerRange(const MatcherT &Matcher, IteratorT Start, return End; } -template ::value> - * = nullptr> -inline bool isDefaultedHelper(const T *) { +template inline bool isDefaultedHelper(const T *FD) {

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

2025-04-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/137574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-27 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/137577 Close #54334 >From e505e4e1ca2457db2aba34e50b1eeaf9e8458020 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 27 Apr 2025 21:18:03 -0700 Subject: [PATCH] [clang-format] Add OneLineFormatOffRegex option Close #

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread via cfe-commits
@@ -0,0 +1,748 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread via cfe-commits
@@ -0,0 +1,77 @@ +//===--- ConflictingGlobalAccesses.h - clang-tidy ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread via cfe-commits
@@ -0,0 +1,748 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [llvm] [WIP] Correct lowering of `fp128` intrinsics (PR #76558)

2025-04-27 Thread Trevor Gross via cfe-commits
https://github.com/tgross35 updated https://github.com/llvm/llvm-project/pull/76558 >From dafb3a378876db6b3bf505b425b386fd8f79c918 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Fri, 11 Aug 2023 22:16:01 -0400 Subject: [PATCH 1/5] [IR] Add a test for `f128` libcall lowering (NFC) `f128` int

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread via cfe-commits
@@ -20,6 +20,7 @@ #include "CastingThroughVoidCheck.h" #include "ChainedComparisonCheck.h" #include "ComparePointerToMemberVirtualFunctionCheck.h" +#include "ConflictingGlobalAccesses.h" ConcreteCactus wrote: I renamed the files to end with check, and added th

[clang] [llvm] [WIP] Correct lowering of `fp128` intrinsics (PR #76558)

2025-04-27 Thread Trevor Gross via cfe-commits
https://github.com/tgross35 updated https://github.com/llvm/llvm-project/pull/76558 >From dafb3a378876db6b3bf505b425b386fd8f79c918 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Fri, 11 Aug 2023 22:16:01 -0400 Subject: [PATCH 1/4] [IR] Add a test for `f128` libcall lowering (NFC) `f128` int

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,748 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread via cfe-commits
https://github.com/ConcreteCactus updated https://github.com/llvm/llvm-project/pull/130421 >From 6879af38a7d22cad2850fed2fc146198b52348a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ron=20H=C3=A1rn=C3=A1si?= Date: Fri, 22 Nov 2024 21:43:04 +0100 Subject: [PATCH] [clang-tidy] Added Conflictin

[clang] [llvm] [WIP] Correct lowering of `fp128` intrinsics (PR #76558)

2025-04-27 Thread Trevor Gross via cfe-commits
https://github.com/tgross35 updated https://github.com/llvm/llvm-project/pull/76558 >From dafb3a378876db6b3bf505b425b386fd8f79c918 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Fri, 11 Aug 2023 22:16:01 -0400 Subject: [PATCH 1/7] [IR] Add a test for `f128` libcall lowering (NFC) `f128` int

[clang] [CIR] Upstream global initialization for VectorType (PR #137511)

2025-04-27 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/137511 This change adds global initialization for VectorType Issue https://github.com/llvm/llvm-project/issues/136487 >From 153f0c0daa33b1c71ced4a0f050d49656e72f505 Mon Sep 17 00:00:00 2001 From: AmrDeveloper D

[clang] [CIR] Upstream global initialization for VectorType (PR #137511)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This change adds global initialization for VectorType Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https://github.com/llvm/llvm-project/pull/137511.diff 7 Files Affected:

[clang] [llvm] [mlir] [AMDGPU] Add a new amdgcn.load.to.lds intrinsic (PR #137425)

2025-04-27 Thread Jay Foad via cfe-commits
jayfoad wrote: > This PR adds a amdgns_load_to_lds intrinsic that abstracts over loads to LDS > from global (address space 1) pointers and buffer fat pointers (address space > 7), since they use the same API and "gather from a pointer to LDS" is > something of an abstract operation. High leve

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt approved this pull request. Good catch, we'll need to add cases to the test when pushing __ptrauth_restricted_intptr https://github.com/llvm/llvm-project/pull/137474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Lorenzo Mauro via cfe-commits
https://github.com/LorenzoMauro created https://github.com/llvm/llvm-project/pull/137544 Introduce a new FormatStyle option, `ApplyAlwaysOnePerLineToTemplateArguments`, which controls whether `BinPackParameters=AlwaysOnePerLine` also applies to template argument lists. This allows users to

[clang] [Clang][CodeGen][X86] don't coerce int128 into `{i64,i64}` for SysV-like ABIs (PR #135230)

2025-04-27 Thread via cfe-commits
https://github.com/T0b1-iOS updated https://github.com/llvm/llvm-project/pull/135230 >From f0bb89e5cfe2739dc51faef64215251cfe1516d4 Mon Sep 17 00:00:00 2001 From: T0b1 Date: Thu, 10 Apr 2025 19:16:00 +0200 Subject: [PATCH 1/2] [Clang][CodeGen][X86] don't coerce int128 into `{i64,i64}` for SysV

[clang] [Clang][CodeGen][X86] don't coerce int128 into `{i64,i64}` for SysV-like ABIs (PR #135230)

2025-04-27 Thread via cfe-commits
@@ -2595,6 +2595,14 @@ GetX86_64ByValArgumentPair(llvm::Type *Lo, llvm::Type *Hi, ABIArgInfo X86_64ABIInfo:: classifyReturnType(QualType RetTy) const { + // return int128 as i128 + if (const BuiltinType *BT = RetTy->getAs()) { +BuiltinType::Kind k = BT->getKind(); +

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. (PR #137556)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137556.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp (+2-1) ``

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Oops, fixing the assertion failure in https://github.com/llvm/llvm-project/pull/137556. https://github.com/llvm/llvm-project/pull/135329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [lld] [llvm] [mlir] [NFC] Use more isa and isa_and_nonnull instead dyn_cast for predicates (PR #137393)

2025-04-27 Thread Balazs Benics via cfe-commits
steakhal wrote: > Nice cleanups! > > Do we have clang-tidy checks for these? It would be nice for tooling to take > care of all this. There is a Static Analyzer checker, but I'm not exactly sure if it would catch this of the top of my head. See [alpha.llvm.Conventions](https://clang.llvm.org

[clang] [llvm] [mlir] [AMDGPU] Add a new amdgcn.load.to.lds intrinsic (PR #137425)

2025-04-27 Thread Jakub Kuderski via cfe-commits
kuhar wrote: > High level question: I don't understand why you call this a "gather" > operation. What do you mean by that? Isn't it semantically just a memcpy, or > a (global/buffer) load followed by a (LDS) store? This is more like a subgroup operation because the destination offset is unifo

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -1259,6 +1259,45 @@ struct FormatStyle { /// \version 3.7 BinPackParametersStyle BinPackParameters; + /// If ``BinPackParameters`` is set to ``AlwaysOnePerLine``, specifies whether + /// template argument lists should also be split across multiple lines. + /// + //

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -9024,6 +9024,55 @@ TEST_F(FormatTest, FormatsDeclarationBreakAlways) { BreakAlways); } +TEST_F(FormatTest, ApplyAlwaysOnePerLineToTemplateArguments) { + FormatStyle Style = getGoogleStyle(); HazardyKnusperkeks wrote: Why google style? https://gith

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -5326,6 +5365,8 @@ struct FormatStyle { BinPackArguments == R.BinPackArguments && BinPackLongBracedList == R.BinPackLongBracedList && BinPackParameters == R.BinPackParameters && + ApplyAlwaysOnePerLineToTemplateArguments ==

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -186,6 +186,9 @@ class AnnotatedLine { bool MightBeFunctionDecl; bool IsMultiVariableDeclStmt; + /// \c True if this token is part o a template declaration. + bool InTemplateDecl = false; HazardyKnusperkeks wrote: A leftover? https://github.com/llvm

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. (PR #137556)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/137556 None >From 46d5c45c4c7a6abe0255aa31e2c7435d7f3e8289 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 27 Apr 2025 15:16:40 -0700 Subject: [PATCH] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -444,6 +444,66 @@ TEST_F(FormatTestComments, UnderstandsBlockComments) { " int jjj; /*b*/"); } +TEST_F(FormatTestComments, HazardyKnusperkeks wrote: What's your reason for this test? You didn't change anything comment related, right?

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -1259,6 +1259,45 @@ struct FormatStyle { /// \version 3.7 BinPackParametersStyle BinPackParameters; + /// If ``BinPackParameters`` is set to ``AlwaysOnePerLine``, specifies whether HazardyKnusperkeks wrote: Add a reference on `BinPackParameters` to t

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -2074,6 +2087,7 @@ class AnnotatingParser { if (ctx.ContextType == Context::StructArrayInitializer) return LT_ArrayOfStructInitializer; +markTokenAsTemplateArgumentInLine(); HazardyKnusperkeks wrote: I think you want this before the prece

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137568 The last use was removed by: commit f8afb8fdedae04ad2670857c97925c439d47d862 Author: Aaron Puchert Date: Fri Apr 29 22:12:21 2022 +0200 >From dc12390ff2cb857ce68fd75c5e0c1e2536c1ef67 Mon Sep 17

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes The last use was removed by: commit f8afb8fdedae04ad2670857c97925c439d47d862 Author: Aaron Puchert Date: Fri Apr 29 22:12:21 2022 +0200 --- Full diff: https://github.co

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) Changes The last use was removed by: commit f8afb8fdedae04ad2670857c97925c439d47d862 Author: Aaron Puchert Date: Fri Apr 29 22:12:21 2022 +0200 --- Full diff: https://

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/137568 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Lorenzo Mauro (LorenzoMauro) Changes Introduce a new FormatStyle option, `ApplyAlwaysOnePerLineToTemplateArguments`, which controls whether `BinPackParameters=AlwaysOnePerLine` also applies to template argument lists. This allow

[clang] [Clang][CodeGen][X86] don't coerce int128 into `{i64,i64}` for SysV-like ABIs (PR #135230)

2025-04-27 Thread via cfe-commits
https://github.com/T0b1-iOS updated https://github.com/llvm/llvm-project/pull/135230 >From f0bb89e5cfe2739dc51faef64215251cfe1516d4 Mon Sep 17 00:00:00 2001 From: T0b1 Date: Thu, 10 Apr 2025 19:16:00 +0200 Subject: [PATCH 1/3] [Clang][CodeGen][X86] don't coerce int128 into `{i64,i64}` for SysV

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/135329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/135329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 16e5c3d - [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (#135329)

2025-04-27 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-04-27T14:24:32-07:00 New Revision: 16e5c3ddadaa8d25698a71c0308b1d0ca887d11f URL: https://github.com/llvm/llvm-project/commit/16e5c3ddadaa8d25698a71c0308b1d0ca887d11f DIFF: https://github.com/llvm/llvm-project/commit/16e5c3ddadaa8d25698a71c0308b1d0ca887d11f.diff

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/135329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Support ptr to ptr and union in webkit member checker (PR #137565)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/137565 None >From 9d6c807a5d7b853876132be0668357f6945978af Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 20 Apr 2025 18:38:31 -0700 Subject: [PATCH 1/2] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker con

[clang] Support ptr to ptr and union in webkit member checker (PR #137565)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137565.diff 5 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMemberChecker.cpp (+67-61) - (modifi

[clang] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consistent with other checkers (PR #137559)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/137559 >From 9d6c807a5d7b853876132be0668357f6945978af Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 20 Apr 2025 18:38:31 -0700 Subject: [PATCH 1/2] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consisten

[clang] Support ptr to ptr and union in webkit member checker (PR #137565)

2025-04-27 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 HEAD~1 HEAD --extensions cpp -- clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMem

[clang-tools-extra] [clangd] Add container field to remote index Refs grpc method (PR #71605)

2025-04-27 Thread Thomas Du Plessis via cfe-commits
tdupes wrote: done https://github.com/llvm/llvm-project/pull/71605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f3a61f6 - [clang][NFC] Convert `LookupResult::AmbiguityKind` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:22:57+03:00 New Revision: f3a61f61eef53ecc0b59d14c52396df4f47ee5e8 URL: https://github.com/llvm/llvm-project/commit/f3a61f61eef53ecc0b59d14c52396df4f47ee5e8 DIFF: https://github.com/llvm/llvm-project/commit/f3a61f61eef53ecc0b59d14c52396df4f47ee5e8.

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-27 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/137577 >From ce33e11aedf297e9cfb5e20efb4ce316886e6cb1 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 27 Apr 2025 21:18:03 -0700 Subject: [PATCH] [clang-format] Add OneLineFormatOffRegex option Close #54334 --- cla

[clang] 268f0d4 - [ASTMatchers] Simplify isDefaultedHelper (NFC) (#137571)

2025-04-27 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-27T21:50:45-07:00 New Revision: 268f0d4ebe47d73c361f8f2bce051d58994a33bc URL: https://github.com/llvm/llvm-project/commit/268f0d4ebe47d73c361f8f2bce051d58994a33bc DIFF: https://github.com/llvm/llvm-project/commit/268f0d4ebe47d73c361f8f2bce051d58994a33bc.diff L

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/137571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16764 Here is the relevant piece of the

[clang] a764358 - [clang][NFC] Convert DeclUpdateKind to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:05:46+03:00 New Revision: a764358a9d86e9169bea895c8efbb61cc37ec788 URL: https://github.com/llvm/llvm-project/commit/a764358a9d86e9169bea895c8efbb61cc37ec788 DIFF: https://github.com/llvm/llvm-project/commit/a764358a9d86e9169bea895c8efbb61cc37ec788.

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 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 `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/9242 Here is the relevant piece o

[clang] 98eeedd - [clang][NFC] Convert `NumLVComputationKindBits` to a constant

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:09:41+03:00 New Revision: 98eeedd4a100600dd91cda14e0096483403c408b URL: https://github.com/llvm/llvm-project/commit/98eeedd4a100600dd91cda14e0096483403c408b DIFF: https://github.com/llvm/llvm-project/commit/98eeedd4a100600dd91cda14e0096483403c408b.

[clang-tools-extra] [clangd] Add container field to remote index Refs grpc method (PR #71605)

2025-04-27 Thread Thomas Du Plessis via cfe-commits
https://github.com/tdupes updated https://github.com/llvm/llvm-project/pull/71605 >From 66fe31636d68c7200515a5d3a9e60d20334b60dd Mon Sep 17 00:00:00 2001 From: dup Date: Fri, 3 Nov 2023 09:03:24 -0700 Subject: [PATCH] Add container field to remote index Refs grpc method --- clang-tools-extra/

[clang] dae63e2 - Reland [clang] Handle instantiated members to determine visibility (#136128) (#136689)

2025-04-27 Thread Andrew Savonichev via cfe-commits
Author: Andrew Savonichev Date: 2025-04-28T15:49:54+09:00 New Revision: dae63e2c0ff1b7d64e186fe72e06a80ef895402c URL: https://github.com/llvm/llvm-project/commit/dae63e2c0ff1b7d64e186fe72e06a80ef895402c DIFF: https://github.com/llvm/llvm-project/commit/dae63e2c0ff1b7d64e186fe72e06a80ef895402c.d

[clang] f5ba3d0 - [clang] Fix computeTypeLinkageInfo for dependent member pointers (#136689)

2025-04-27 Thread Andrew Savonichev via cfe-commits
Author: Andrew Savonichev Date: 2025-04-28T15:49:54+09:00 New Revision: f5ba3d0c6d413e46fa962be80cfb37857e35b9ab URL: https://github.com/llvm/llvm-project/commit/f5ba3d0c6d413e46fa962be80cfb37857e35b9ab DIFF: https://github.com/llvm/llvm-project/commit/f5ba3d0c6d413e46fa962be80cfb37857e35b9ab.d

[clang] Reland [clang] Handle instantiated members to determine visibility (#136128) (PR #136689)

2025-04-27 Thread Andrew Savonichev via cfe-commits
asavonic wrote: Merged as f5ba3d0c and dae63e2c. https://github.com/llvm/llvm-project/pull/136689 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-04-27 Thread Haohai Wen via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/123870 >From 7c531922f20bf284a5cd83b20e94cb624ef031d2 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Thu, 9 Jan 2025 15:29:33 +0800 Subject: [PATCH 1/3] [COFF] Preserve UniqueID used to create MCSectionCOFF This Un

[clang] [clang][bytecode] Fix two small builtin_constant_p cases (PR #137587)

2025-04-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/137587 Only accept string literals if we're pointing to the first index and do accept complex literals. >From 2005584f52d7fa2bd964eed80303a8cc1a6dda4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Dat

[clang] [clang][bytecode] Fix two small builtin_constant_p cases (PR #137587)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Only accept string literals if we're pointing to the first index and do accept complex literals. --- Full diff: https://github.com/llvm/llvm-project/pull/137587.diff 2 Files Affected: - (modified) clang/l

[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)

2025-04-27 Thread Urvi Rav via cfe-commits
@@ -2759,6 +2759,18 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective( OpenMPClauseKind CKind = Tok.isAnnotation() ? OMPC_unknown : getOpenMPClauseKind(PP.getSpelling(Tok)); + // C

[clang] [clang] Split out and disable tests that break relative rpaths (PR #137411)

2025-04-27 Thread Saleem Abdulrasool via cfe-commits
compnerd wrote: > > I wonder if we can do this check statically instead. > > I'm not sure I follow, what do you mean by "statically" in this context? Well, if this is less about ensuring the loader does the right thing and more about the encoding, we could simply check that the value for `DT_R

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread via cfe-commits
@@ -0,0 +1,748 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [flang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-27 Thread Joey Fernau via cfe-commits
https://github.com/emtwelve edited https://github.com/llvm/llvm-project/pull/123609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-27 Thread Joey Fernau via cfe-commits
@@ -0,0 +1,144 @@ +//===-- TargetVerifier.cpp - LLVM IR Target Verifier *- C++ -*-===// + +/ Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +/ See https://llvm.org/LICENSE.txt for license information. +/ SPDX-License

[clang] [flang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-27 Thread Joey Fernau via cfe-commits
https://github.com/emtwelve deleted https://github.com/llvm/llvm-project/pull/123609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-04-27 Thread via cfe-commits
https://github.com/ConcreteCactus updated https://github.com/llvm/llvm-project/pull/130421 >From 7b0272121336a36b68e8e2782bb2b6e7007c4c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ron=20H=C3=A1rn=C3=A1si?= Date: Fri, 22 Nov 2024 21:43:04 +0100 Subject: [PATCH] [clang-tidy] Added Conflictin

[clang] [flang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-27 Thread via cfe-commits
https://github.com/jofrn edited https://github.com/llvm/llvm-project/pull/123609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-27 Thread via cfe-commits
@@ -0,0 +1,144 @@ +//===-- TargetVerifier.cpp - LLVM IR Target Verifier *- C++ -*-===// + +/ Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +/ See https://llvm.org/LICENSE.txt for license information. +/ SPDX-License

[clang] [clang][bytecode] Diagnose heap-allocated array elem pointers... (PR #137523)

2025-04-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/137523 ... as "pointer to subobject". >From af8eadcf3930667b5b6b215df8312c21e9f4381a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 27 Apr 2025 17:33:13 +0200 Subject: [PATCH] [clang][byteco

[clang] [clang][bytecode] Diagnose heap-allocated array elem pointers... (PR #137523)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes ... as "pointer to subobject". --- Full diff: https://github.com/llvm/llvm-project/pull/137523.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/EvaluationResult.cpp (+2-1) - (modified) clang/te

[clang-tools-extra] [clang-tidy] Do not pass any file when listing checks in run_clang_ti… (PR #137286)

2025-04-27 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. https://github.com/llvm/llvm-project/pull/137286 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [X86] Implement disabling APX relocations and EPGR/NDD instrs for relocations (PR #136660)

2025-04-27 Thread Feng Zou via cfe-commits
https://github.com/fzou1 edited https://github.com/llvm/llvm-project/pull/136660 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >