[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-22 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e644f5f - [clang] [Sema] Check argument range for prefetchi* intrinsics (#149745)

2025-07-22 Thread via cfe-commits
Author: Timothy Herchen Date: 2025-07-22T15:25:17+08:00 New Revision: e644f5fd9e9b0dfdbf02357260908160d23c5b28 URL: https://github.com/llvm/llvm-project/commit/e644f5fd9e9b0dfdbf02357260908160d23c5b28 DIFF: https://github.com/llvm/llvm-project/commit/e644f5fd9e9b0dfdbf02357260908160d23c5b28.dif

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-22 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Fuchsia] Don't use LLVM build for PGO data (PR #149788)

2025-07-22 Thread via cfe-commits
https://github.com/gulfemsavrun closed https://github.com/llvm/llvm-project/pull/149788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f20130a - [Fuchsia] Don't use LLVM build for PGO data (#149788)

2025-07-22 Thread via cfe-commits
Author: gulfemsavrun Date: 2025-07-22T10:28:14+03:00 New Revision: f20130a8d494b94d0842cd165e9b7a83ef3aee4a URL: https://github.com/llvm/llvm-project/commit/f20130a8d494b94d0842cd165e9b7a83ef3aee4a DIFF: https://github.com/llvm/llvm-project/commit/f20130a8d494b94d0842cd165e9b7a83ef3aee4a.diff

[clang] Fix implicit vector conversion (PR #149970)

2025-07-22 Thread Martin Wehking via cfe-commits
https://github.com/MartinWehking created https://github.com/llvm/llvm-project/pull/149970 Previously, the unsigned NEON intrinsic variants of 'vqshrun_high_n' and 'vqrshrun_high_n' were using signed integer types for their first argument and return values. These should be unsigned according to

[clang] [clang][NFC] Run `modernize-use-using` check over all the code (PR #149934)

2025-07-22 Thread Balazs Benics via cfe-commits
steakhal wrote: As a Clang Static Analyzer maintainer I welcome this change and usually any NFC change that is not a clangformat refactor. I'll have a look once I have some free time. https://github.com/llvm/llvm-project/pull/149934 ___ cfe-commits m

[clang] Fix implicit vector conversion (PR #149970)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Martin Wehking (MartinWehking) Changes Previously, the unsigned NEON intrinsic variants of 'vqshrun_high_n' and 'vqrshrun_high_n' were using signed integer types for their first argument and return values. These should be unsigned accordi

[clang] 34f59d7 - [Clang][ARM] Fix __ARM_FEATURE_LDREX on Armv8-M (#149538)

2025-07-22 Thread via cfe-commits
Author: Simon Tatham Date: 2025-07-22T08:53:45+01:00 New Revision: 34f59d79209268eca9c63ccc7646128f2dc52fe3 URL: https://github.com/llvm/llvm-project/commit/34f59d79209268eca9c63ccc7646128f2dc52fe3 DIFF: https://github.com/llvm/llvm-project/commit/34f59d79209268eca9c63ccc7646128f2dc52fe3.diff

[clang] [Clang][ARM] Fix __ARM_FEATURE_LDREX on Armv8-M (PR #149538)

2025-07-22 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm closed https://github.com/llvm/llvm-project/pull/149538 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

2025-07-22 Thread M. Zeeshan Siddiqui via cfe-commits
https://github.com/codemzs created https://github.com/llvm/llvm-project/pull/149972 ## Motivation This is a follow-up fix for bug exposed by the `warn-unreachable_crash.cpp` test introduced in #142897 , which caused downstream test failures. ## Technical description Teach `CheckIncorrectLogicO

[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: M. Zeeshan Siddiqui (codemzs) Changes ## Motivation This is a follow-up fix for bug exposed by the `warn-unreachable_crash.cpp` test introduced in #142897 , which caused downstream test failures. ## Technical description Teach `C

[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

2025-07-22 Thread M. Zeeshan Siddiqui via cfe-commits
https://github.com/codemzs edited https://github.com/llvm/llvm-project/pull/149972 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix false positives in `bugprone-signed-char-misuse` (PR #149790)

2025-07-22 Thread Baranov Victor via cfe-commits
=?utf-8?q?Björn?= Svensson , =?utf-8?q?Björn?= Svensson Message-ID: In-Reply-To: @@ -75,16 +86,21 @@ void SignedCharMisuseCheck::registerMatchers(MatchFinder *Finder) { const auto UnSignedCharCastExpr = charCastExpression(false, IntegerType, "unsignedCastExpression")

[clang] [Fuchsia] Don't use LLVM build for PGO data (PR #149788)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/38897 Here is

[clang-tools-extra] [clang-tidy] Fix false positives in `bugprone-signed-char-misuse` (PR #149790)

2025-07-22 Thread Baranov Victor via cfe-commits
=?utf-8?q?Bj=C3=B6rn?= Svensson , =?utf-8?q?Bj=C3=B6rn?= Svensson Message-ID: In-Reply-To: @@ -0,0 +1,91 @@ +// RUN: %check_clang_tidy %s bugprone-signed-char-misuse %t -- -- -std=c23 vbvictor wrote: Oh, thank you, didn't know that. Let it be as is. https://g

[clang] [NFC][clang] Split clang/lib/CodeGen/CGBuiltin.cpp into target-specific files (PR #132252)

2025-07-22 Thread David Spickett via cfe-commits
DavidSpickett wrote: FYI https://discourse.llvm.org/t/rfc-rename-source-files-in-clang-lib-codegen-targetbuiltins/87462 https://github.com/llvm/llvm-project/pull/132252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [Clang] Fix a partial ordering bug involving CTAD injected template arguments (PR #149782)

2025-07-22 Thread Younan Zhang via cfe-commits
@@ -5525,6 +5525,8 @@ static TemplateDeductionResult CheckDeductionConsistency( // FIXME: A substitution can be incomplete on a non-structural part of the // type. Use the canonical type for now, until the TemplateInstantiator can // deal with that. + if (auto *Injected

[clang] [NFC][clang] Rename clang/lib/CodeGen/TargetBuiltins/* files to avoid build warnings on macOS (PR #149974)

2025-07-22 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/149974 This MR rename files in clang/lib/CodeGen/TargetBuiltins/* to avoid build warnings on macOS. ``` [2911/2924] Linking CXX static library lib/libclangCodeGen.a /Library/Developer/CommandLineTools/usr/bin/libtool:

[clang] [NFC][clang] Rename clang/lib/CodeGen/TargetBuiltins/* files to avoid build warnings on macOS (PR #149974)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (yronglin) Changes This MR rename files in clang/lib/CodeGen/TargetBuiltins/* to avoid build warnings on macOS. ``` [2911/2924] Linking CXX static library lib/libclangCodeGen.a /Library/Developer/CommandLineTools/usr/bin/libto

[clang] [NFC][clang] Rename clang/lib/CodeGen/TargetBuiltins/* files to avoid build warnings on macOS (PR #149974)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: None (yronglin) Changes This MR rename files in clang/lib/CodeGen/TargetBuiltins/* to avoid build warnings on macOS. ``` [2911/2924] Linking CXX static library lib/libclangCodeGen.a /Library/Developer/CommandLineTools/usr/bin/libt

[clang] [NFC][clang] Rename clang/lib/CodeGen/TargetBuiltins/* files to avoid build warnings on macOS (PR #149974)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: None (yronglin) Changes This MR rename files in clang/lib/CodeGen/TargetBuiltins/* to avoid build warnings on macOS. ``` [2911/2924] Linking CXX static library lib/libclangCodeGen.a /Library/Developer/CommandLineTools/usr/bin/libt

[clang] [NFC][clang] Rename clang/lib/CodeGen/TargetBuiltins/* files to avoid build warnings on macOS (PR #149974)

2025-07-22 Thread via cfe-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 'HEAD~1' HEAD clang/lib/CodeGen/TargetBu

[clang] [LTO] Add unified LTO tests for the PS targets. (PR #148229)

2025-07-22 Thread Ying Yi via cfe-commits
MaggieYingYi wrote: gentle pinging ... https://github.com/llvm/llvm-project/pull/148229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-c] Don't deprecate CXRemapping as well as its users (PR #149975)

2025-07-22 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/149975 #149079 deprecated CXRemapping and all its methods, however MSVC warns when a deprecated method is using a deprecated variable (and breaks our Werror builds) - best way to avoid this is to only deprecate the me

[clang] [clang-c] Don't deprecate CXRemapping as well as its users (PR #149975)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes #149079 deprecated CXRemapping and all its methods, however MSVC warns when a deprecated method is using a deprecated variable (and breaks our Werror builds) - best way to avoid this is to only deprecate th

[clang] 81651e9 - Remove extraneous addition of `-X` flag in baremetal toolchain (#148855)

2025-07-22 Thread via cfe-commits
Author: Garvit Gupta Date: 2025-07-22T14:23:54+05:30 New Revision: 81651e9fd0a744423fc0435f199ef79fb3a91f02 URL: https://github.com/llvm/llvm-project/commit/81651e9fd0a744423fc0435f199ef79fb3a91f02 DIFF: https://github.com/llvm/llvm-project/commit/81651e9fd0a744423fc0435f199ef79fb3a91f02.diff

[clang] Remove extraneous addition of `-X` flag in baremetal toolchain (PR #148855)

2025-07-22 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt closed https://github.com/llvm/llvm-project/pull/148855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-22 Thread via cfe-commits
@@ -1697,6 +1698,15 @@ ASTContext::getRelocationInfoForCXXRecord(const CXXRecordDecl *RD) const { return std::nullopt; } +void ASTContext::initSanitizers(const LangOptions &LangOpts, +SourceManager &SM) { + std::string Error; + if (!NoSanit

[clang] [clang-tools-extra] [clang]: Propagate `*noreturn` attributes in `CFG` (PR #146355)

2025-07-22 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/146355 >From fc3b77d8c4b5dd264bd746ed997bcea6cddaf389 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Mon, 30 Jun 2025 17:05:41 +0300 Subject: [PATCH 01/12] Initial implementation --- .../bugprone/unchecked-option

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

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

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

2025-07-22 Thread via cfe-commits
https://github.com/bd1976bris milestoned https://github.com/llvm/llvm-project/pull/147265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-22 Thread via cfe-commits
bd1976bris wrote: /cherry-pick 5004c59803fdeb3389d30439a6cc8b1ff874df0c edfec9c5829f4778bd38f3ca4019105eb481df49 https://github.com/llvm/llvm-project/pull/147265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] Add necessary linker flags when -static-pie is enabled in BareMetal Toolchain (PR #147589)

2025-07-22 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt milestoned https://github.com/llvm/llvm-project/pull/147589 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-22 Thread Tom Honermann via cfe-commits
@@ -12952,8 +12956,11 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) { if (LangOpts.SYCLIsDevice && FD->hasAttr()) return true; -// FIXME: Functions declared with SYCL_EXTERNAL are required during -// device compilation. +// Function definitions wit

[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)

2025-07-22 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: > Can you manually backport this patch? See #150131. This is being backported manually in #149402. https://github.com/llvm/llvm-project/pull/149227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)

2025-07-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/150164 When casting a 0 to a pointer type, the IsNullPtr flag was always set to false, leading to weird results like a pointer with value 0 that isn't a null pointer. This caused ```c++ struct B { const int *p;}; te

[clang] 23eef9a - [clang][bytecode] Activate primitive fields before initializing them (#149963)

2025-07-22 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-23T06:09:27+02:00 New Revision: 23eef9a7c40f15fcf3cd393e7dc18f48c516bf7e URL: https://github.com/llvm/llvm-project/commit/23eef9a7c40f15fcf3cd393e7dc18f48c516bf7e DIFF: https://github.com/llvm/llvm-project/commit/23eef9a7c40f15fcf3cd393e7dc18f48c516bf7e.diff L

[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes When casting a 0 to a pointer type, the IsNullPtr flag was always set to false, leading to weird results like a pointer with value 0 that isn't a null pointer. This caused ```c++ struct B { const int *p;};

[clang] [clang][bytecode] Activate primitive fields before initializing them (PR #149963)

2025-07-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/149963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-22 Thread Jakub Chlanda via cfe-commits
https://github.com/jchlanda updated https://github.com/llvm/llvm-project/pull/149294 >From 3fae484f7e569e42ae99146791cbe2c422269205 Mon Sep 17 00:00:00 2001 From: Jakub Chlanda Date: Mon, 14 Jul 2025 13:30:57 + Subject: [PATCH] [HIP][Clang][Driver] Move BC preference logic into ROCm detect

[libclc] [libclc] Implement clc_log/sinpi/sqrt with __nv_* functions (PR #150174)

2025-07-22 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/150174 This is to upstream implementations in https://github.com/intel/llvm/tree/sycl/libclc/clc/lib/ptx-nvidiacl/math >From d4fcaf56d63efe283240bfc582706e268e30c854 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed

[libclc] [libclc] Add native half implementation of __clc_normalize (PR #150165)

2025-07-22 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/150165 This is ported from https://github.com/intel/llvm/blob/sycl/libclc/libspirv/lib/generic/geometric/normalize.cl and can pass a closed-source OpenCL CTS "test_geometrics geom_normalize --half CL_DEVICE_TYPE_GPU"

[libclc] [libclc] Add native half implementation of __clc_normalize (PR #150165)

2025-07-22 Thread Wenju He via cfe-commits
wenju-he wrote: llvm-diff amdgcn--amdhsa.bc.new amdgcn--amdhsa.bc.old ``` in function _Z9normalizeDh: in block %1 / %1: > %2 = fpext half %0 to float %2 = fcmp one half %0, 0xH > %4 = select i1 %3, float 1.00e+00, float 0.00e+00 > %5 = tail call noundef flo

[clang] [llvm] [SimplifyCFG] Extend jump-threading to allow live local defs (PR #135079)

2025-07-22 Thread via cfe-commits
@@ -3540,18 +3568,29 @@ foldCondBranchOnValueKnownInPredecessorImpl(BranchInst *BI, DomTreeUpdater *DTU, return false; // Now we know that this block has multiple preds and two succs. - // Check that the block is small enough and values defined in the block are - // n

[libclc] [libclc] Add generic native half implementation of __clc_normalize (PR #150165)

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

[clang] [clang-format] Change SpaceAfterLogicalNot to enumeration type (PR #150166)

2025-07-22 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/150166 Replace true/false with SAN_Exclaim/SAN_Never and add SAN_Always. Closes #149971 >From b5442f59d649b38086ccd91d40c7c291dd924cc8 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 22 Jul 2025 22:07:05 -0700 Subj

[clang] [clang-format] Change SpaceAfterLogicalNot to enumeration type (PR #150166)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Replace true/false with SAN_Exclaim/SAN_Never and add SAN_Always. Closes #149971 --- Full diff: https://github.com/llvm/llvm-project/pull/150166.diff 6 Files Affected: - (modi

[clang] [clang][bytecode] Only implicitly start lifetime of trivially-default-constructible union members (PR #149835)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/9882 Here is the relevan

[clang] [Sanitize] fix crash in -fsanitize-annotate-debug-info (PR #149237)

2025-07-22 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Next time can you add more details to the summary, these are especially helpful for downstream folks but also for reviewers. Something along the lines of "Perform a null check in SanitizerAnnotateDebugInfo for the result of getCurrentDebugLocation". https:

[clang] [Clang] Fix new driver device only compilation for `amdgcnspirv` target (PR #150110)

2025-07-22 Thread Matt Arsenault via cfe-commits
@@ -4886,6 +4886,10 @@ Action *Driver::BuildOffloadingActions(Compilation &C, // individually. for (Action *&A : DeviceActions) { if ((A->getType() != types::TY_Object && + !(A->getOffloadingToolChain() && + A->getOffloadingToolChain()->getTr

[clang] One more fix for P3144R2 implementation (PR #149406)

2025-07-22 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk updated https://github.com/llvm/llvm-project/pull/149406 >From 94e652bc0bd6a04ef61a9f9b703257d464c7b714 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Thu, 17 Jul 2025 21:47:30 +0100 Subject: [PATCH 1/7] More fixes for P3144R2 implementation P3144R2 made it ill-

[clang] One more fix for P3144R2 implementation (PR #149406)

2025-07-22 Thread Harald van Dijk via cfe-commits
@@ -595,6 +595,10 @@ struct GH99278_2 { } f; }; GH99278_2 e; +void GH99278_3(int(*p)[]) { + delete p; + // expected-warning@-1 {{'delete' applied to a pointer-to-array type 'int (*)[]' treated as 'delete[]'}} +}; hvdijk wrote: I've changed the array tests

[clang] [clang][deps] Add a release note for fixing crashes in `clang-scan-deps`. (PR #149857)

2025-07-22 Thread Volodymyr Sapsai via cfe-commits
https://github.com/vsapsai closed https://github.com/llvm/llvm-project/pull/149857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] dbc41dd - [clang][deps] Add a release note for fixing crashes in `clang-scan-deps`. (#149857)

2025-07-22 Thread via cfe-commits
Author: Volodymyr Sapsai Date: 2025-07-22T20:15:54-04:00 New Revision: dbc41dd5d827a3e13625a66fd2bfa83a8a4dfe83 URL: https://github.com/llvm/llvm-project/commit/dbc41dd5d827a3e13625a66fd2bfa83a8a4dfe83 DIFF: https://github.com/llvm/llvm-project/commit/dbc41dd5d827a3e13625a66fd2bfa83a8a4dfe83.di

[clang] One more fix for P3144R2 implementation (PR #149406)

2025-07-22 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk updated https://github.com/llvm/llvm-project/pull/149406 >From 94e652bc0bd6a04ef61a9f9b703257d464c7b714 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Thu, 17 Jul 2025 21:47:30 +0100 Subject: [PATCH 1/6] More fixes for P3144R2 implementation P3144R2 made it ill-

[clang] 8c26858 - [API Notes] Attach API notes to forward declarations of tags (#149951)

2025-07-22 Thread via cfe-commits
Author: Doug Gregor Date: 2025-07-22T17:49:13-07:00 New Revision: 8c26858f1a8bc5796c493f4f720552edbcb09fb4 URL: https://github.com/llvm/llvm-project/commit/8c26858f1a8bc5796c493f4f720552edbcb09fb4 DIFF: https://github.com/llvm/llvm-project/commit/8c26858f1a8bc5796c493f4f720552edbcb09fb4.diff L

[clang] [API Notes] Attach API notes to forward declarations of tags (PR #149951)

2025-07-22 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn closed https://github.com/llvm/llvm-project/pull/149951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add elementwise maximumnum/minimumnum builtin functions (PR #149775)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/27377 Here is the relevant piece of the build lo

[clang] uefi_cxx_abi (PR #150115)

2025-07-22 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: > looks ok to me. Or do you think it would make more sense to put this check in > `isKnownWindowsMSVCEnvironment()`? Thanks Amy! We want to make decisions for UEFI environment without MSVC/windows assumptions. It was one of the motivations for introducing the UEFI target triple

[clang] [clang] Set correct CXXABI for UEFI (PR #150115)

2025-07-22 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/150115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Set correct CXXABI for UEFI (PR #150115)

2025-07-22 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk closed https://github.com/llvm/llvm-project/pull/150115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 471e59b - [clang] Set correct CXXABI for UEFI (#150115)

2025-07-22 Thread via cfe-commits
Author: Prabhu Rajasekaran Date: 2025-07-22T17:57:17-07:00 New Revision: 471e59b858b1d2ee844cb527522e60ed03a1a1dc URL: https://github.com/llvm/llvm-project/commit/471e59b858b1d2ee844cb527522e60ed03a1a1dc DIFF: https://github.com/llvm/llvm-project/commit/471e59b858b1d2ee844cb527522e60ed03a1a1dc.

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-22 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Apologies, trying to reproduce it locally now. https://github.com/llvm/llvm-project/pull/148701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-22 Thread via cfe-commits
@@ -1697,6 +1698,15 @@ ASTContext::getRelocationInfoForCXXRecord(const CXXRecordDecl *RD) const { return std::nullopt; } +void ASTContext::initSanitizers(const LangOptions &LangOpts, +SourceManager &SM) { + std::string Error; + if (!NoSanit

[clang-tools-extra] [clang-tidy] Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-22 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/147066 >From 950b6dce92eb2a831e7bd7e7ba44b3e8cc354dd4 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Fri, 4 Jul 2025 17:13:20 +0300 Subject: [PATCH 1/9] Checking that some kind of constructor is called and followe

[clang] [llvm] [AMDGPU] Add builtins for wave reduction intrinsics (PR #127013)

2025-07-22 Thread via cfe-commits
https://github.com/easyonaadit closed https://github.com/llvm/llvm-project/pull/127013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-22 Thread Yanzuo Liu via cfe-commits
zwuis wrote: I added comment `// FIXME (GH147000): duplicate diagnostics` to `clang/test/SemaCXX/nested-name-spec.cpp` in #147003. Please remove the comment if that issue is fixed by this patch. https://github.com/llvm/llvm-project/pull/147835 ___ cf

[clang-tools-extra] [clang-tidy] Fix false positives in `bugprone-signed-char-misuse` (PR #149790)

2025-07-22 Thread Congcong Cai via cfe-commits
=?utf-8?q?Bj=C3=B6rn?= Svensson , =?utf-8?q?Bj=C3=B6rn?= Svensson Message-ID: In-Reply-To: https://github.com/HerrCai0907 commented: what about enum with unsigned underlying type. it looks not covered by tests https://github.com/llvm/llvm-project/pull/149790 __

[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)

2025-07-22 Thread Abhinav Gaba via cfe-commits
@@ -8811,8 +8829,19 @@ class MappableExprsHandler { ++EI; } } -llvm::stable_sort(DeclComponentLists, [](const MapData &LHS, - const MapData &RHS) { +llvm::stable_sort(DeclComponentLists, [VD](const MapData &L

[clang] [NFC][analyzer] Document optin.portability.UnixAPI (PR #150005)

2025-07-22 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/150005 This commit provides a brief documentation for the checker optin.portability.UnixAPI. Unfortunately the name of this checker is meaninglessly vague and its functionality is very closely related to unix.Mallo

[clang] [NFC][analyzer] Document optin.portability.UnixAPI (PR #150005)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes This commit provides a brief documentation for the checker optin.portability.UnixAPI. Unfortunately the name of this checker is meaninglessly vague and its functionality is very closely re

[clang] [NFC][analyzer] Document optin.portability.UnixAPI (PR #150005)

2025-07-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Donát Nagy (NagyDonat) Changes This commit provides a brief documentation for the checker optin.portability.UnixAPI. Unfortunately the name of this checker is meaninglessly vague and its functionality is very closely related to unix.Mall

[clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/11502 Here is th

[clang] [API Notes] Attach API notes to forward declarations of tags (PR #149951)

2025-07-22 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan approved this pull request. LGTM modulo @Xazax-hun's comment about redeclarations. https://github.com/llvm/llvm-project/pull/149951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [Clang] Rework creating offloading toolchains (PR #125556)

2025-07-22 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > Someone else messed up it. The commit has been reverted. Can you link which one? That's some awfully convenient timing that it caused failures on the offloading path at the same time I landed this. https://github.com/llvm/llvm-project/pull/125556 __

[clang] [Clang] Rework creating offloading toolchains (PR #125556)

2025-07-22 Thread Shilei Tian via cfe-commits
shiltian wrote: Someone else messed up it. The commit has been reverted. https://github.com/llvm/llvm-project/pull/125556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux` running on `systemz-1` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/42/builds/5461 Here is the relevant piece of the build log f

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-07-22 Thread via cfe-commits
ykhatav wrote: @Michael137 - did I answer your question? https://github.com/llvm/llvm-project/pull/146729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Rework creating offloading toolchains (PR #125556)

2025-07-22 Thread Shilei Tian via cfe-commits
shiltian wrote: I don't know which one. My PRs yesterday afternoon have a lot of crash in ADT but after rebase a couple of hours later they were gone. I suppose that would be the one. https://github.com/llvm/llvm-project/pull/125556 ___ cfe-commits m

[clang] 7d9f913 - Update comment on getCustomDiagID; NFC

2025-07-22 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-07-22T07:27:00-04:00 New Revision: 7d9f913bb4164b8aaecfc17accebd44044592115 URL: https://github.com/llvm/llvm-project/commit/7d9f913bb4164b8aaecfc17accebd44044592115 DIFF: https://github.com/llvm/llvm-project/commit/7d9f913bb4164b8aaecfc17accebd44044592115.diff

[clang] [clang] Fix printing null MemberPointer APValues (PR #149995)

2025-07-22 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! I verified that the JSON node dumper does not have the same problem. https://github.com/llvm/llvm-project/pull/149995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-key-instructions` running on `sie-linux-worker5` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/208/builds/2988 Here is the relevant

[clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/160

[clang] [clang] Check empty macro name in `#pragma push_macro("")` or `#pragma pop_macro("")` (PR #149982)

2025-07-22 Thread Aaron Ballman via cfe-commits
@@ -604,6 +604,10 @@ IdentifierInfo *Preprocessor::ParsePragmaPushOrPopMacro(Token &Tok) { assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' && "Invalid string token!"); + // FIXME: Should we emit a warning? AaronBallman wrote: I think we

[clang] [analyzer] Prettify checker registration and unittest code (PR #147797)

2025-07-22 Thread Kristóf Umann via cfe-commits
https://github.com/Szelethus approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/147797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a807e8e - [analyzer] Prettify checker registration and unittest code (#147797)

2025-07-22 Thread via cfe-commits
Author: Donát Nagy Date: 2025-07-22T13:36:58+02:00 New Revision: a807e8ea9f6ecf151e2ccc84af05431e54be8dda URL: https://github.com/llvm/llvm-project/commit/a807e8ea9f6ecf151e2ccc84af05431e54be8dda DIFF: https://github.com/llvm/llvm-project/commit/a807e8ea9f6ecf151e2ccc84af05431e54be8dda.diff LO

[clang] [analyzer] Prettify checker registration and unittest code (PR #147797)

2025-07-22 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/147797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 6 "build-stage1-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/14450 He

[clang] [Sema] Avoid attaching 'noreturn' attribute to explicit function temp… (PR #150003)

2025-07-22 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 created https://github.com/llvm/llvm-project/pull/150003 …late specializations >From ff5dfd4fae47cd212a0882895396c0cb855e29a3 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Tue, 22 Jul 2025 07:38:22 -0400 Subject: [PATCH] [Sema] Avoid attaching 'noreturn' att

[clang] Revert "Reland [clang][modules-driver] Add scanner to detect C++20 module presence" (PR #149900)

2025-07-22 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/149900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix printing null MemberPointer APValues (PR #149995)

2025-07-22 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/149995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e962306 - [clang] Fix printing null MemberPointer APValues (#149995)

2025-07-22 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-22T13:42:51+02:00 New Revision: e96230607cad9d30670ce55ef1cb9dd3fe1e21d7 URL: https://github.com/llvm/llvm-project/commit/e96230607cad9d30670ce55ef1cb9dd3fe1e21d7 DIFF: https://github.com/llvm/llvm-project/commit/e96230607cad9d30670ce55ef1cb9dd3fe1e21d7.diff L

[clang] [LifetimeSafety] Revamp test suite using unittests (PR #149158)

2025-07-22 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu-no-asserts` running on `doug-worker-6` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/202/builds/2425 Here is the

[clang] [clang-c] Don't deprecate CXRemapping as well as its users (PR #149975)

2025-07-22 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/149975 >From cb023012762bfda65d351ff3f4b047e350142357 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 22 Jul 2025 09:46:56 +0100 Subject: [PATCH 1/2] [clang-c] Don't deprecate CXRemapping and its users #149079

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-22 Thread Shashi Shankar via cfe-commits
@@ -547,6 +547,15 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: +// Suppress -Wdeprecated-declarations in purely implicit special-member functions. +if (auto *MD = dyn_cast_if_present(S.getCurFunctionDecl

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-22 Thread Shashi Shankar via cfe-commits
https://github.com/shashforge updated https://github.com/llvm/llvm-project/pull/147400 >From 29c3c9c6d25cc7c47d01a9d819ea37e92361aea2 Mon Sep 17 00:00:00 2001 From: Shashi Shankar Date: Mon, 7 Jul 2025 22:54:22 +0200 Subject: [PATCH 1/3] Sema: suppress deprecated field warnings in implicit spe

[clang] [clang-c] Don't deprecate CXRemapping as well as its users (PR #149975)

2025-07-22 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 HEAD~1 HEAD --extensions h -- clang/include/clang-c/Index.h `` View the

[clang] 54b5068 - Revert "[LifetimeSafety] Revamp test suite using unittests (#149158)"

2025-07-22 Thread Utkarsh Saxena via cfe-commits
Author: Utkarsh Saxena Date: 2025-07-22T12:10:47Z New Revision: 54b50681ca0fd1c0c6ddb059c88981a45e2f1b19 URL: https://github.com/llvm/llvm-project/commit/54b50681ca0fd1c0c6ddb059c88981a45e2f1b19 DIFF: https://github.com/llvm/llvm-project/commit/54b50681ca0fd1c0c6ddb059c88981a45e2f1b19.diff LOG

[clang] da06b45 - [NFC][Clang][FMV] Refactor sema checking of target_version/clones attributes. (#149067)

2025-07-22 Thread via cfe-commits
Author: Alexandros Lamprineas Date: 2025-07-22T13:11:43+01:00 New Revision: da06b45d27f70485857dae6a1298350045dc25bd URL: https://github.com/llvm/llvm-project/commit/da06b45d27f70485857dae6a1298350045dc25bd DIFF: https://github.com/llvm/llvm-project/commit/da06b45d27f70485857dae6a1298350045dc25

  1   2   3   4   >