[clang] [clang] Build argument string for clang::warn_unused_result (PR #148090)

2025-07-10 Thread via cfe-commits
https://github.com/zebullax updated https://github.com/llvm/llvm-project/pull/148090 >From 11909560ed6cb4e56192fbbfe4d8b1cdf58e1cb1 Mon Sep 17 00:00:00 2001 From: zebullax Date: Fri, 11 Jul 2025 09:12:44 +0900 Subject: [PATCH 1/2] Build argument string for clang::warn_unused_result Preserve th

[clang] [clang][bytecode] Keep a list of initializing blocks in InterpState (PR #148120)

2025-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes So we can know what blocks we're currently running constructors or destructors for. --- Full diff: https://github.com/llvm/llvm-project/pull/148120.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCo

[clang] [clang][bytecode] Keep a list of initializing blocks in InterpState (PR #148120)

2025-07-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/148120 So we can know what blocks we're currently running constructors or destructors for. >From 047fa0e0bc313548227c724b5b32ce862199f301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 10 Ju

[clang] fix: replace report_fatal_error with Diags and exit (PR #147959)

2025-07-10 Thread via cfe-commits
https://github.com/woruyu updated https://github.com/llvm/llvm-project/pull/147959 >From e18ed1ac787a0571318b8cfe1d4eee023ba11fc2 Mon Sep 17 00:00:00 2001 From: woruyu <1214539...@qq.com> Date: Thu, 10 Jul 2025 21:08:24 +0800 Subject: [PATCH 1/3] fix: replace report_fatal_error with Diags and ex

[clang] [Clang] Ignore invalid base classes (PR #147213)

2025-07-10 Thread Corentin Jabot via cfe-commits
@@ -2252,7 +2252,7 @@ void Parser::ParseBaseClause(Decl *ClassDecl) { while (true) { // Parse a base-specifier. BaseResult Result = ParseBaseSpecifier(ClassDecl); -if (Result.isInvalid()) { +if (!Result.isUsable()) { cor3ntin wrote: Result ca

[clang] [clang] Fix isConstantInitializer handling of transparent init lists. (PR #148030)

2025-07-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. Can you add a release note? LGTM otherwise https://github.com/llvm/llvm-project/pull/148030 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-10 Thread Igor Kudrin via cfe-commits
@@ -453,7 +450,7 @@ void ClassifyRefs::VisitCallExpr(CallExpr *CE) { const auto *UO = dyn_cast(Ex); if (UO && UO->getOpcode() == UO_AddrOf) Ex = UO->getSubExpr(); - classify(Ex, Ignore); + classify(Ex, Use); igorkudrin wrote: @zyg

[clang] [clang] Fix a crash when dynamic_cast-ing to a `final` class (PR #148088)

2025-07-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/148088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] (PR #148088)

2025-07-10 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: / This change needs a release note. Please add an entry to `clang/docs/ReleaseNotes.rst` in the section the most adapted to the change, and referencing any Github issue this change fixes. Thanks! https://github.com/llvm/llvm-project/pull/148088 _

[clang] [clang] (PR #148088)

2025-07-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/148088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] (PR #148088)

2025-07-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/148088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang] Fix -Wuninitialized for values passed by const pointers (PR #147221)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147221 >From f1e26fed6c5023ba59990112ec4a77b024247e4b Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Fri, 4 Jul 2025 23:55:41 -0700 Subject: [PATCH 1/3] [clang] Fix -Wuninitialized for values passed by const poin

[clang] [clang] Build argument string for clang::warn_unused_result (PR #148090)

2025-07-10 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Thanks for working on this. Can you add some tests? https://github.com/llvm/llvm-project/pull/148090 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix static_cast bypassing access control (PR #132285)

2025-07-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/132285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e0eb8f0 - [clang] Fix static_cast bypassing access control (#132285)

2025-07-10 Thread via cfe-commits
Author: offsetof Date: 2025-07-11T08:11:40+02:00 New Revision: e0eb8f0ef3ef908770900a082441588a43cc460f URL: https://github.com/llvm/llvm-project/commit/e0eb8f0ef3ef908770900a082441588a43cc460f DIFF: https://github.com/llvm/llvm-project/commit/e0eb8f0ef3ef908770900a082441588a43cc460f.diff LOG:

[clang] [RISCV] Add missing indexed load/store intrinsic tests for zvfbfmin (PR #148097)

2025-07-10 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/148097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][C++][Modules] Refine test/CXX/basic.link/p3.cpp with split-file (PR #147945)

2025-07-10 Thread via cfe-commits
@@ -51,4 +39,71 @@ template module module_var_template; // This is a variable named 'import' that shadows the type 'import' above. struct X {} import; -#endif + +//--- ImportError1.cppm +module; + +struct import { struct inner {}; }; +struct module { struct inner {}; }; + +con

[clang] [llvm] [NFC][PowerPC] Add test case for lockdown of vector compare greater than support for Zero vector comparisons (PR #147246)

2025-07-10 Thread Tony Varghese via cfe-commits
https://github.com/tonykuttai closed https://github.com/llvm/llvm-project/pull/147246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f9292c2 - [NFC][PowerPC] Add test case for lockdown of vector compare greater than support for Zero vector comparisons (#147246)

2025-07-10 Thread via cfe-commits
Author: Himadhith Date: 2025-07-11T11:10:22+05:30 New Revision: f9292c25cf29e789d58ccd91fb29428abfc7d8fa URL: https://github.com/llvm/llvm-project/commit/f9292c25cf29e789d58ccd91fb29428abfc7d8fa DIFF: https://github.com/llvm/llvm-project/commit/f9292c25cf29e789d58ccd91fb29428abfc7d8fa.diff LOG

[clang] [llvm] [NFC][PowerPC] Add test case for lockdown of vector compare greater than support for Zero vector comparisons (PR #147246)

2025-07-10 Thread Tony Varghese via cfe-commits
https://github.com/tonykuttai updated https://github.com/llvm/llvm-project/pull/147246 >From 118389439ac39b9d097b26450e5934a38be8f740 Mon Sep 17 00:00:00 2001 From: himadhith Date: Mon, 7 Jul 2025 07:31:59 + Subject: [PATCH 1/2] NFC test cases lockdown for vector compare equal --- .../tes

[clang] [RISCV] Use source element type for the zero constant in IR for vwcvt intrinsic. (PR #148023)

2025-07-10 Thread Craig Topper via cfe-commits
https://github.com/topperc closed https://github.com/llvm/llvm-project/pull/148023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][PowerPC] Add test case for lockdown of vector compare greater than support for Zero vector comparisons (PR #147246)

2025-07-10 Thread Tony Varghese via cfe-commits
https://github.com/tonykuttai approved this pull request. LGTM ! https://github.com/llvm/llvm-project/pull/147246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Introduce intra-procedural analysis in Clang (PR #142313)

2025-07-10 Thread via cfe-commits
dyung wrote: 57194ac5053628955277e87dc51c74ad982bd543 should fix the test failure in builds without assertions. https://github.com/llvm/llvm-project/pull/142313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] 57194ac - Mark test added in #142313 as requiring asserts since it uses `-debug-only`.

2025-07-10 Thread Douglas Yung via cfe-commits
Author: Douglas Yung Date: 2025-07-11T05:35:35Z New Revision: 57194ac5053628955277e87dc51c74ad982bd543 URL: https://github.com/llvm/llvm-project/commit/57194ac5053628955277e87dc51c74ad982bd543 DIFF: https://github.com/llvm/llvm-project/commit/57194ac5053628955277e87dc51c74ad982bd543.diff LOG:

[clang] [LifetimeSafety] Introduce intra-procedural analysis in Clang (PR #142313)

2025-07-10 Thread via cfe-commits
dyung wrote: > I am part of a toolchain team at Google and we are seeing clang test failures > in our toolchain builders from this PR. > > ``` > Exit Code: 1 > > Command Output (stderr): > -- > /b/s/w/ir/x/w/llvm_build/bin/clang -cc1 -internal-isystem > /b/s/w/ir/x/w/llvm_build/lib/clang/21/i

[clang-tools-extra] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy project (PR #147793)

2025-07-10 Thread Baranov Victor via cfe-commits
vbvictor wrote: > One last thing I'm missing: can you update the clang-tidy contributors guide, > to explain that we expect people to run clang-tidy as well (and what command > to run)? Since it's not currently enforced in CI. I will add it in a separate PR. Don't feel right to make kind-of un

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-10 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/147899 >From 0d38b0d9b153bfb55c199d3bb4b6cdca2f708af9 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 9 Jul 2025 17:30:48 -0700 Subject: [PATCH 1/4] [clang][ObjC][PAC] Add ptrauth protections to objective-c This

[clang] [RISCV] Use source element type for the zero constant in IR for vwcvt intrinsic. (PR #148023)

2025-07-10 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat approved this pull request. LGTM~ thanks!! https://github.com/llvm/llvm-project/pull/148023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Add missing indexed load/store intrinsic tests for zvfbfmin (PR #148097)

2025-07-10 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat approved this pull request. LGTM~ thanks! https://github.com/llvm/llvm-project/pull/148097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,254 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,254 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,50 @@ +//==-- AvoidPlatformSpecificFundamentalTypesCheck.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] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,69 @@ +// RUN: %check_clang_tidy -std=c++11-or-later %s portability-avoid-platform-specific-fundamental-types %t -- -config="{CheckOptions: [{key: portability-avoid-platform-specific-fundamental-types.WarnOnInts, value: false}, {key: portability-avoid-platform-spec

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,69 @@ +// RUN: %check_clang_tidy -std=c++11-or-later %s portability-avoid-platform-specific-fundamental-types %t -- -config="{CheckOptions: [{key: portability-avoid-platform-specific-fundamental-types.WarnOnInts, value: false}, {key: portability-avoid-platform-spec

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,254 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,254 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,254 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,254 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,254 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang] [clang][scan-deps] Report a scanned TU's visible modules (PR #147969)

2025-07-10 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/147969 >From 87900ca81b552c9d7718c8a38a21f53260534c6e Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Wed, 9 Jul 2025 21:50:44 -0700 Subject: [PATCH] [clang][scan-deps] Report a scanned TU's visible modules ---

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread JJ Marr via cfe-commits
@@ -0,0 +1,260 @@ +//===--- AvoidPlatformSpecificFundamentalTypesCheck.cpp - clang-tidy --===// +// +// 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: Ap

[clang] fix: replace report_fatal_error with Diags and exit (PR #147959)

2025-07-10 Thread via cfe-commits
https://github.com/woruyu updated https://github.com/llvm/llvm-project/pull/147959 >From e18ed1ac787a0571318b8cfe1d4eee023ba11fc2 Mon Sep 17 00:00:00 2001 From: woruyu <1214539...@qq.com> Date: Thu, 10 Jul 2025 21:08:24 +0800 Subject: [PATCH 1/3] fix: replace report_fatal_error with Diags and ex

[clang] fix: replace report_fatal_error with Diags and exit (PR #147959)

2025-07-10 Thread via cfe-commits
https://github.com/woruyu updated https://github.com/llvm/llvm-project/pull/147959 >From e18ed1ac787a0571318b8cfe1d4eee023ba11fc2 Mon Sep 17 00:00:00 2001 From: woruyu <1214539...@qq.com> Date: Thu, 10 Jul 2025 21:08:24 +0800 Subject: [PATCH 1/3] fix: replace report_fatal_error with Diags and ex

[clang] [Clang][Driver] Emit warning when -fsanitize-trap=<...> is passed without associated -fsanitize=<...> (PR #147997)

2025-07-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/147997 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Emit warning when -fsanitize-trap=<...> is passed without associated -fsanitize=<...> (PR #147997)

2025-07-10 Thread Fangrui Song via cfe-commits
MaskRay wrote: The current -fsanitize-trap behavior is intentional. See https://discourse.llvm.org/t/clang-gsoc-2025-usability-improvements-for-trapping-undefined-behavior-sanitizer/84568/11 I believe Google actually depended on -fsanitize-trap=undefined not leading to warnings/errors when -fs

[clang-tools-extra] aa99026 - [NFC] [clangd] [Modules] Logging more if compilation failed

2025-07-10 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-07-11T11:18:21+08:00 New Revision: aa9902691db5cbb9db77270902f615f3c0877deb URL: https://github.com/llvm/llvm-project/commit/aa9902691db5cbb9db77270902f615f3c0877deb DIFF: https://github.com/llvm/llvm-project/commit/aa9902691db5cbb9db77270902f615f3c0877deb.diff LO

[libclc] [libclc] Add generic implementation of some atomic functions in OpenCL spec section 6.15.12.7 (PR #146814)

2025-07-10 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/146814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Add generic implementation of some atomic functions in OpenCL spec section 6.15.12.7 (PR #146814)

2025-07-10 Thread Wenju He via cfe-commits
@@ -0,0 +1,24 @@ +//===--===// +// +// 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: Apac

[libclc] [libclc] Add generic implementation of some atomic functions in OpenCL spec section 6.15.12.7 (PR #146814)

2025-07-10 Thread Wenju He via cfe-commits
@@ -0,0 +1,24 @@ +//===--===// +// +// 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: Apac

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-10 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/147899 >From 0d38b0d9b153bfb55c199d3bb4b6cdca2f708af9 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 9 Jul 2025 17:30:48 -0700 Subject: [PATCH 1/3] [clang][ObjC][PAC] Add ptrauth protections to objective-c This

[clang] fix: replace report_fatal_error with Diags and exit (PR #147959)

2025-07-10 Thread via cfe-commits
woruyu wrote: > Need a test case at least. Done! https://github.com/llvm/llvm-project/pull/147959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix: replace report_fatal_error with Diags and exit (PR #147959)

2025-07-10 Thread via cfe-commits
https://github.com/woruyu updated https://github.com/llvm/llvm-project/pull/147959 >From e18ed1ac787a0571318b8cfe1d4eee023ba11fc2 Mon Sep 17 00:00:00 2001 From: woruyu <1214539...@qq.com> Date: Thu, 10 Jul 2025 21:08:24 +0800 Subject: [PATCH 1/2] fix: replace report_fatal_error with Diags and ex

[clang] [clang][scan-deps] Report a scanned TU's visible modules (PR #147969)

2025-07-10 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida updated https://github.com/llvm/llvm-project/pull/147969 >From b72bf3e6bf1319594aa0243ed8f32a61f2436d58 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Wed, 9 Jul 2025 21:50:44 -0700 Subject: [PATCH] [clang][scan-deps] Report a scanned TU's visible modules ---

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-10 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Given the scale of the patch, it's not surprising if it undergoes some revert-reapplies cycles after the initial commit. To reduce the churn, would it be possible to ask google to test it internally before we merge? @AaronBallman https://github.com/llvm/llvm-project/pull/14783

[clang] [Clang] Ignore invalid base classes (PR #147213)

2025-07-10 Thread Shafik Yaghmour via cfe-commits
@@ -2252,7 +2252,7 @@ void Parser::ParseBaseClause(Decl *ClassDecl) { while (true) { // Parse a base-specifier. BaseResult Result = ParseBaseSpecifier(ClassDecl); -if (Result.isInvalid()) { +if (!Result.isUsable()) { shafik wrote: I am a bit

[clang] [RISCV] Add missing indexed load/store intrinsic tests for zvfbfmin (PR #148097)

2025-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jim Lin (tclin914) Changes https://github.com/riscv-non-isa/rvv-intrinsic-doc/commit/d6d33a0e60fd234f26b79e4fcb00e6ace0b64b4c adds missing indexed load/store which with other index size. --- Patch is 2.67 MiB, truncated to 20.00 KiB belo

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/147898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f0befb0 - [clang] Combine ConstRefUse with other warnings for uninitialized values (#147898)

2025-07-10 Thread via cfe-commits
Author: Igor Kudrin Date: 2025-07-10T18:24:19-07:00 New Revision: f0befb0dcda4e908f6cd0b771753a36cc5fb980f URL: https://github.com/llvm/llvm-project/commit/f0befb0dcda4e908f6cd0b771753a36cc5fb980f DIFF: https://github.com/llvm/llvm-project/commit/f0befb0dcda4e908f6cd0b771753a36cc5fb980f.diff L

[clang] aa4c856 - [clang][NFC] Remove an unused parameter in CFGBlockValues::getValue() (#147897)

2025-07-10 Thread via cfe-commits
Author: Igor Kudrin Date: 2025-07-10T18:22:53-07:00 New Revision: aa4c8564c5df217bf589fed21dc009e21c3e9ca5 URL: https://github.com/llvm/llvm-project/commit/aa4c8564c5df217bf589fed21dc009e21c3e9ca5 DIFF: https://github.com/llvm/llvm-project/commit/aa4c8564c5df217bf589fed21dc009e21c3e9ca5.diff L

[clang] [clang][NFC] Remove an unused parameter in CFGBlockValues::getValue() (PR #147897)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin closed https://github.com/llvm/llvm-project/pull/147897 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-07-10 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: I was able to verify that this was indeed the issue by compiling a C++ program using `-gmlt`. Fix is in #148095 https://github.com/llvm/llvm-project/pull/141937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. `int`, `float`) and recommends using ty

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. `int`, `float`) and recommends using ty

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. `int`, `float`) and recommends using ty

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. `int`, `float`) and recommends using ty

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. `int`, `float`) and recommends using ty

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. `int`, `float`) and recommends using ty

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,227 @@ +.. title:: clang-tidy - portability-avoid-platform-specific-fundamental-types + +portability-avoid-platform-specific-fundamental-types += + +Finds fundamental types (e.g. `int`, `float`) and recommends using ty

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-10 Thread via cfe-commits
@@ -148,6 +148,13 @@ New checks Finds uses of ``std::lock_guard`` and suggests replacing them with C++17's alternative ``std::scoped_lock``. +- New :doc:`portability-avoid-platform-specific-fundamental-types + ` + check. + + Finds fundamental types (e.g. `int`, `float`

[clang] cb52efb - [clang-format] Split line comments separated by backslashes (#147648)

2025-07-10 Thread via cfe-commits
Author: Owen Pan Date: 2025-07-10T18:14:45-07:00 New Revision: cb52efb8936c0da0a03958daa95d45eaaf8806fb URL: https://github.com/llvm/llvm-project/commit/cb52efb8936c0da0a03958daa95d45eaaf8806fb DIFF: https://github.com/llvm/llvm-project/commit/cb52efb8936c0da0a03958daa95d45eaaf8806fb.diff LOG:

[clang] [clang-format] Split line comments separated by backslashes (PR #147648)

2025-07-10 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/147648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,43 @@ +// REQUIRES: lld + +/// Check DTLTO options are forwarded to the linker. + +// RUN: echo "--target=x86_64-linux-gnu \ +// RUN: -Xthinlto-distributor=distarg1 \ +// RUN: -Xthinlto-distributor=distarg2,distarg3 \ +// RUN: -fuse-ld=lld" > %t.rsp + +/// Check t

[clang] [clang-format] Split line comments separated by backslashes (PR #147648)

2025-07-10 Thread Owen Pan via cfe-commits
@@ -513,9 +513,9 @@ struct FormatStyle { ENAS_LeftWithLastLine, /// Align escaped newlines in the right-most column. /// \code -/// #define A \ -/// int ;

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,57 @@ +// REQUIRES: lld + +/// Check DTLTO options are forwarded to the linker. + +/// Create a response file for all FileCheck invocations to share. These implicit +/// checks ensure that all lines which mention DTLTO options are checked, +/// and that no unexpected w

[clang] [clang-format][NFC] Replace a function with StringRef::contains (PR #146245)

2025-07-10 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/146245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7704f81 - [clang-format][NFC] Replace a function with StringRef::contains (#146245)

2025-07-10 Thread via cfe-commits
Author: Owen Pan Date: 2025-07-10T18:07:17-07:00 New Revision: 7704f817d0a60596c4c8883c8a8ece67f0a8255a URL: https://github.com/llvm/llvm-project/commit/7704f817d0a60596c4c8883c8a8ece67f0a8255a DIFF: https://github.com/llvm/llvm-project/commit/7704f817d0a60596c4c8883c8a8ece67f0a8255a.diff LOG:

[clang] [LifetimeSafety] Introduce intra-procedural analysis in Clang (PR #142313)

2025-07-10 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: I am part of a toolchain team at Google and we are seeing clang test failures in our toolchain builders from this PR. ``` Exit Code: 1 Command Output (stderr): -- /b/s/w/ir/x/w/llvm_build/bin/clang -cc1 -internal-isystem /b/s/w/ir/x/w/llvm_build/lib/clang/21/include -nostdsyste

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-10 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/147899 >From 0d38b0d9b153bfb55c199d3bb4b6cdca2f708af9 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 9 Jul 2025 17:30:48 -0700 Subject: [PATCH 1/2] [clang][ObjC][PAC] Add ptrauth protections to objective-c This

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-10 Thread via cfe-commits
https://github.com/bd1976bris updated https://github.com/llvm/llvm-project/pull/147265 >From 737bb8c03620d668299a9b85d34eb659a30eebfb Mon Sep 17 00:00:00 2001 From: Dunbobbin Date: Thu, 5 Jun 2025 17:10:31 +0100 Subject: [PATCH 01/13] [DTLTO][Clang] Add support for Integrated Distributed ThinL

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,43 @@ +// REQUIRES: lld + +/// Check DTLTO options are forwarded to the linker. + +// RUN: echo "--target=x86_64-linux-gnu \ +// RUN: -Xthinlto-distributor=distarg1 \ +// RUN: -Xthinlto-distributor=distarg2,distarg3 \ +// RUN: -fuse-ld=lld" > %t.rsp --

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-10 Thread via cfe-commits
@@ -0,0 +1,43 @@ +// REQUIRES: lld + +/// Check DTLTO options are forwarded to the linker. + +// RUN: echo "--target=x86_64-linux-gnu \ +// RUN: -Xthinlto-distributor=distarg1 \ +// RUN: -Xthinlto-distributor=distarg2,distarg3 \ +// RUN: -fuse-ld=lld" > %t.rsp + +/// Check t

[clang] [libclang][Cygwin] Provide unversioned DLL file alongside versioned one (PR #147132)

2025-07-10 Thread via cfe-commits
jeremyd2019 wrote: By simply removing `AND NOT CYGWIN` from https://github.com/llvm/llvm-project/blob/6fc3b40b2cfc33550dd489072c01ffab16535840/llvm/cmake/modules/AddLLVM.cmake#L753 ``` usr/bin/cygLLVM.dll -> cygLLVM-20.dll usr/bin/cygLLVM-20.1.8.dll -> cygLLVM-20.dll usr/bin/cygLLVM-20.dll ```

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-10 Thread via cfe-commits
@@ -455,6 +455,21 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs, D.getLTOMode() == LTOK_Thin); + // Forward the DTLTO options to the linker. We add these uncondi

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-10 Thread Oliver Hunt via cfe-commits
ojhunt wrote: dammit habitually force pushed a squash and rebase. #skilled. https://github.com/llvm/llvm-project/pull/147899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-10 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/147899 >From 0d38b0d9b153bfb55c199d3bb4b6cdca2f708af9 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 9 Jul 2025 17:30:48 -0700 Subject: [PATCH] [clang][ObjC][PAC] Add ptrauth protections to objective-c This PR i

[clang] [clang] Build argument string for clang::warn_unused_result (PR #148090)

2025-07-10 Thread via cfe-commits
https://github.com/zebullax edited https://github.com/llvm/llvm-project/pull/148090 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-10 Thread Richard Smith via cfe-commits
https://github.com/zygoloid approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/147898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Implement dataflow analysis for loan propagation (PR #148065)

2025-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Utkarsh Saxena (usx95) Changes This patch introduces the core dataflow analysis infrastructure for the C++ Lifetime Safety checker. This change implements the logic to propagate "loan" information across the control-flow graph. T

[clang] [LifetimeSafety] Implement dataflow analysis for loan propagation (PR #148065)

2025-07-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 ready_for_review https://github.com/llvm/llvm-project/pull/148065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-10 Thread Igor Kudrin via cfe-commits
@@ -27,7 +27,7 @@ int const_use(const int i); void f(int a) { int i; const_ref_use(i); // expected-warning {{variable 'i' is uninitialized when passed as a const reference argument here}} - int j = j + const_ref_use(j); // expected-warning {{variable 'j' is u

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-10 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin updated https://github.com/llvm/llvm-project/pull/147898 >From a813a4c665579b3654b287ff64c8180139879a38 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Wed, 9 Jul 2025 21:19:40 -0700 Subject: [PATCH 1/2] [clang] Combine ConstRefUse with other warnings for uniniti

[clang] [LifetimeSafety] Implement dataflow analysis for loan propagation (PR #148065)

2025-07-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/148065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Implement dataflow analysis for loan propagation (PR #148065)

2025-07-10 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: * **#148065** https://app.graphite.dev/github/pr/llvm/llvm-project/148065?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/148065

[clang] [LifetimeSafety] Implement dataflow analysis for loan propagation (PR #148065)

2025-07-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 created https://github.com/llvm/llvm-project/pull/148065 None >From f6ca9022b136007bfbd369e71b4361829aeb89e0 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 10 Jul 2025 22:00:01 + Subject: [PATCH] [LifetimeSafety] Implement dataflow analysis for loan prop

[clang] [LifetimeSafety] Introduce intra-procedural analysis in Clang (PR #142313)

2025-07-10 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` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/19276 Here is the relevant

[clang] [Driver][MinGW] Allow using clang driver to link ARM64X PEs. (PR #148064)

2025-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: WhatAmISupposedToPutHere (WhatAmISupposedToPutHere) Changes Similar to how clang-cl driver does it, make it possible to build arm64x binaries with a mingw-style invocation. --- Full diff: https://github.c

[clang] [Driver][MinGW] Allow using clang driver to link ARM64X PEs. (PR #148064)

2025-07-10 Thread via cfe-commits
https://github.com/WhatAmISupposedToPutHere created https://github.com/llvm/llvm-project/pull/148064 Similar to how clang-cl driver does it, make it possible to build arm64x binaries with a mingw-style invocation. >From ced43ee83d1c830293146363e60a57c3dfb8a93a Mon Sep 17 00:00:00 2001 From: Sa

[clang] [clang][CodeGen] Preserve addrspace of enqueue_kernel builtin. (PR #148062)

2025-07-10 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/148062 >From b8c027c278248eeb53d561c2acb2784ce3dcfc34 Mon Sep 17 00:00:00 2001 From: jofrn Date: Thu, 10 Jul 2025 17:34:38 -0400 Subject: [PATCH] [clang][CodeGen] Preserve addrspace of enqueue_kernel builtin. __enqueue

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-10 Thread via cfe-commits
jeremyd2019 wrote: > > I was planning to refer to that, MinGW.cpp, and the GCC spec for Cygwin, > > and see if I could come up with a couple of places where virtual functions > > could be added to the MinGW::Linker class so that Cygwin::Linker could > > derive from it and override (I think the

[clang] [clang][RISCV] Fix crash on VLS calling convention (PR #145489)

2025-07-10 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: I'm not really happy with the way the code is organized for "coerced" load/store involving scalable types. At the point where we're analyzing the calling convention; we have a bunch of information: exactly what kind of coercion we're doing, whether t

  1   2   3   4   5   >