[clang] [LifetimeSafety] Mark all DeclRefExpr as usages of the corresp. origin (PR #154316)

2025-09-05 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 closed https://github.com/llvm/llvm-project/pull/154316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX2/AVX512 integer min/max intrinsics to be used in constexpr (PR #156833)

2025-09-05 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/156833 >From 2a180106369bb805ba95c6aef65442583b450ed9 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Wed, 3 Sep 2025 20:50:15 +0700 Subject: [PATCH] [Headers][X86] Allow AVX2/AVX512 integer min/max intrinsics

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-05 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis commented: > Adressing GH-155922. You can add `Fix GH-155922`or something like this to PR description so that the issue will be closed when the PR is merged. See

[clang] [clang-tools-extra] [clang-tidy] Do not crash when an empty directory is used in the comp… (PR #156873)

2025-09-05 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/156873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-05 Thread via cfe-commits
@@ -912,6 +931,10 @@ bool Scanner::lexPPLine(const char *&First, const char *const End) { CurDirToks.clear(); }); + // FIXME: Shoule we handle @import as a preprocessing directive? yronglin wrote: SGTM, what about other `@` directive in ObjC? should w

[clang] [clang] Allow constexpr-unknown values pre C++23 (PR #129646)

2025-09-05 Thread A. Jiang via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/frederick-vs-ja updated https://github.com/llvm/llvm-project/pull/129646 >From 54c3e72e2c3b507ecf8cd65c15b9e137ba7331c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 4 Mar 2025 06:29:31 +0100 Subject

[clang] [Clang] Convert ConstraintRefersToContainingTemplateChecker to using RAV (PR #157062)

2025-09-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/157062 >From 8f40868a6eb5dfea6601b79c8abf5631a4a40bac Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 5 Sep 2025 17:55:56 +0800 Subject: [PATCH] [Clang] Convert ConstraintRefersToContainingTemplateChecker to us

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/157171 >From e6af544156940a1041a01a44d73dae76ac322111 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 5 Sep 2025 13:35:10 -0700 Subject: [PATCH 1/2] [clang][ThreadSafety] Handle mutex scope Before emitting warning

[clang] bd2649a - [Clang] Convert ConstraintRefersToContainingTemplateChecker to using RAV (#157062)

2025-09-05 Thread via cfe-commits
Author: Younan Zhang Date: 2025-09-06T10:43:43+08:00 New Revision: bd2649ad481096d383173691b1e38dff2f373f3c URL: https://github.com/llvm/llvm-project/commit/bd2649ad481096d383173691b1e38dff2f373f3c DIFF: https://github.com/llvm/llvm-project/commit/bd2649ad481096d383173691b1e38dff2f373f3c.diff

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-05 Thread via cfe-commits
@@ -0,0 +1,78 @@ +//===--===// +// +// 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-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-05 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,80 @@ + +//===--===// +// +// 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](NFC) Add coverage for VTable debug info (PR #151818)

2025-09-05 Thread Javier Lopez-Gomez via cfe-commits
https://github.com/jalopezg-git edited https://github.com/llvm/llvm-project/pull/151818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Convert ConstraintRefersToContainingTemplateChecker to using RAV (PR #157062)

2025-09-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang` at step 6 "test-build-unified-tree-check-cross-project". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/bu

[clang] [Clang] Convert ConstraintRefersToContainingTemplateChecker to using RAV (PR #157062)

2025-09-05 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/157062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-05 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/157213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-05 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/157213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-05 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,80 @@ + +//===--===// +// +// 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] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-05 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/157213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-09-05 Thread Julia Hansbrough via cfe-commits
https://github.com/flowerhack updated https://github.com/llvm/llvm-project/pull/157213 >From 84a477b27da2e833b6c4da2db7b2a10f00df8b6a Mon Sep 17 00:00:00 2001 From: Julia Hansbrough Date: Fri, 5 Sep 2025 21:27:14 + Subject: [PATCH] Add bugprone-loop-variable-copied-then-modified clang-tidy

[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

2025-09-05 Thread Gedare Bloom via cfe-commits
@@ -958,9 +958,13 @@ template <> struct MappingTraits { // For backward compatibility. BracketAlignmentStyle LocalBAS = BAS_Align; if (IsGoogleOrChromium) { -if (Style.Language == FormatStyle::LK_JavaScript) { +FormatStyle::LanguageKind Languag

[clang] 4c29a60 - Revert "[clang][dataflow] Transfer more cast expressions." (#157148)

2025-09-05 Thread via cfe-commits
Author: Samira Bakon Date: 2025-09-05T18:07:18Z New Revision: 4c29a600fa34d0c1cabf4ffcf081f2a00b09fddd URL: https://github.com/llvm/llvm-project/commit/4c29a600fa34d0c1cabf4ffcf081f2a00b09fddd DIFF: https://github.com/llvm/llvm-project/commit/4c29a600fa34d0c1cabf4ffcf081f2a00b09fddd.diff LOG:

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-05 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,10 @@ +.. title:: clang-tidy - google-runtime-float + +google-runtime-float + + +Finds uses of ``long double`` and suggests replacing them with 64-bit +or 128-bit floating-point types. HerrCai0907 wrote: agree. I am also wondering w

[clang-tools-extra] [clang-tidy][NFC] Enable `readability-container-contains` check in clang-tidy config and apply fix-its (PR #157123)

2025-09-05 Thread Baranov Victor via cfe-commits
vbvictor wrote: @flovent, I believe you can file a request to grant commit access for LLVM (and become a member) if you wish. See `label:infra:commit-access-request` in issues. https://github.com/llvm/llvm-project/pull/157123 ___ cfe-commits mailing

[clang] [C++20][Modules] Add a test for field info assertion failure. (PR #155948)

2025-09-05 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/155948 >From 01a646047f150c8ff7e34b1cfb6a1e568fe9bd13 Mon Sep 17 00:00:00 2001 From: Michael Park Date: Thu, 28 Aug 2025 14:38:21 -0700 Subject: [PATCH 1/3] [C++20][Modules] Add tests related to anonymous members in tem

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-05 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,78 @@ +//===--===// +// +// 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] [CIR] Add support for __builtin_alloca (PR #157116)

2025-09-05 Thread Andy Kaylor via cfe-commits
@@ -258,3 +258,13 @@ void trap2() { // LLVM: {{.+}}: // LLVM-NEXT:call void @_Z2f1v() // LLVM: } + +void *test_alloca(unsigned long n) { + return __builtin_alloca(n); +} + +// CIR-LABEL: @_Z11test_allocam( +// CIR: %{{.+}} = cir.alloca !u8i, !cir.ptr, %

[clang] [llvm] [DirectX] Add isinf f16 emulation for SM6.8 and lower (PR #156932)

2025-09-05 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/156932 >From 8c3186557a2bc96e3f27a7dde10929990a38288a Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 4 Sep 2025 13:10:06 -0400 Subject: [PATCH 1/3] [DirectX] Add isinf f16 emulation for SM6.8 and lower fixes #

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-05 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/lib/Parse/ParseOpenMP.cpp clang/lib/Sema/S

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-09-05 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko closed https://github.com/llvm/llvm-project/pull/152751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeComplete] Omit ExplicitObject when completing code (PR #92743)

2025-09-05 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: It looks like this patch was forgotten about and did not get merged in spite of having been approved :/ Meanwhile, a similar PR has been written and merged: https://github.com/llvm/llvm-project/pull/146258. I'm therefore going to close this one. https://github.com/llvm/

[clang] [clang] Add [system] label to modules from resource headers (PR #156934)

2025-09-05 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder approved this pull request. https://github.com/llvm/llvm-project/pull/156934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC][NFCI] Split recipe generation into its own class (PR #157160)

2025-09-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane created https://github.com/llvm/llvm-project/pull/157160 The recipe generation was dependent on the clause kind, which meant we had all of the recipe generation duplicated in each of clauses. This patch copy/pastes all of them into their own type to do recipe gen

[clang] [Driver] Enable outline atomics for Haiku and Managarm aarch64 (PR #156299)

2025-09-05 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/156299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

2025-09-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM, just formatting need to be fixed https://github.com/llvm/llvm-project/pull/144313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] [clang-tidy][NFC] Enable `readability-container-contains` check in clang-tidy config and apply fix-its (PR #157123)

2025-09-05 Thread via cfe-commits
flovent wrote: > @flovent, I believe you can file a request to grant commit access for LLVM > (and become a member) if you wish. See label:infra:commit-access-request in issues. Thanks for the tip! i just file one #157214. https://github.com/llvm/llvm-project/pull/157123 _

[clang] [CodeGen] Fix cleanup attribute for C89 for-loop init variables (PR #156643)

2025-09-05 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: Instead of creating a separate cleanup stack and adding special deferred handling for that cleanup stack, can we just skip creating the scope in the first place? We have `LexicalScope ForScope(*this, S.getSourceRange());`; can we replace that with s

[clang] [clang] -fstrict-enums optimization for by-value parameters (PR #154807)

2025-09-05 Thread via cfe-commits
@@ -5535,6 +5536,10 @@ class CodeGenFunction : public CodeGenTypeCache { llvm::Value *FormAArch64ResolverCondition(const FMVResolverOption &RO); llvm::Value *EmitAArch64CpuSupports(const CallExpr *E); llvm::Value *EmitAArch64CpuSupports(ArrayRef FeatureStrs); + + std::op

[clang] [CIR] Add support for delegating constructors with VTT args (PR #156970)

2025-09-05 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/156970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/157171 >From e6af544156940a1041a01a44d73dae76ac322111 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 5 Sep 2025 13:35:10 -0700 Subject: [PATCH] [clang][ThreadSafety] Handle mutex scope Before emitting warning abou

[clang] [CIR][NFC] Consildate CIRGenExprCXX.cpp files (PR #157169)

2025-09-05 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/157169 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -534,6 +555,21 @@ InputArgList OptTable::internalParseArgs( MissingArgIndex = MissingArgCount = 0; unsigned Index = 0, End = ArgArr.size(); + const Command *ActiveCommand = nullptr; + + // Look for subcommand which is positional. + if (!Commands.empty() && Index < En

[clang] [LifetimeSafety] Mark all DeclRefExpr as usages of the corresp. origin (PR #154316)

2025-09-05 Thread Utkarsh Saxena via cfe-commits
@@ -567,9 +565,47 @@ class FactGenerator : public ConstStmtVisitor { return false; } + void handleAssignment(const Expr *LHSExpr, const Expr *RHSExpr) { +// Find the underlying variable declaration for the left-hand side. +if (const auto *DRE_LHS = +

[clang] [clang] Fix OOB read in SemaSwift::validateSwiftFunctionName (PR #157139)

2025-09-05 Thread via cfe-commits
https://github.com/camc edited https://github.com/llvm/llvm-project/pull/157139 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC][CLANG] DMF VSX Vector float GER 2x (rank-2 update) (PR #147383)

2025-09-05 Thread Maryam Moghadas via cfe-commits
@@ -1116,6 +1116,14 @@ UNALIASED_CUSTOM_MMA_BUILTIN(mma_xvbf16ger2, "vW512*VV", "mma,paired-vector-memops") UNALIASED_CUSTOM_MMA_BUILTIN(mma_pmxvbf16ger2, "vW512*VVi15i15i3", "mma,paired-vector-memops") +UNALIASED_CUSTOM

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-05 Thread Arjun Ramesh via cfe-commits
https://github.com/arjunr2 edited https://github.com/llvm/llvm-project/pull/156087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: > Is there anything in this that requires pch? Seems like the other thread > safety tests would make more sense. Extracted regression tests into clang/test/Analysis directory into a separate file. PTAL. https://github.com/llvm/llvm-project/pull/157171 __

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/157171 >From e6af544156940a1041a01a44d73dae76ac322111 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 5 Sep 2025 13:35:10 -0700 Subject: [PATCH 1/7] [clang][ThreadSafety] Handle mutex scope Before emitting warning

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/157171 >From e6af544156940a1041a01a44d73dae76ac322111 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 5 Sep 2025 13:35:10 -0700 Subject: [PATCH 1/6] [clang][ThreadSafety] Handle mutex scope Before emitting warning

[clang] [OpenACC][NFCI] Split recipe generation into its own class (PR #157160)

2025-09-05 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_enabled https://github.com/llvm/llvm-project/pull/157160 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Associate origins to all l-valued expressions (PR #156896)

2025-09-05 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/156896 >From fdbae53b68bfb61defbb27866ad47ee16e6e8481 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 4 Sep 2025 14:27:37 + Subject: [PATCH] all-lvalues-have-origin --- clang/lib/Analysis/LifetimeSafety.cp

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: I will land changed at the end of the week https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Sema][Parse][HLSL] Implement front-end rootsignature validations (PR #156754)

2025-09-05 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/156754 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

2025-09-05 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon commented: we still need to handle the mask/maskz variants in avx512vlintrin.h + avx512vlbwintrin.h https://github.com/llvm/llvm-project/pull/156901 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-05 Thread St. Muench via cfe-commits
https://github.com/stmuench edited https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix OOB read in SemaSwift::validateSwiftFunctionName (PR #157139)

2025-09-05 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][OpenMP]Default clause variable category (PR #157063)

2025-09-05 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/157063 >From dce17e9499e18ff0db4452d3ae316fdfc678fd2f Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 7 Aug 2025 03:41:16 -0500 Subject: [PATCH 1/6] Parsing and storing of "variable category" in Se

[clang] [Clang][OpenMP]Default clause variable category (PR #157063)

2025-09-05 Thread via cfe-commits
@@ -20,6 +20,27 @@ using namespace clang; using namespace llvm::omp; +unsigned clang::getOpenMPDefaultVariableCategory(StringRef Str, + const LangOptions &LangOpts) { + unsigned VC = llvm::StringSwitch(Str) +#define OPENMP_DEFAU

[clang] [Clang][Unittest] Support for `target` update directive and `from` clause in clang unittests (PR #150580)

2025-09-05 Thread Shilei Tian via cfe-commits
@@ -4734,6 +4734,65 @@ void x() { EXPECT_TRUE(matchesWithOpenMP(Source8, Matcher)); } +TEST_P(ASTMatchersTest, OMPTargetUpdateDirective_IsStandaloneDirective) { + auto Matcher = ompTargetUpdateDirective(isStandaloneDirective()); + + StringRef Source0 = R"( +void foo()

[clang-tools-extra] [clang-tidy][NFC] Enable `readability-container-contains` check in clang-tidy config and apply fix-its (PR #157123)

2025-09-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor approved this pull request. LGTM, thank you https://github.com/llvm/llvm-project/pull/157123 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/157171 >From e6af544156940a1041a01a44d73dae76ac322111 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 5 Sep 2025 13:35:10 -0700 Subject: [PATCH 1/4] [clang][ThreadSafety] Handle mutex scope Before emitting warning

[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

2025-09-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/144313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Consildate CIRGenExprCXX.cpp files (PR #157169)

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

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Enable unbounded resource arrays at global scope (PR #155053)

2025-09-05 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. https://github.com/llvm/llvm-project/pull/155053 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement CXX field default initialization (PR #157140)

2025-09-05 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/157140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 66f93df - [CIR] Add support for delegating constructors with VTT args (#156970)

2025-09-05 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-09-05T13:19:13-07:00 New Revision: 66f93dff6e0a1c92b1d28c7d40e0141217ae2a8d URL: https://github.com/llvm/llvm-project/commit/66f93dff6e0a1c92b1d28c7d40e0141217ae2a8d DIFF: https://github.com/llvm/llvm-project/commit/66f93dff6e0a1c92b1d28c7d40e0141217ae2a8d.diff L

[clang] [CIR] Fix Complex emit promotion for Div op (PR #156963)

2025-09-05 Thread Amr Hesham via cfe-commits
@@ -749,6 +749,7 @@ mlir::Value ComplexExprEmitter::emitPromoted(const Expr *e, HANDLE_BINOP(Add) HANDLE_BINOP(Sub) HANDLE_BINOP(Mul) + HANDLE_BINOP(Div) AmrDeveloper wrote: For this test case, when the promotion type is not null The ol

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/157171 >From e6af544156940a1041a01a44d73dae76ac322111 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Fri, 5 Sep 2025 13:35:10 -0700 Subject: [PATCH 1/3] [clang][ThreadSafety] Handle mutex scope Before emitting warning

[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

2025-09-05 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/144313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 integer min/max mask/maskz variants intrinsics to be used in constexpr (PR #156901)

2025-09-05 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/156901 >From 2b91d9f709d8bfbeac5f1157d76945896f7dbfc3 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 4 Sep 2025 21:41:54 +0700 Subject: [PATCH 1/2] [Headers][X86] Allow AVX512 integer min/max mask/m

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-05 Thread via cfe-commits
https://github.com/brenfwd updated https://github.com/llvm/llvm-project/pull/156763 >From 1082254d96f3c427f4cb867fcf964c19655e1876 Mon Sep 17 00:00:00 2001 From: Brenden Forward Date: Tue, 2 Sep 2025 18:16:46 -0700 Subject: [PATCH 1/5] Add google-runtime-float Clang-Tidy check --- .../clang-t

[clang] [HLSL] Enable unbounded resource arrays at global scope (PR #155053)

2025-09-05 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. LGTM, just a question https://github.com/llvm/llvm-project/pull/155053 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Enable unbounded resource arrays at global scope (PR #155053)

2025-09-05 Thread Joshua Batista via cfe-commits
@@ -0,0 +1,64 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-compute -finclude-default-header \ +// RUN: -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s -check-prefixes=CHECK,DXIL +// RUN: %clang_cc1 -finclude-default-header -triple spirv-unknown-vulkan-compute

[clang] [HLSL] Enable unbounded resource arrays at global scope (PR #155053)

2025-09-05 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/155053 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-09-05 Thread Derek Schuff via cfe-commits
Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= Message-ID: In-Reply-To: @@ -70,6 +75,25 @@ WebAssemblyAsmBackend::getFixupKi

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-05 Thread via cfe-commits
@@ -238,6 +238,7 @@ Clang-Tidy Checks :doc:`google-readability-avoid-underscore-in-googletest-name `, :doc:`google-readability-casting `, :doc:`google-readability-todo `, + :doc:`google-runtime-float `, "Yes" brenfwd wrote: Resolved https://github

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread via cfe-commits
https://github.com/PiJoules approved this pull request. LGTM and can confirm this fixes https://github.com/llvm/llvm-project/issues/156760. Could you add that repro as a regression test here. https://github.com/llvm/llvm-project/pull/157171 ___ cfe-c

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -323,6 +345,39 @@ static void emitOptionParser(const RecordKeeper &Records, raw_ostream &OS) { OS << "\n};\n"; OS << "#endif // OPTTABLE_PREFIXES_TABLE_CODE\n\n"; + // Dump command IDs. + OS << "/"; + OS << "// Command IDs\n\n"; + OS << "#ifdef OPTTABLE_COM

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread via cfe-commits
PiJoules wrote: > > LGTM and can confirm this fixes #156760. Could you add that repro as a > > regression test here. > > Can you check if the regression tests added to > `clang/test/PCH/thread-safety-attrs.cpp` covers the cases? That test passes mutexes to std::lock but the example in the bug

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-05 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: > LGTM and can confirm this fixes #156760. Could you add that repro as a > regression test here. Can you check if the regression tests added to `clang/test/PCH/thread-safety-attrs.cpp` covers the cases? https://github.com/llvm/llvm-project/pull/157171 __

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -0,0 +1,125 @@ +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Option/ArgList.h" +#include "llvm/Option/OptTable.h" +#include "llvm/Support/Error.h" +#include "llvm/Support/InitLLVM.h" +#include "llvm/Support/raw_ostream.h" + +using namespace ll

[clang] [HLSL] Fix OpaqueValueExpr handling in InitListExpr (PR #156750)

2025-09-05 Thread Helena Kotas via cfe-commits
https://github.com/hekota commented: You should probably remove the XFAIL from clang/test/CodeGenHLSL/BasicFeatures/InitLists.hls as part of this change. https://github.com/llvm/llvm-project/pull/156750 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] [llvm] [DirectX] Add isinf f16 emulation for SM6.8 and lower (PR #156932)

2025-09-05 Thread Farzon Lotfi via cfe-commits
@@ -51,6 +51,43 @@ static bool resourceAccessNeeds64BitExpansion(Module *M, Type *OverloadTy, return ScalarTy->isDoubleTy() || ScalarTy->isIntegerTy(64); } +static Value *expand16BitIsInf(CallInst *Orig) { + Module *M = Orig->getModule(); + if (M->getTargetTriple().getDXI

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-09-05 Thread Derek Schuff via cfe-commits
Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= Message-ID: In-Reply-To: https://github.com/dschuff edited https://github.com/llvm/llvm-proje

[clang] [CIR] Implement CXX field default initialization (PR #157140)

2025-09-05 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM, Thanks for updating GenExprComplex https://github.com/llvm/llvm-project/pull/157140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -98,7 +98,23 @@ class HelpTextVariant visibilities, string text> { string Text = text; } -class Option prefixes, string name, OptionKind kind> { +// Base class for TopLevelCommand and Subcommands. +class Command { string Name = name; } + +// Class definition for position

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -202,6 +205,42 @@ void ArgList::print(raw_ostream &O) const { LLVM_DUMP_METHOD void ArgList::dump() const { print(dbgs()); } #endif +StringRef ArgList::getSubcommand( +const ArrayRef Commands, +std::function)> HandleMultipleSubcommands, +std::function)> HandleOt

[clang-tools-extra] [Clang-Tidy] Add google-runtime-float Clang-Tidy check (PR #156763)

2025-09-05 Thread via cfe-commits
@@ -0,0 +1,78 @@ +//===--===// +// +// 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-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -0,0 +1,125 @@ +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Option/ArgList.h" +#include "llvm/Option/OptTable.h" +#include "llvm/Support/Error.h" +#include "llvm/Support/InitLLVM.h" +#include "llvm/Support/raw_ostream.h" + +using namespace ll

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -534,6 +555,21 @@ InputArgList OptTable::internalParseArgs( MissingArgIndex = MissingArgCount = 0; unsigned Index = 0, End = ArgArr.size(); + const Command *ActiveCommand = nullptr; + + // Look for subcommand which is positional. + if (!Commands.empty() && Index < En

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-05 Thread St. Muench via cfe-commits
https://github.com/stmuench edited https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -202,6 +205,42 @@ void ArgList::print(raw_ostream &O) const { LLVM_DUMP_METHOD void ArgList::dump() const { print(dbgs()); } #endif +StringRef ArgList::getSubcommand( +const ArrayRef Commands, +std::function)> HandleMultipleSubcommands, +std::function)> HandleOt

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -400,7 +455,22 @@ static void emitOptionParser(const RecordKeeper &Records, raw_ostream &OS) { OS << ", nullptr"; // The option Values (unused for groups). -OS << ", nullptr)\n"; +OS << ", nullptr"; + +// The option CommandIDsOffset. +OS << ", "; +

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-09-05 Thread Derek Schuff via cfe-commits
Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= , Lukas =?utf-8?q?Döllerer?= Message-ID: In-Reply-To: @@ -70,6 +75,25 @@ WebAssemblyAsmBackend::getFixupKi

[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

2025-09-05 Thread Gedare Bloom via cfe-commits
@@ -958,9 +958,13 @@ template <> struct MappingTraits { // For backward compatibility. BracketAlignmentStyle LocalBAS = BAS_Align; if (IsGoogleOrChromium) { -if (Style.Language == FormatStyle::LK_JavaScript) { +FormatStyle::LanguageKind Languag

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -202,6 +205,42 @@ void ArgList::print(raw_ostream &O) const { LLVM_DUMP_METHOD void ArgList::dump() const { print(dbgs()); } #endif +StringRef ArgList::getSubcommand( +const ArrayRef Commands, +std::function)> HandleMultipleSubcommands, +std::function)> HandleOt

[clang] [CIR][NFC] Consildate CIRGenExprCXX.cpp files (PR #157169)

2025-09-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-win` running on `as-builder-10` while building `clang` at step 16 "test-check-lldb-unit". Full details are available at: https://lab.llvm.org/buildbot/#/builders/197/builds/8743 Here is the relevant piece

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -741,17 +779,62 @@ void OptTable::printHelp(raw_ostream &OS, const char *Usage, const char *Title, Visibility(0)); } +static const OptTable::Command * +getActiveCommand(ArrayRef Commands, StringRef Subcommand) { + for (const auto &C : Commands) { +if (Subcommand

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -202,6 +205,42 @@ void ArgList::print(raw_ostream &O) const { LLVM_DUMP_METHOD void ArgList::dump() const { print(dbgs()); } #endif +StringRef ArgList::getSubcommand( +const ArrayRef Commands, +std::function)> HandleMultipleSubcommands, +std::function)> HandleOt

[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

2025-09-05 Thread via cfe-commits
@@ -280,6 +281,12 @@ class ArgList { /// list. virtual unsigned getNumInputArgStrings() const = 0; + /// getSubcommand - Return the active subcommand, if one exists. + LLVM_ABI StringRef getSubcommand( + const ArrayRef Commands, + std::function)> HandleMultiple

  1   2   3   4   >