[clang] [clang][analyzer] Print empty per-EP metrics as empty CSV cells, fix missing PathRunningTime metric (PR #162839)

2025-10-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Arseniy Zaostrovnykh (necto) Changes To avoid information loss, introduce a difference between unset stats and 0 for statistics that are supposed to be set once per entry point. Now, if the statistic is not set for an en

[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)

2025-10-10 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/162662 >From 7a5e159aceef541c054a53f6508cdb7fdd9af04d Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 9 Oct 2025 10:12:55 -0400 Subject: [PATCH 1/7] [C2y] Support WG14 N3457, the __COUNTER__ macro This im

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-10 Thread Andrey Ali Khan Bolshakov via cfe-commits
bolshakov-a wrote: Looks like your new test cases with `MultipleDefaults` pass even on the previous code revision (with `!RD->hasNonTrivialDefaultConstructor()` call). https://github.com/llvm/llvm-project/pull/162612 ___ cfe-commits mailing list cfe-c

[clang] 3149a77 - [CIR] Implement DesignatedInitUpdateExpr for AggregateExpr (#161897)

2025-10-10 Thread via cfe-commits
Author: Amr Hesham Date: 2025-10-05T11:38:27Z New Revision: 3149a7720f714c14f7e6320745d9e35f49dba62b URL: https://github.com/llvm/llvm-project/commit/3149a7720f714c14f7e6320745d9e35f49dba62b DIFF: https://github.com/llvm/llvm-project/commit/3149a7720f714c14f7e6320745d9e35f49dba62b.diff LOG: [C

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-10 Thread Shilei Tian via cfe-commits
@@ -0,0 +1,12 @@ +// COM: This test case validates the behavior of -hip-use-experimental-spirv-backend shiltian wrote: No need to use `COM:` prefix for comments. https://github.com/llvm/llvm-project/pull/162282 ___ cf

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

2025-10-10 Thread Arjun Ramesh via cfe-commits
https://github.com/arjunr2 closed https://github.com/llvm/llvm-project/pull/156087 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DebugInfo] Place local ODR-uniqued types in decl DISubprograms (PR #142166)

2025-10-10 Thread David Blaikie via cfe-commits
dwblaikie wrote: I will say, partly as I'm not as heavily involved in debug info anymore, and partly as this work is getting more involved - I'm losing my grasp on all the details, but doing my best to help - just fair warning that you're getting out into pretty unmarked territory & just going

[clang] [clang] add no-op __builtin_static_analysis_assume (PR #162939)

2025-10-10 Thread Florian Mayer via cfe-commits
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/162939 This builtin can be used by user code to communicate with static analyis tools (e.g. clang-tidy or clang-static-analyzer). Because the arguments are unevaluated, it is suitable for use in macros, where evaluating

[clang] [Clang][Sema] Fix crash in CheckUsingDeclQualifier due to diagnostic missing an argument (PR #161277)

2025-10-10 Thread Richard Smith via cfe-commits
@@ -430,3 +434,15 @@ void ctad_test() { CTAD t = s; // expected-warning {{class template argument deduction is incompatible with C++ standards before C++17}} } #endif + +namespace GH161702 { +struct S { + enum E { A }; + using E::A; // expected-warning {{enumeration type i

[clang] Convert bf16 to f32 conversions to generic constexpr implementations (PR #162927)

2025-10-10 Thread 100 years of solid poop 🙏 via cfe-commits
https://github.com/wubowski updated https://github.com/llvm/llvm-project/pull/162927 From a4014ec1c26f93435cf4982f264ddf96e045b723 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 10 Oct 2025 16:29:41 -0500 Subject: [PATCH 1/2] Rewrote bf16->f32 conversion intrinsics --- clang/lib/Headers/avx5

[clang] [clang] Remove -g[no-]-* bool flags from g_Group (PR #162750)

2025-10-10 Thread Reid Kleckner via cfe-commits
https://github.com/rnk auto_merge_enabled https://github.com/llvm/llvm-project/pull/162750 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Convert bf16 to f32 conversions to generic constexpr implementations (PR #162927)

2025-10-10 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] [CIR] Upstream CIR Dialect TryOp with Catch Attrs (PR #162897)

2025-10-10 Thread Andy Kaylor via cfe-commits
@@ -4296,6 +4296,81 @@ def CIR_AllocExceptionOp : CIR_Op<"alloc.exception"> { }]; } +//===--===// +// TryOp +//===--===// + +def CIR_TryOp

[clang] [llvm] [OpenMP 60] Update parsing and semantic support for `nowait` clause to accept optional argument (PR #159628)

2025-10-10 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/159628 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[OpenACC] Sema changes for +*&|^ reduction combiner recipes (… (PR #162920)

2025-10-10 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_enabled https://github.com/llvm/llvm-project/pull/162920 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] create namespace names according to their paths (PR #162886)

2025-10-10 Thread Erick Velez via cfe-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/162886 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] 6.0: Add default clause support for 'target' directive (PR #162910)

2025-10-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Pagan (ddpagan) Changes Per OpenMP 6.0 specification, section 7.5.1, default Clause Page 224, lines 3-5 default Clause, Semantics If data-sharing-attribute is shared then the clause has no effect on a target construct; otherwise,

[clang] [clang-installapi] Add test for -Xproject -fvisibility=* (PR #162908)

2025-10-10 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida created https://github.com/llvm/llvm-project/pull/162908 None >From dcd875807bed0c7da7f3e7ccbed317aa39332ecc Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Fri, 10 Oct 2025 12:51:35 -0700 Subject: [PATCH] [clang-installapi] Add test for -Xproject -fvisibility=

[clang] [CIR] Add support for virtual destructor calls (PR #162725)

2025-10-10 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/162725 >From 30e5276cea1cfa2a36f19abe53dcffd1eaa5ad24 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Thu, 2 Oct 2025 16:15:33 -0700 Subject: [PATCH 1/2] [CIR] Add support for virtual destructor calls This adds su

[clang-tools-extra] [clang-doc] simplify filename selection for namespaces (PR #162885)

2025-10-10 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/162885 >From 17048c00c229a4ff52e00ce166abf30cc786c882 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 8 Oct 2025 18:50:41 -0700 Subject: [PATCH] [clang-doc] simplify filename selection for namespaces determineFi

[clang] [OpenACC] Sema changes for +*&|^ reduction combiner recipes (PR #162740)

2025-10-10 Thread Erich Keane via cfe-commits
https://github.com/erichkeane auto_merge_enabled https://github.com/llvm/llvm-project/pull/162740 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 41f5f3b - [OpenACC] Fix uses of getBaseOriginalType when we really want elt type. (#162880)

2025-10-10 Thread via cfe-commits
Author: Erich Keane Date: 2025-10-10T18:41:41Z New Revision: 41f5f3be30105260ccc30433b49f60d5885e731b URL: https://github.com/llvm/llvm-project/commit/41f5f3be30105260ccc30433b49f60d5885e731b DIFF: https://github.com/llvm/llvm-project/commit/41f5f3be30105260ccc30433b49f60d5885e731b.diff LOG: [

[clang] [CIR] Upstream CIR Dialect TryOp with Catch Attrs (PR #162897)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
@@ -2878,6 +2878,138 @@ LogicalResult cir::TypeInfoAttr::verify( return success(); } +//===--===// +// TryOp +//===--===// + +void cir::Try

[clang] [CIR] Upstream CIR Dialect TryOp with Catch Attrs (PR #162897)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
@@ -2878,6 +2878,138 @@ LogicalResult cir::TypeInfoAttr::verify( return success(); } +//===--===// +// TryOp +//===--===// + +void cir::Try

[clang] [CIR] Upstream CIR Dialect TryOp with Catch Attrs (PR #162897)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bcardosolopes wrote: Is this part of splitting off https://github.com/llvm/llvm-project/pull/162528? Might be handy to mention these things in the description. https://github.com/llvm/llvm-project/pull/162897 ___ cfe-commits mailing list cfe-commits@l

[clang] [CIR] Add inline function attributes (PR #162866)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes commented: Overall looks good, some comments regarding the printing/parsing of the attribute https://github.com/llvm/llvm-project/pull/162866 ___ cfe-commits mailing list [email protected] https://lists.llvm.o

[clang] [CIR] Add inline function attributes (PR #162866)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/162866 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add inline function attributes (PR #162866)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
@@ -1720,6 +1720,22 @@ ParseResult cir::FuncOp::parse(OpAsmParser &parser, OperationState &state) { hasAlias = true; } + // Parse optional inline attribute: inline_never, inline_always, or + // inline_hint + if (parser.parseOptionalKeyword("inline_never").succeeded()

[clang] [CIR] Add support for virtual destructor calls (PR #162725)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/162725 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8e60adc - [C2y] Implement WG14 N3622 static used in an inline (#162877)

2025-10-10 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-10-10T14:02:17-04:00 New Revision: 8e60adcaafbd5b6859f54879496e017dd218e541 URL: https://github.com/llvm/llvm-project/commit/8e60adcaafbd5b6859f54879496e017dd218e541 DIFF: https://github.com/llvm/llvm-project/commit/8e60adcaafbd5b6859f54879496e017dd218e541.diff

[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bcardosolopes wrote: > It would be useful to pull the CIR dialect changes out of this and into a > separate PR that precedes this one. You could also Move the CFG flattening > into a follow-up PR and just not lower to LLVM IR in this one. Those changes > would make this easier to review. +1

[clang] [CIR] Implement handling for VectorType with size 3 (PR #161232)

2025-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bcardosolopes wrote: > As for what we do in CIR, I was thinking maybe we could initially annotate > the vector-3 loads and stores with some attribute indicating that a vector-4 > load and store with a poison element is permitted/expected. I'd leave the attribute as last resort, we can easily i

[clang] [clang][CodeGen] Remove "unsafe-fp-math" attribute support (PR #162779)

2025-10-10 Thread Andy Kaylor via cfe-commits
andykaylor wrote: I'm very happy to see progress being made on transitioning away from the function attributes for fast-math control. That said, it looks like there are still some things in the PowerPC ISel code that were using this attribute (by way of the UnsafeFPMath setting in TargetOption

[clang-tools-extra] [clangd] Fix regression regarding new line handling for hover/signature help content (PR #162029)

2025-10-10 Thread via cfe-commits
https://github.com/tcottin updated https://github.com/llvm/llvm-project/pull/162029 >From b1b2251a1f9a57b710227ab3f36e5369a7ad3079 Mon Sep 17 00:00:00 2001 From: Tim Cottin Date: Sun, 5 Oct 2025 21:49:57 + Subject: [PATCH 1/2] handle new lines in paragraphs correctly for markdown and escap

[clang] [OpenACC] Fix uses of getBaseOriginalType when we really want elt type. (PR #162880)

2025-10-10 Thread Erich Keane via cfe-commits
erichkeane wrote: Still going to auto-merge, but found a few things I can use as a test, so stopping it since validation will be finished before i get my tests up :) https://github.com/llvm/llvm-project/pull/162880 ___ cfe-commits mailing list cfe-co

[clang] [C2y] Implement WG14 N3622 static used in an inline (PR #162877)

2025-10-10 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -verify=good -pedantic -Wall -std=c2y %s +// RUN: %clang_cc1 -verify -pedantic -Wall -std=c23 %s +// RUN: %clang_cc1 -verify -pedantic -Wall -std=c17 %s +// good-no-diagnostics + +/* WG14 N3622: Clang 22 + * Allow calling static inline within e

[clang] [KeyInstr] Enable -gkey-instructions by default if optimisations are enabled (PR #149509)

2025-10-10 Thread Orlando Cazalet-Hyams via cfe-commits
OCHyams wrote: @rnk despite my claims in the comment above, with @omern1's help, I've been able to observe something like you've described with SPGO without LTO. Our initial experiments suggest that `-gkey-instructions` doesn't have an effect when used on the profile-gathering build. But the`

[clang-tools-extra] [clang-tidy][NFC] Remove stale comment in test (PR #162857)

2025-10-10 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed https://github.com/llvm/llvm-project/pull/162857 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Implement WG14 N3622 static used in an inline (PR #162877)

2025-10-10 Thread Erich Keane via cfe-commits
@@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -verify=good -pedantic -Wall -std=c2y %s +// RUN: %clang_cc1 -verify -pedantic -Wall -std=c23 %s +// RUN: %clang_cc1 -verify -pedantic -Wall -std=c17 %s +// good-no-diagnostics + +/* WG14 N3622: Clang 22 + * Allow calling static inline within e

[clang] [C2y] Implement WG14 N3622 static used in an inline (PR #162877)

2025-10-10 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/162877 >From b3e094947fefa338e920adf8ec51360251e343c6 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 10 Oct 2025 12:08:00 -0400 Subject: [PATCH 1/2] [C2y] Implement WG14 N3622 static used in an inline Th

[clang] [X86][Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add SSE/AVX VPTEST/VTESTPD/VTESTPS intrinsics to be used in constexpr (PR #160428)

2025-10-10 Thread Shawn K via cfe-commits
kimsh02 wrote: @RKSimon Fixed testcase https://github.com/llvm/llvm-project/pull/160428 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-10 Thread Shawn K via cfe-commits
kimsh02 wrote: @RKSimon Fixed rebase https://github.com/llvm/llvm-project/pull/161914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix broken fix-its with `bugprone-not-null-terminated-result` on Windows (PR #162874)

2025-10-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes (See the test changes for a description of the problem.) This is the problematic code: https://github.com/llvm/llvm-project/blob/424fa833352177da4ea39238c040703e1dc3a0ab/clang-tools-extra/clang-

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-10 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/162282 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-10 Thread Matt Arsenault via cfe-commits
@@ -175,15 +175,33 @@ void AMDGCN::Linker::constructLinkAndEmitSpirvCommand( constructLlvmLinkCommand(C, JA, Inputs, LinkedBCFile, Args); - // Emit SPIR-V binary. - llvm::opt::ArgStringList TrArgs{ - "--spirv-max-version=1.6", - "--spirv-ext=+all", - "--spi

[clang] [CIR] Add inline function attributes (PR #162866)

2025-10-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes Unlike the incubator, this adds the inline attribute directly to FuncOp instead of adding the ExtraFnAttr dict. This adds three new optional keywords to CIR: inline_always, inline_never and inline_hint. Just

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-10 Thread Matt Arsenault via cfe-commits
@@ -175,15 +175,33 @@ void AMDGCN::Linker::constructLinkAndEmitSpirvCommand( constructLlvmLinkCommand(C, JA, Inputs, LinkedBCFile, Args); - // Emit SPIR-V binary. - llvm::opt::ArgStringList TrArgs{ - "--spirv-max-version=1.6", - "--spirv-ext=+all", - "--spi

[clang] [AMDGPU][NFC] Fix clang frontend<->sema layering issue (PR #162865)

2025-10-10 Thread Jordan Rupprecht via cfe-commits
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/162865 #140210 added `#include "clang/Frontend/FrontendDiagnostic.h"` to clang/lib/Sema/SemaAMDGPU.cpp, but Frontend itself has a dependency on Sema. This creates a layering issue as described in https://llvm.org/d

[clang] [clang] fix transform for constant template parameter type subst node (PR #162587)

2025-10-10 Thread Greg Bedwell via cfe-commits
gregbedwell wrote: Hello! I've bisected #162855 back to this commit. Please can you take a look? https://github.com/llvm/llvm-project/pull/162587 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `polly-x86_64-linux-shared-plugin` running on `polly-x86_64-gce2` while building `.github,clang,llvm` at step 5 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/118/builds/8455 Here is the rel

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/162474 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Claim support for WG14 N3623 (PR #162843)

2025-10-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/28819 Here is th

[clang] [clang-tools-extra] [Clang] Add support for the C `defer` TS (PR #162848)

2025-10-10 Thread via cfe-commits
@@ -2376,6 +2381,33 @@ StmtResult Parser::ParseReturnStatement() { return Actions.ActOnReturnStmt(ReturnLoc, R.get(), getCurScope()); } +StmtResult Parser::ParseDeferStatement(SourceLocation *TrailingElseLoc) { + assert(Tok.is(tok::kw_defer)); + SourceLocation DeferLoc = C

[clang] [clang] Fix inconsistencies with the device_kernel attr on different targets (PR #161905)

2025-10-10 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex converted_to_draft https://github.com/llvm/llvm-project/pull/161905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2992d3d - [C2y] Claim support for WG14 N3623 (#162843)

2025-10-10 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-10-10T10:28:10-04:00 New Revision: 2992d3dfef31ff0cc284f23ee18245fa480d20f5 URL: https://github.com/llvm/llvm-project/commit/2992d3dfef31ff0cc284f23ee18245fa480d20f5 DIFF: https://github.com/llvm/llvm-project/commit/2992d3dfef31ff0cc284f23ee18245fa480d20f5.diff

[clang-tools-extra] [clang-tidy][NFC] Migrate tests away from `--match-partial-fixes` (PR #162851)

2025-10-10 Thread Victor Chernyakin via cfe-commits
@@ -53,7 +53,7 @@ void integer_suffix() { static_assert(is_same::value, ""); static_assert(v11 == 1, ""); - static constexpr auto v12 = 1UL; // OK. + static constexpr auto v12 = 1UL; localspook wrote: Comment is wrong https://github.com/llvm/llvm-proje

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #162741)

2025-10-10 Thread via cfe-commits
@@ -0,0 +1,72 @@ +.. title:: clang-tidy - modernize-use-constexpr + +modernize-use-constexpr +=== + +Finds functions and variables that can be declared ``constexpr``. + +This check currently supports the ``constexpr`` rule-set of C++11. + +The check analyses an

[clang] [OpenACC] Sema changes for +*&|^ reduction combiner recipes (PR #162740)

2025-10-10 Thread Erich Keane via cfe-commits
erichkeane wrote: This will actually have about 20 tests that crash now with the new assert. I am quite sure I have been messing up my uses of Array Section functions in quite a few places, so I have to put this on pause until I've figured out what I'm doing/what the right way to do stuff wit

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-aarch64-ubuntu-shared` running on `bolt-worker-aarch64` while building `.github,clang,llvm` at step 6 "test-build-bolt-check-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/218/builds/157

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-rhel` running on `ppc64le-clang-rhel-test` while building `.github,clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/145/builds/10175 Here is t

[clang-tools-extra] [clang-tidy] Fix insertion location for certain function pointers in `cppcoreguidelines-init-variables` (PR #162218)

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

[clang] [Clang] Only link C device libraries by default for OpenMP (PR #151239)

2025-10-10 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/151239 >From b4e64ea87bd2d780a0b714784e09b74d27cc4150 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Tue, 29 Jul 2025 16:43:24 -0500 Subject: [PATCH 1/2] [Clang] Only C link device libraries by default for OpenMP

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/162612 >From af13d31f970cc62d46746b5e57075f16c5f5c4e8 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 9 Oct 2025 10:18:28 +0200 Subject: [PATCH 1/4] [Clang] Fix a regression introduced by #161163. Classes wi

[clang] [Clang] Fix a regression introduced by #161163. (PR #162612)

2025-10-10 Thread Andrey Ali Khan Bolshakov via cfe-commits
bolshakov-a wrote: Now LGTM, thanks! Btw, do you know what `!RD->hasNonTrivialDefaultConstructor()` check is needed for? If you do, it would be good to add a corresponding test case. If not, a `TODO` to investigate it is worth placing in the code. https://github.com/llvm/llvm-project/pull/162

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test` running on `ext_buildbot_hw_05-hip-docker` while building `.github,clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/7348 Here is

[clang] [llvm] [LifetimeSafety] Reorganize code into modular components (PR #162474)

2025-10-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `.github,clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/24651 Here

[clang] [C2y] Support WG14 N3457, the __COUNTER__ macro (PR #162662)

2025-10-10 Thread Aaron Ballman via cfe-commits
@@ -90,6 +90,14 @@ def err_unterminated___pragma : Error<"missing terminating ')' character">; def err_conflict_marker : Error<"version control conflict marker in file">; +def err_counter_overflow : Error< + "'__COUNTER__' value cannot exceed 2147483647">;

[clang] 80f48b8 - [C2y] Claim support for WG14 N3532; NFC (#162718)

2025-10-10 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-10-10T07:34:16-04:00 New Revision: 80f48b849378dd46b5ff19945995c0f1598eb16b URL: https://github.com/llvm/llvm-project/commit/80f48b849378dd46b5ff19945995c0f1598eb16b DIFF: https://github.com/llvm/llvm-project/commit/80f48b849378dd46b5ff19945995c0f1598eb16b.diff

[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

2025-10-10 Thread Jinjie Huang via cfe-commits
Jinjie-Huang wrote: The current implementation directly reuses the search logic from HeaderSearch::LookupFile() and avoids side effects caused by performing additional searches. Alternatively, we could recalculate the default search paths after locating the corresponding header file and then

[clang] [clang][analyzer] Save path- and syntax-analysis times per entry point (PR #162089)

2025-10-10 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -33,7 +33,15 @@ struct Registry { struct Snapshot { const Decl *EntryPoint; -std::vector BoolStatValues; +// Boolean statistics are always set explicitly. If they are not set, their +// value is absent resulting in empty CSV cells +std::vector> BoolSta

[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

2025-10-10 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/161914 >From 79006fe91ed7d53329a956a65fb753dad2c8c6e2 Mon Sep 17 00:00:00 2001 From: kimsh02 Date: Fri, 3 Oct 2025 09:30:23 -0700 Subject: [PATCH 1/6] Stash --- clang/include/clang/Basic/BuiltinsX86.td | 16 ++---

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-10 Thread Matt Arsenault via cfe-commits
@@ -1421,6 +1421,18 @@ def fhip_emit_relocatable : Flag<["-"], "fhip-emit-relocatable">, HelpText<"Compile HIP source to relocatable">; def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">, HelpText<"Do not override toolchain to compile HIP source to relo

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-10 Thread Manuel Carrasco via cfe-commits
https://github.com/mgcarrasco updated https://github.com/llvm/llvm-project/pull/162282 >From e89ce89521602f651495cf936e016d8f0c926974 Mon Sep 17 00:00:00 2001 From: Manuel Carrasco Date: Tue, 7 Oct 2025 06:05:21 -0700 Subject: [PATCH 1/2] [HIP][SPIRV] Enable the SPIRV backend instead of the tr

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-10 Thread Corentin Jabot via cfe-commits
@@ -2200,6 +2200,32 @@ static bool BuiltinCpu(Sema &S, const TargetInfo &TI, CallExpr *TheCall, return false; } +/// Checks that __builtin_bswapg was called with a single argument, which is an +/// unsigned integer, and overrides the return value type to the integer type. +

[clang] [Driver] Remove special handling for older Ubuntu (PR #162518)

2025-10-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/162518 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Remove -g[no-]-* bool flags from g_Group (PR #162750)

2025-10-10 Thread Michael Buch via cfe-commits
https://github.com/Michael137 approved this pull request. thanks! https://github.com/llvm/llvm-project/pull/162750 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits