[clang] Compile-time dispatch for ASTVector operations. (PR #162000)

2025-10-04 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 created https://github.com/llvm/llvm-project/pull/162000 None >From 5a7b222f638fc2bd88d014eb90ec9d5de0678c7f Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sun, 5 Oct 2025 12:20:36 +0530 Subject: [PATCH] Compile-time dispatch for ASTVector operations. --- c

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-04 Thread Timm Baeder via cfe-commits
@@ -3162,7 +3143,10 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case Builtin::BI_rotl: case Builtin::BI_lrotl: case Builtin::BI_rotl64: -return interp__builtin_rotate(S, OpPC, Frame, Call, /*Right=*/false); +return interp__builtin

[clang] 505956e - [Clang] Use the templated declaration for DiagnoseUseOfDecl (#161900)

2025-10-04 Thread via cfe-commits
Author: Younan Zhang Date: 2025-10-05T06:20:09Z New Revision: 505956eeb0943461f9f0c10f0cca0da185fa142d URL: https://github.com/llvm/llvm-project/commit/505956eeb0943461f9f0c10f0cca0da185fa142d DIFF: https://github.com/llvm/llvm-project/commit/505956eeb0943461f9f0c10f0cca0da185fa142d.diff LOG:

[clang] [Clang] Fix concept paramater mapping and caching (PR #161994)

2025-10-04 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-aarch64-ubuntu-clang` running on `bolt-worker-aarch64` while building `clang` at step 5 "build-clang-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/128/builds/7520 Here is the relevant p

[clang] [Clang] Fix concept paramater mapping and caching (PR #161994)

2025-10-04 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/161994 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix concept paramater mapping for SizeOfPackExpr (PR #161994)

2025-10-04 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/161994 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add -r option for recursing into directories (PR #160299)

2025-10-04 Thread via cfe-commits
owenca wrote: Running the new clang-format from this patch on `clang/tools/clang-format/` results in the following: ``` $ clang-format -ir tools/clang-format /llvm-project/clang/tools/clang-format/.clang-format:1:1: error: Unknown value for BasedOnStyle: clang - format BasedOnStyle : clang - fo

[clang] [clang-format] Correctly annotate static overloaded operator calls (PR #161944)

2025-10-04 Thread Björn Schäpers via cfe-commits
@@ -3802,7 +3802,7 @@ static bool isFunctionDeclarationName(const LangOptions &LangOpts, const auto *Prev = Current.getPreviousNonComment(); assert(Prev); - if (Prev->is(tok::coloncolon)) + if (Prev->is(tok::coloncolon) && Prev->hasWhitespaceBefore()) H

[clang-tools-extra] [clang-tidy] Add IgnoredRegex to 'bugprone-suspicious-include' (PR #160958)

2025-10-04 Thread Björn Schäpers via cfe-commits
@@ -1,4 +1,4 @@ -// RUN: %check_clang_tidy %s bugprone-suspicious-include %t -- -- -isystem %clang_tidy_headers -fmodules +// RUN: %check_clang_tidy %s bugprone-suspicious-include %t -- -config="{CheckOptions: {bugprone-suspicious-include.IgnoredRegex: 'moc_.*'}"} -- -isystem %

[clang] [llvm] workflows/release-binaries: Enable Windows x86 builds (PR #128274)

2025-10-04 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/128274 >From 2110f92892dd72dfbe1a7d87116faa3693c7c586 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 22 Feb 2025 03:08:24 + Subject: [PATCH 01/40] workflows/release-binaries: Enable Windows x86 builds ---

[clang] [clang][AST] Don't print inherited default template args (PR #161953)

2025-10-04 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Yeah, i think it would not hurt! https://github.com/llvm/llvm-project/pull/161953 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Disable Driver/env.c on AIX (NFC) (PR #161874)

2025-10-04 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 approved this pull request. https://github.com/llvm/llvm-project/pull/161874 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-04 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr commented: `interp__builtin_rotate` should be unused after this patch. https://github.com/llvm/llvm-project/pull/161924 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [clang][x86][bytecode] Replace interp__builtin_rotate with static bool interp__builtin_elementwise_int_binop callback #160289 (PR #161924)

2025-10-04 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/161924 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Dependency Scanning] Refactor Scanning Compiler Instance Initialization (PR #161300)

2025-10-04 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: Thanks so much for the detailed review @jansvoboda11 ! https://github.com/llvm/llvm-project/pull/161300 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Continue aligned lines better (PR #161903)

2025-10-04 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks edited https://github.com/llvm/llvm-project/pull/161903 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][DependencyScanning] Reset options generated for named module compilations. (PR #161486)

2025-10-04 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/161486 >From 7130126a3231f50b8eeea662e664e19db06f51c7 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Wed, 1 Oct 2025 03:51:58 +0200 Subject: [PATCH 1/4] [clang][DependencyScanning] Reset options generated f

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-04 Thread via cfe-commits
@@ -13660,10 +13594,11 @@ def warn_acc_var_referenced_lacks_op "reference has no effect">, InGroup>, DefaultError; +def warn_out_of_scope_var_usage +: Warning<"variable %0 declared in 'if' block is always false or null here">, + InGroup>; ---

[clang] [CIR] Fix destructor calls with temporary objects (PR #161922)

2025-10-04 Thread Henrich Lauko via cfe-commits
@@ -1151,7 +1153,9 @@ class ScalarExprEmitter : public StmtVisitor { CIRGenFunction::LexicalScope lexScope{cgf, loc, b.getInsertionBlock()}; cgf.curLexScope->setAsTernary(); - b.create(loc, cgf.evalua

[clang] [CIR] Fix destructor calls with temporary objects (PR #161922)

2025-10-04 Thread Henrich Lauko via cfe-commits
@@ -1099,7 +1099,9 @@ class ScalarExprEmitter : public StmtVisitor { CIRGenFunction::LexicalScope lexScope{cgf, loc, b.getInsertionBlock()}; cgf.curLexScope->setAsTernary(); - b.create(loc, cgf.evalua

[clang] [CIR] Fix destructor calls with temporary objects (PR #161922)

2025-10-04 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm % nits https://github.com/llvm/llvm-project/pull/161922 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Update existing atomic ops to match assembly conventions (PR #161543)

2025-10-04 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/161543 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][DependencyScanning] Reset options generated for named module compilations. (PR #161486)

2025-10-04 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/161486 >From 52a54eeb0bccb871c7addcf3236f40ffb7a226a9 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Wed, 1 Oct 2025 03:51:58 +0200 Subject: [PATCH 1/4] [clang][DependencyScanning] Reset options generated f

[clang] a368fb5 - [CIR] Update ComplexImagOp to work on scalar type (#161571)

2025-10-04 Thread via cfe-commits
Author: Amr Hesham Date: 2025-10-04T11:39:26Z New Revision: a368fb5205a305197b650cbbc7264085d133e3e3 URL: https://github.com/llvm/llvm-project/commit/a368fb5205a305197b650cbbc7264085d133e3e3 DIFF: https://github.com/llvm/llvm-project/commit/a368fb5205a305197b650cbbc7264085d133e3e3.diff LOG: [C

[clang] [CIR] Update ComplexImagOp to work on scalar type (PR #161571)

2025-10-04 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/161571 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement BinComma Expr for AggregateExpr (PR #161823)

2025-10-04 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/161823 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy]: Ignore empty `catch` blocks in destructors in `bugprone-empty-catch` check (PR #161379)

2025-10-04 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/bugprone/EmptyCatchCheck.cpp | python3 clang-tools-extra/c

[clang] [CIR] Update ComplexImagOp to work on scalar type (PR #161571)

2025-10-04 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/161571 >From b6e720dcff7e2e681e58c8393b247b48ca6e69fd Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Wed, 1 Oct 2025 21:27:33 +0200 Subject: [PATCH 1/2] [CIR] Update ComplexImagOp to work on scalar type --- ...

[clang] [CIR][NFC] Update existing atomic ops to match assembly conventions (PR #161543)

2025-10-04 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/161543 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add IgnoredRegex to 'bugprone-suspicious-include' (PR #160958)

2025-10-04 Thread Baranov Victor via cfe-commits
=?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= , =?utf-8?q?Björn_Schäpers?= Message-ID: In-Reply-To: @@ -1,4 +1,4 @@ -// RUN: %check_clang_tidy %s bugprone-suspicious-include %t -- -- -isystem %clang_tidy_headers -fmodules +// RUN: %check_clang_tidy %s bugprone-suspic

[clang] [CIR][NFC] Update existing atomic ops to match assembly conventions (PR #161543)

2025-10-04 Thread Henrich Lauko via cfe-commits
@@ -4245,20 +4244,17 @@ def CIR_AtomicCmpXchg : CIR_Op<"atomic.cmpxchg", [ UnitAttr:$is_volatile); let assemblyFormat = [{ -`(` - $ptr `:` qualified(type($ptr)) `,` - $expected `:` type($expected) `,` - $desired `:` type($desired) `,

[clang] [clang][AST] Don't print inherited default template args (PR #161953)

2025-10-04 Thread Andrey Ali Khan Bolshakov via cfe-commits
bolshakov-a wrote: @erichkeane, @mizvekov, @cor3ntin Does such a small fix in pretty-printing need a relnote? https://github.com/llvm/llvm-project/pull/161953 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailm

[clang] [CIR] Support ComplexType in CallExpr args (PR #156236)

2025-10-04 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/156236 >From 1289be66e17b1be1d43e620fb5df75a08fcc4d2f Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 31 Aug 2025 12:44:19 +0200 Subject: [PATCH 1/3] [CIR] Support ComplexType in CallExpr args --- clang/l

[clang] [CIR] Upstream CXXParenListInitExpr for AggregateExpr (PR #161876)

2025-10-04 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/161876 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-04 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,411 @@ +//===--===// +// +// 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] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX/AVX512 IFMA madd52 intrinsics to be used in constexpr (PR #161056)

2025-10-04 Thread Hongyu Chen via cfe-commits
https://github.com/XChy commented: APInt calculation looks good to me. Please wait for @RKSimon to approve the frontend-specific part. https://github.com/llvm/llvm-project/pull/161056 ___ cfe-commits mailing list [email protected] https://lis

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-10-04 Thread via cfe-commits
@@ -2371,6 +2371,24 @@ NonOdrUseReason Sema::getNonOdrUseReasonInCurrentContext(ValueDecl *D) { return NOUR_None; } +bool Sema::isConditionVarReference(const DeclRefExpr *DRE) { + if (!DRE) +return false; + + const VarDecl *VD = dyn_cast(DRE->getDecl()); + + if (!VD)