[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream the support of Agg init with lvalue ComplexType Issue: https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/159974.diff 2 Files Affected:

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Upstream the support of Agg init with lvalue ComplexType Issue: https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/159974.diff 2 Files Affected

[clang] [CIR] Upstream support Agg init with lvalue ComplexType (PR #159974)

2025-09-20 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/159974 Upstream the support of Agg init with lvalue ComplexType Issue: https://github.com/llvm/llvm-project/issues/141365 >From 62c9484e43b14314c4bd3ceae5b41ca30c4cf5c6 Mon Sep 17 00:00:00 2001 From: AmrDeveloper

[clang] [CIR] Implement CXX new for ComplexType with init (PR #159973)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This change implements CXX new for ComplexType with init Issue: https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/159

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

2025-09-20 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/107168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement CXX new for ComplexType with init (PR #159973)

2025-09-20 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/159973 This change implements CXX new for ComplexType with init Issue: https://github.com/llvm/llvm-project/issues/141365 >From bcbc07be65ce776a2f8e0bce34dd92a7aaa214c6 Mon Sep 17 00:00:00 2001 From: AmrDeveloper

[clang-tools-extra] Improve loading speed of indexes used by clangd (PR #156185)

2025-09-20 Thread via cfe-commits
@@ -154,6 +156,38 @@ class RefSlab { llvm::DenseSet Entries; }; + /// RefSlab::Builder is a mutable container that can 'freeze' to RefSlab. + /// This variant is optimized to receive unique symbols + /// Use this when reading symbols which where previously written in

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

2025-09-20 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast commented: A user-defined string literal is not a _string-literal_: ```cpp // expected-no-diagnostics #define STR(X) # X const char *s = STR( import "hello"_world; ); ``` https://github.com/llvm/llvm-project/pull/107168 __

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

2025-09-20 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast commented: The treatment of keywords should be different from that of the alternative tokens. ```cpptypedef int import; import extern x; // expected-error {{}} ``` https://github.com/llvm/llvm-project/pull/107168 ___

[clang] [Clang][AMDGPU] Add -f[no-]atomic-backward-compatible and refine atomic codegen (PR #157672)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Yaxun (Sam) Liu (yxsamliu) Changes Clang recently introduced `-f[no]atomic-` options and `[[clang::atomic]]` attributes to give better control over atomic codegen. The default assumed no remote memory and no fine-grained memory to

[clang] [clang][BufferUsage] Fix a StringRef lifetime issue (PR #159109)

2025-09-20 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/159109 ___ 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] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-09-20 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-tools-extra] Reland "[clangd] Add feature modules registry" (PR #154836)

2025-09-20 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet edited https://github.com/llvm/llvm-project/pull/154836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Offload] Change ELF machine type for SPIR-V OpenMP image (PR #159623)

2025-09-20 Thread Joseph Huber via cfe-commits
@@ -423,9 +423,10 @@ Error offloading::intel::containerizeOpenMPSPIRVImage( Header.Class = ELF::ELFCLASS64; Header.Data = ELF::ELFDATA2LSB; Header.Type = ELF::ET_DYN; - // Use an existing Intel machine type as there is not one specifically for - // Intel GPUs. - Header

[libclc] libclc: Remove HAVE_LLVM version macros (PR #158257)

2025-09-20 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/158257 This doesn't need to pretend to support multiple versions of llvm and these are old anyway. >From 34e55fceed99df44d587d27ab4478e3b8500dd2b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 12 Sep 2025 18:

[clang] [LifetimeSafety] Avoid adding already present items in sets/maps (PR #159582)

2025-09-20 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: * **#159582** https://app.graphite.dev/github/pr/llvm/llvm-project/159582?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/159582

[clang] [X86] Relax AVX ABI warning on internal functions (PR #157570)

2025-09-20 Thread Joseph Huber via cfe-commits
@@ -1513,12 +1513,17 @@ static void initFeatureMaps(const ASTContext &Ctx, static bool checkAVXParamFeature(DiagnosticsEngine &Diag, SourceLocation CallLoc, + const FunctionDecl &Callee,

[clang] [clang-repl] Disable out of process JIT tests on non-unix platforms (PR #159404)

2025-09-20 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/159404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Assert that EvaluateAsInitializer has non-null VD (PR #159274)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Both the expression (the initializer) as well as the VarDecl can't be null here. Assert that. --- Full diff: https://github.com/llvm/llvm-project/pull/159274.diff 2 Files Affected: - (modified) clang/lib/

[clang] [clang-format] Fix for BreakTemplateDeclarations and RequiresClausePosition (PR #159277)

2025-09-20 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/159277 >From bee11d34f36de3f2a9071bbb413b6fbbbec5ae52 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Wed, 17 Sep 2025 00:04:24 -0700 Subject: [PATCH] [clang-format] Fix for BreakTemplateDeclarations and

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-20 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Can you tell why there is false positive with structured bindings only, but without variables? https://github.com/llvm/llvm-project/pull/157667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [llvm] fix-add-immutable-set (PR #159845)

2025-09-20 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: * **#159845** https://app.graphite.dev/github/pr/llvm/llvm-project/159845?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/159845

[clang] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-20 Thread Wael Yehia via cfe-commits
https://github.com/w2yehia edited https://github.com/llvm/llvm-project/pull/153049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-shlib] Fix linking libclang-cpp on Haiku (PR #156401)

2025-09-20 Thread Brad Smith via cfe-commits
brad0 wrote: @llvm-beanz Ping. https://github.com/llvm/llvm-project/pull/156401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] d263150 - [clang-tidy][NFC] add comment in llvm-use-ranges for add_new_check.py (#159927)

2025-09-20 Thread via cfe-commits
Author: Congcong Cai Date: 2025-09-21T09:36:29+08:00 New Revision: d263150db59281473a38abcc5fe2c15be2f776b7 URL: https://github.com/llvm/llvm-project/commit/d263150db59281473a38abcc5fe2c15be2f776b7 DIFF: https://github.com/llvm/llvm-project/commit/d263150db59281473a38abcc5fe2c15be2f776b7.diff

[clang-tools-extra] [clang-tidy][NFC] add comment in llvm-use-ranges for add_new_check.py (PR #159927)

2025-09-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/159927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] add comment in llvm-use-ranges for add_new_check.py (PR #159927)

2025-09-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/159927 >From 763c2dfdf4f8398d7b66915a2f9d3ee8f167f415 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sat, 20 Sep 2025 22:01:42 +0800 Subject: [PATCH] [clang-tidy][NFC] add comment in llvm-use-ranges for add_new

[clang] [CIR] Add atomic exchange operation (PR #158089)

2025-09-20 Thread Henrich Lauko via cfe-commits
@@ -4033,6 +4033,47 @@ def CIR_ThrowOp : CIR_Op<"throw"> { // Atomic operations //===--===// +def CIR_AtomicXchg : CIR_Op<"atomic.xchg", [ + AllTypesMatch<["result", "val"]> +]> { + let summary = "Atomic ex

[clang] [analyzer] Emit IssueHash in SARIF (PR #159445)

2025-09-20 Thread Dave Bartolomeo via cfe-commits
dbartol wrote: @ziqingluo-90 @jkorous-apple https://github.com/llvm/llvm-project/pull/159445 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)

2025-09-20 Thread Krish Gupta via cfe-commits
https://github.com/KrxGu updated https://github.com/llvm/llvm-project/pull/158146 >From 1d2f9ac071d436e6be4d693833a3b630e4a7fc15 Mon Sep 17 00:00:00 2001 From: Krish Gupta Date: Wed, 10 Sep 2025 03:41:06 +0530 Subject: [PATCH 1/2] [flang][OpenMP] Add lowering test: lastprivate on DO is scoped

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

2025-09-20 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 01/10] Parsing and storing of "variable category" in

[clang] [clang][Parse] Use consistent Scope::ScopeFlags enum values (NFC) (PR #159275)

2025-09-20 Thread Bruno De Fraine via cfe-commits
https://github.com/brunodf-snps edited https://github.com/llvm/llvm-project/pull/159275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] Revert "Reapply "[Coroutines] Add llvm.coro.is_in_ramp and drop return value of llvm.coro.end #153404"" (PR #159236)

2025-09-20 Thread Weibo He via cfe-commits
https://github.com/NewSigma closed https://github.com/llvm/llvm-project/pull/159236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] add array out-of-bounds access constraints using llvm.assume (PR #159046)

2025-09-20 Thread Sebastian Pop via cfe-commits
https://github.com/sebpop edited https://github.com/llvm/llvm-project/pull/159046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-20 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam edited https://github.com/llvm/llvm-project/pull/159566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] [clang] AST: remove DependentTemplateSpecializationType (PR #158109)

2025-09-20 Thread Corentin Jabot via cfe-commits
@@ -222,7 +222,6 @@ RegistryMaps::RegistryMaps() { REGISTER_MATCHER(declRefExpr); REGISTER_MATCHER(dependentNameType); REGISTER_MATCHER(dependentScopeDeclRefExpr); - REGISTER_MATCHER(dependentTemplateSpecializationType); cor3ntin wrote: I'm happy with t

[clang] [analyzer] Show element count in ArrayBound underflow reports (PR #158639)

2025-09-20 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/158639 From db0723ca737ec4613d186ff1137c7405c480baf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Mon, 15 Sep 2025 15:48:12 +0200 Subject: [PATCH 1/5] [analyzer] Show element count in ArrayBound

[clang] [X86] Add F16C f16 -> f32 constexpr support (PR #158142)

2025-09-20 Thread Simon Pilgrim via cfe-commits
@@ -41,15 +51,18 @@ __m256 test_mm256_cvtph_ps(__m128i a) { // CHECK: fpext <8 x half> %{{.*}} to <8 x float> return _mm256_cvtph_ps(a); } +TEST_CONSTEXPR(match_m256( +_mm256_cvtph_ps(_mm_setr_epi16(0x3C00, 0x4000, 0x4200, 0x4400, 0x4500, 0x3800, 0xC000, 0x)), +

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-20 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj commented: Hi @abidh , Thank you for the change. LGTM except the default visibility change. However, merging this change alone would mean flang would be accepting this option without any indication that it is not handled. It would be nice if - In Flang.cpp, you can

[clang] [clang][docs] mark v21 as released (PR #158629)

2025-09-20 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/158629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector insertion intrinsics to be used in constexpr #157709 (PR #158778)

2025-09-20 Thread Timm Baeder via cfe-commits
@@ -2937,6 +2937,50 @@ static bool interp__builtin_elementwise_triop( return true; } +static bool interp__builtin_x86_insert_subvector(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-20 Thread via cfe-commits
https://github.com/flovent updated https://github.com/llvm/llvm-project/pull/158462 >From a1941312179171a8752c27f886158ce4fd90db33 Mon Sep 17 00:00:00 2001 From: flovent Date: Sun, 14 Sep 2025 14:33:59 +0800 Subject: [PATCH 1/4] [clang-tidy] Add new check `modernize-use-structured-binding` --

[clang] [llvm] [Driver][AMDGPU][HIP][SPIRV] Disable optimizations for AMDGCN SPIR-V (PR #154765)

2025-09-20 Thread Alex Voicu via cfe-commits
AlexVlx wrote: We've had some internal discussion around this, we will rely on this mechanism whilst we implement support for what we want in Clang. https://github.com/llvm/llvm-project/pull/154765 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] 06d202b - [clang][DebugInfo] Emit unified (Itanium) mangled name to structor declarations (#154142)

2025-09-20 Thread via cfe-commits
Author: Michael Buch Date: 2025-09-09T09:50:11+01:00 New Revision: 06d202b6cb13b38165af03dbf12a3beaac0b38ea URL: https://github.com/llvm/llvm-project/commit/06d202b6cb13b38165af03dbf12a3beaac0b38ea DIFF: https://github.com/llvm/llvm-project/commit/06d202b6cb13b38165af03dbf12a3beaac0b38ea.diff

[clang] [llvm] [X86][KCFI] Do not emit a type prefix for nocf_check functions (PR #158133)

2025-09-20 Thread Sami Tolvanen via cfe-commits
samitolvanen wrote: > > Looking at this a bit closer, the `nocf_check` attribute also applies to > > function pointers with `-fcf-protection`, and disables tracking for > > indirect branches. > > Wait, like, as variable/struct-member attribute? For function pointer types, specifically. Perfor

[clang] [clang-tools-extra] [lldb] [clang] AST: remove DependentTemplateSpecializationType (PR #158109)

2025-09-20 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/158109 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add SpaceBeforeUnderscoreParens option for GNU gettext… (PR #159925)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (kgerlich) Changes … macro This adds a new configuration option SpaceBeforeUnderscoreParens to control spacing between underscore and opening parenthesis. This is specifically designed for the gettext internationalization mac

[clang] [Sema] Fix missing warnings for unused args with invalid printf specs. (PR #158514)

2025-09-20 Thread via cfe-commits
lakreite wrote: Thank you for the feedback. I think there's a bug, because... With invalid conversion specifiers clang emits a warning: ```c main.cpp:5:17: warning: invalid conversion specifier 'k' [-Wformat-invalid-specifier] 5 | printf("%d %k", 1, 1); |~^ main.cpp

[clang] [DTLTO][TEST] Make Clang driver tests more robust (PR #159151)

2025-09-20 Thread via cfe-commits
bd1976bris wrote: > Should fix buildbot failures caused by the merge of PR #159129. It would involve reverting a number of commits. Can you approve #159158? @petrhosek approved the same commit (although with an incorrect description) earlier: #159050. https://github.com/llvm/llvm-project/pull

[clang-tools-extra] [clang-tools-extra][test] Ensure file is writeable after copying (PR #157728)

2025-09-20 Thread Jordan Rupprecht via cfe-commits
https://github.com/rupprecht closed https://github.com/llvm/llvm-project/pull/157728 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][NFC] Rename LivenessValues::equals to LivenessValues::operator== (PR #157657)

2025-09-20 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/157657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode][X86] Allow AVX512 funnel shift by scalar immediate intrinsics to be used in constexpr (PR #157681)

2025-09-20 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/157681 Extends interp__builtin_elementwise_triop to handle (vector, vector, scalar) trinary op intrinsics Fixes #153152 >From d690a70f21e7ac309ca5acab843e75b54e71c4a4 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Dat

[clang-tools-extra] [clangd] Doxygen Parsing: Add proper handling of \note, \warning and \retval command + change render kind of command arguments + add preprocessing for markdown code blocks/spans (P

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

[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

2025-09-20 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko updated https://github.com/llvm/llvm-project/pull/157667 >From 6aa3e6424865a5fc53489612ecb7f656f7165b9c Mon Sep 17 00:00:00 2001 From: Ivan Murashko Date: Tue, 9 Sep 2025 13:42:46 +0100 Subject: [PATCH] [clang][Sema] Fix false positive -Wshadow with structured b

[clang] Adding support for iterator in motion clauses. (PR #159112)

2025-09-20 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 h,cpp -- clang/test/OpenMP/target_update_iterator_ast_p

[clang] [DTLTO][TEST] Get the DTLTO Clang driver tests failing on some buildbots to pass (PR #159158)

2025-09-20 Thread via cfe-commits
bd1976bris wrote: Hi @petrhose. This is the same fix as you approved in #159050. It's not ideal but there's not loss of coverage given the DTLTO testing in the `cross-poject-test` area. I would like to make this patch to get the bot green, rather than reverting the previous chain of commits, a

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

2025-09-20 Thread Baranov Victor via cfe-commits
@@ -201,6 +201,11 @@ Changes in existing checks namespace are treated as the tag or the data part of a user-defined tagged union respectively. +- Improved :doc:`bugprone-unchecked-optional-access + ` check by supporting + `NullableValue::makeValue` and `NullableValue::m

[clang] [Sema][AArch64] Emit error for mismatched VLs on streaming mode transitions (PR #159131)

2025-09-20 Thread Sander de Smalen via cfe-commits
@@ -46,25 +46,25 @@ void sme_streaming_calling_non_streaming_with_return_vl(void) __arm_streaming { void sme_streaming_compatible_calling_streaming_with_vl_args(__SVInt8_t arg) __arm_streaming_compatible { // expected-noflags-warning@+2 {{passing a VL-dependent argument to

[clang] [NFC] Fix commas on assertion from 147514 (PR #158635)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Erich Keane (erichkeane) Changes As brought up on the review for #147514, the original patch doesn't correctly parenthesize the expression in the assert. This fixes it. --- Full diff: https://github.com/llvm/llvm-project/pull/158

[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)

2025-09-20 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam ready_for_review https://github.com/llvm/llvm-project/pull/159566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b27bb09 - [AST] Simplify TypeIsArrayType (NFC) (#158784)

2025-09-20 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-09-16T09:07:20-07:00 New Revision: b27bb09f6d02e750c4126aeffb7a2ecf0d6ab783 URL: https://github.com/llvm/llvm-project/commit/b27bb09f6d02e750c4126aeffb7a2ecf0d6ab783 DIFF: https://github.com/llvm/llvm-project/commit/b27bb09f6d02e750c4126aeffb7a2ecf0d6ab783.diff L

[clang-tools-extra] [clang-tidy][NFC] Enable `readability-convert-member-functions-to-static` in the codebase (PR #156265)

2025-09-20 Thread Victor Chernyakin via cfe-commits
localspook wrote: In that case, closing this PR and the attached issue as not planned https://github.com/llvm/llvm-project/pull/156265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-20 Thread Burhan Söğüt via cfe-commits
@@ -0,0 +1,46 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR +// RUN: %clang_cc1 -x c++ -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cpp.cir +// RUN: FileCheck

[clang] [clang][ExprConst] Move getLangOpts() to interp::State subclasses (PR #159280)

2025-09-20 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/159280 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DTLTO][TEST] Fix the DTLTO Clang driver tests failing on some bots (PR #159050)

2025-09-20 Thread via cfe-commits
https://github.com/bd1976bris created https://github.com/llvm/llvm-project/pull/159050 Not all builds name the compiler executable clang. For example, the Fuchsia buildbots use llvm as their single toolchain executable name, as they combine everything together in a busybox-style binary. This i

[clang] [Clang][AST] Fix printing for `atomic_test_and_set` and `atomic_clear` (PR #159712)

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

[clang-tools-extra] [llvm] reapply "[clang-tidy] support query based custom check" (PR #159547)

2025-09-20 Thread Nico Weber via cfe-commits
nico wrote: These tests seem to fail when the new option is set to OFF: ``` Clang Tools :: clang-tidy/checkers/custom/query-incorrect-query.cpp Clang Tools :: clang-tidy/checkers/custom/query-partially-active-check.cpp Clang Tools :: clang-tidy/checkers/custom/query.cpp Clang Tools :: cl

[clang] [llvm] [HLSL] Add support for user semantics (PR #153424)

2025-09-20 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/153424 From 445bdafaa7b32b6154f3e7a414463818d90ee20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Tue, 12 Aug 2025 18:06:17 +0200 Subject: [PATCH 1/5] [HLSL] Add support for input semantics in s

[clang] [os_log] Fix a CodeGen crash that occurs when arguments of struct, class, or complex types are passed to _builtin_os_log_format (PR #158744)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Akira Hatanaka (ahatanak) Changes This change fixes a crash in clang's CodeGen by ensuring that those arguments are ignored. rdar://139824423 --- Full diff: https://github.com/llvm/llvm-project/pull/158744.diff 2 Files Affected: - (mo

[clang] [AST] Assert that FoldingSetNodeID used for hint is correct upon insertion (PR #157692)

2025-09-20 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > Sensible? Or presumably we can have an always-inline function wrapper for > that, and the inliner will just take care of it. Yeah, I think the inline helper is cleaner, we can just discard ID before calling anything not inline. https://github.com/llvm/llvm-project/pull/15769

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-20 Thread Dominik Adamski via cfe-commits
@@ -2590,13 +2590,27 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder, } builder.SetInsertPoint(*regionBlock, (*regionBlock)->begin()); + + bool noLoopMode = false; + omp::TargetOp targetOp = wsloopOp->getParentOfType(); + if (targetOp) { +Operat

[clang-tools-extra] [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests. (PR #156950)

2025-09-20 Thread via cfe-commits
https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/156950 >From 05fa2572ad23795ef821b81ecd5dd4ff4d0aea7a Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Thu, 4 Sep 2025 12:00:44 -0700 Subject: [PATCH 1/2] [clang-tools-extra] Remove 'REQUIRES: shell' from lit tests.

[clang] [AST] Match the FoldingSetNodeID computed before and after creating TypedefType (PR #157662)

2025-09-20 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. ugh this looks quite fragile (not your fix but rather having multiple ways to call profile), i am worried we might have divergences in other places as well :( i think it would be nice to handle that in a more principled way for the future

[clang] [analyzer][NFC] Remove dead LiveVariables::Observer::observerKill (PR #157661)

2025-09-20 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/157661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 avg intrinsics (PR #157464)

2025-09-20 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/157464 >From 441f060fee2f624e1940f04ade9272cb50b0b33e Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Mon, 8 Sep 2025 15:51:33 +0700 Subject: [PATCH 1/8] [Headers][X86] Enable constexpr handling for MMX/

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-20 Thread Simon Pilgrim via cfe-commits
@@ -2060,7 +2060,7 @@ static __inline__ void __DEFAULT_FN_ATTRS _mm_storel_pd(double *__dp, ///A 128-bit vector of [16 x i8]. /// \returns A 128-bit vector of [16 x i8] containing the sums of both ///parameters. -static __inline__ __m128i __DEFAULT_FN_ATTRS _mm_add_epi

[clang] [Headers][X86] Allow AVX512 masked blend intrinsics to be used in constexpr (PR #156234)

2025-09-20 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/156234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Rewrite semantics parsing (PR #152537)

2025-09-20 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts auto_merge_enabled https://github.com/llvm/llvm-project/pull/152537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Parse] Avoid mixing enum and non-enum types in ternary expressions. NFC. (PR #159334)

2025-09-20 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: FYI https://github.com/llvm/llvm-project/pull/159275 https://github.com/llvm/llvm-project/pull/159334 ___ 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-20 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,48 @@ +.. title:: clang-tidy - bugprone-loop-variable-copied-then-modified + +bugprone-loop-variable-copied-then-modified +=== + +Detects when a loop variable is copied and then subsequently modified and +suggests replacing with a

[clang] Add unique_ptr accesses to -Wunsafe-buffer-usage (PR #156773)

2025-09-20 Thread via cfe-commits
@@ -1318,6 +1319,105 @@ static bool isSupportedVariable(const DeclRefExpr &Node) { return D != nullptr && isa(D); } +static bool isUniquePtrArray(const CXXRecordDecl *RecordDecl) { + if (!RecordDecl || !RecordDecl->isInStdNamespace() || + RecordDecl->getNameAsString()

[clang] 6a16f1a - [clang][ExprConst] Assert that EvaluateAsInitializer has non-null VD (#159274)

2025-09-20 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-17T13:23:02+02:00 New Revision: 6a16f1a6f4aca8957c9c1f672f2572c662ddf562 URL: https://github.com/llvm/llvm-project/commit/6a16f1a6f4aca8957c9c1f672f2572c662ddf562 DIFF: https://github.com/llvm/llvm-project/commit/6a16f1a6f4aca8957c9c1f672f2572c662ddf562.diff L

[clang] [WebKit checkers] Treat function pointers with "Singleton" suffix as singleton. (PR #158012)

2025-09-20 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/158012 >From 4300ba25baa26edd6996ced22b1d52025dbba86b Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Thu, 11 Sep 2025 01:23:50 -0700 Subject: [PATCH] [WebKit checkers] Treat function pointers with "Singleton" suffix

[clang] [clang][analyzer] Add checker 'core.NullPointerArithm' (PR #157129)

2025-09-20 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat commented: Overall looks good to me, thanks for the patch! I added a few remarks in inline comments. https://github.com/llvm/llvm-project/pull/157129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] [llvm] [ImmutableSet] Optimize add/remove operations to avoid redundant tree modifications (PR #159845)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-adt Author: Utkarsh Saxena (usx95) Changes Optimize ImmutableSet operations to avoid unnecessary tree modifications when adding existing elements or removing non-existent elements. - Modified `ImutAVLFactory::add_internal()` to return the original

[clang] [clang-repl] Teach clang-repl how to load PCHs (reprise) (PR #157359)

2025-09-20 Thread Jeaye Wilkerson via cfe-commits
https://github.com/jeaye updated https://github.com/llvm/llvm-project/pull/157359 >From 73669c01825214c51d0ddb79dce6ec0235633d08 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Thu, 30 May 2024 05:05:41 + Subject: [PATCH 01/10] [clang-repl] Teach clang-repl how to load PCHs. --- clan

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-20 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,58 @@ +.. title:: clang-tidy - modernize-use-structured-binding + +modernize-use-structured-binding + + +Suggests using C++17 structured bindings to decompose pairs. + +This check finds three code patterns and recommends using structured

[clang] [Clang][Cygwin] Cygwin x86_64 should accept __stdcall (PR #158385)

2025-09-20 Thread via cfe-commits
@@ -983,6 +983,7 @@ class LLVM_LIBRARY_VISIBILITY CygwinX86_64TargetInfo : public X86_64TargetInfo { : X86_64TargetInfo(Triple, Opts) { this->WCharType = TargetInfo::UnsignedShort; this->WIntType = TargetInfo::UnsignedInt; +this->UseMicrosoftManglingForC = tr

[clang] [analyzer] Prevent triplicate warnings for `sarif-html` (PR #158112)

2025-09-20 Thread Balazs Benics via cfe-commits
@@ -0,0 +1,27 @@ +//==- SarifDiagnostics.h - SARIF Diagnostics for Paths --*- C++ -*-// steakhal wrote: I thin this line is not properly padded up. https://github.com/llvm/llvm-project/pull/158112 ___ cfe-commits maili

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-09-20 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,216 @@ +// RUN: %check_clang_tidy -std=c++17-or-later %s modernize-use-structured-binding %t -- -- -I %S/Inputs/use-structured-binding/ + +#include "fake_std_pair_tuple.h" + +template +void MarkUsed(T x); + +struct TestClass { + int a; + int b; + TestClass() : a(0),

[clang] [APINotes] Support annotating safety of APIs (PR #157506)

2025-09-20 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun created https://github.com/llvm/llvm-project/pull/157506 Swift supports a strictly memory safe mode where every expressions using an unsafe feature or API need to be annotatated with the unsafe effect. This sometimes requires adding safety annotations to the foreig

[clang] [CIR] Add virtual base support to getAddressOfBaseClass (PR #159162)

2025-09-20 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/159162 This patch enables calling virtual functions of virtual base classes of a derived class. >From a25ee7f9df6eb7c5d6b237eb5b072c182b4f0681 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Mon, 8 Sep 2025 16:38:50 +

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-20 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. Thanks for the changes, Abid. LGTM. https://github.com/llvm/llvm-project/pull/158314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

2025-09-20 Thread Anchu Rajendran S via cfe-commits
https://github.com/anchuraj edited https://github.com/llvm/llvm-project/pull/158125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Remove __attribute__((always_inline)) (PR #158791)

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

[clang] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #146281)

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

[clang] [clang][HeuristicResolver] Default argument heuristic for template template parameters (PR #156404)

2025-09-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/156404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for __builtin_alloca (PR #157116)

2025-09-20 Thread Morris Hafner via cfe-commits
@@ -149,6 +149,57 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID, emitVAEnd(emitVAListRef(e->getArg(0)).getPointer()); return {}; + case Builtin::BIalloca: + case Builtin::BI_alloca: + case Builtin::BI__builtin_alloca_uninitializ

[clang] [CIR] Upstream FPToFPBuiltin ATanOp (PR #157496)

2025-09-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream support for FPToFPBuiltin ATanOp --- Full diff: https://github.com/llvm/llvm-project/pull/157496.diff 5 Files Affected: - (modified) clang/include/clang/CIR/Dialect/IR/CIROps.td (+10) - (modif

[clang] [HLSL] Rewrite semantics parsing (PR #152537)

2025-09-20 Thread Nathan Gauër via cfe-commits
Keenuts wrote: @llvm-beanz friendly ping https://github.com/llvm/llvm-project/pull/152537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >