[clang] [llvm] Revert "Move python binding tests to lit framework" (PR #149012)

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

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto edited https://github.com/llvm/llvm-project/pull/148988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -1233,3 +1233,34 @@ void ExprEngine::VisitAttributedStmt(const AttributedStmt *A, getCheckerManager().runCheckersForPostStmt(Dst, EvalSet, A, *this); } + +void ExprEngine::VisitCXXParenListInitExpr(const CXXParenListInitExpr *E, +

[clang] Thread Safety Analysis: Fix pointer handling of variables with deprecated attributes (PR #148974)

2025-07-15 Thread Marco Elver via cfe-commits
https://github.com/melver closed https://github.com/llvm/llvm-project/pull/148974 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8710387 - Thread Safety Analysis: Fix pointer handling of variables with deprecated attributes (#148974)

2025-07-15 Thread via cfe-commits
Author: Marco Elver Date: 2025-07-16T08:45:45+02:00 New Revision: 871038759afb491c16fb2cd14b78e51e410efbf3 URL: https://github.com/llvm/llvm-project/commit/871038759afb491c16fb2cd14b78e51e410efbf3 DIFF: https://github.com/llvm/llvm-project/commit/871038759afb491c16fb2cd14b78e51e410efbf3.diff L

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

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

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-15 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/148141 >From c9cf9873e35205f9715acd545680713c0dd912aa Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 11 Jul 2025 01:04:04 -0700 Subject: [PATCH 1/3] =?UTF-8?q?AMDGPU:=20Remove=20"gws"=20from=20the=20?= =?U

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Balazs Benics via cfe-commits
@@ -1233,3 +1233,34 @@ void ExprEngine::VisitAttributedStmt(const AttributedStmt *A, getCheckerManager().runCheckersForPostStmt(Dst, EvalSet, A, *this); } + +void ExprEngine::VisitCXXParenListInitExpr(const CXXParenListInitExpr *E, +

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Balazs Benics via cfe-commits
@@ -1233,3 +1233,34 @@ void ExprEngine::VisitAttributedStmt(const AttributedStmt *A, getCheckerManager().runCheckersForPostStmt(Dst, EvalSet, A, *this); } + +void ExprEngine::VisitCXXParenListInitExpr(const CXXParenListInitExpr *E, +

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Balazs Benics via cfe-commits
@@ -1233,3 +1233,34 @@ void ExprEngine::VisitAttributedStmt(const AttributedStmt *A, getCheckerManager().runCheckersForPostStmt(Dst, EvalSet, A, *this); } + +void ExprEngine::VisitCXXParenListInitExpr(const CXXParenListInitExpr *E, +

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Balazs Benics via cfe-commits
@@ -1233,3 +1233,34 @@ void ExprEngine::VisitAttributedStmt(const AttributedStmt *A, getCheckerManager().runCheckersForPostStmt(Dst, EvalSet, A, *this); } + +void ExprEngine::VisitCXXParenListInitExpr(const CXXParenListInitExpr *E, +

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/148988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: Looks good on the technical side. I have some questions mostly about code reuse. https://github.com/llvm/llvm-project/pull/148988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #148802)

2025-07-15 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: @ZequanWu thanks for the report! Reverted in #149012 for now https://github.com/llvm/llvm-project/pull/148802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analyzer] support parenthesized list initialization (PR #148988)

2025-07-15 Thread Balazs Benics via cfe-commits
steakhal wrote: > I don't know much about the static analyzer, but perhaps Aaron can do a > better review? I didn't see anything questionable however. Moved this to the Static Analyzer folks. https://github.com/llvm/llvm-project/pull/148988 ___ cfe-c

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-15 Thread Kees Cook via cfe-commits
@@ -3643,6 +3643,64 @@ make the function's CFI jump table canonical. See :ref:`the CFI documentation }]; } +def KCFISaltDocs : Documentation { + let Category = DocCatFunction; + let Content = [{ kees wrote: Please add a "Heading" and "Label" here so that

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-15 Thread Kees Cook via cfe-commits
@@ -0,0 +1,190 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -fsanitize=kcfi -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -fsanitize=kcfi -x c++ -o - %s | FileCheck %s --check-prefixes=CHECK,MEMBER +// RUN: %clang_cc

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-15 Thread Kees Cook via cfe-commits
https://github.com/kees commented: I think the docs look good, and other than what Aaron noted for needed Sema tests, the other tests look like what I'd expect. I've run this on an updated Linux kernel with added tests for using `kcfi_salt` and CFI correctly trips. https://github.com/llvm/llv

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-07-15 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl demilestoned https://github.com/llvm/llvm-project/pull/141573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAuth] Use different discriminators for __int128_t / __uint128_t / _BitInt(n) (PR #140276)

2025-07-15 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl demilestoned https://github.com/llvm/llvm-project/pull/140276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] add support for options parameter to __ptrauth (PR #136828)

2025-07-15 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl demilestoned https://github.com/llvm/llvm-project/pull/136828 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ptrauth] Add support for querying the ptrauth schema of a type (PR #138482)

2025-07-15 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl demilestoned https://github.com/llvm/llvm-project/pull/138482 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC][Sema] Implement warning for non-effective 'private' (PR #149004)

2025-07-15 Thread Razvan Lupusoru via cfe-commits
https://github.com/razvanlupusoru approved this pull request. The private variable requirements look correct to me! Thank you! https://github.com/llvm/llvm-project/pull/149004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-07-15 Thread Alexander Kornienko via cfe-commits
alexfh wrote: > Just out of curiosity, could implementing this warning to be LTO only solve > this? Anything requiring whole-program analysis sounds like a task to be done > during LTO. IIRC GCC has some warnings that are only made possible by LTO. I don't think this would be the right directi

[clang] [CIR] Fix alignment when lowering set/get bitfield operations (PR #148999)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: None (Andres-Salamanca) Changes This PR fixes incorrect alignment when lowering `set` and `getBitField` operations to LLVM IR. The issue occurred because during lowering, the function was being called with an alignment of 0, which cause

[clang] [CIR] Fix alignment when lowering set/get bitfield operations (PR #148999)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR fixes incorrect alignment when lowering `set` and `getBitField` operations to LLVM IR. The issue occurred because during lowering, the function was being called with an alignment of 0, which caused

[clang] [CIR] Fix alignment when lowering set/get bitfield operations (PR #148999)

2025-07-15 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/148999 This PR fixes incorrect alignment when lowering `set` and `getBitField` operations to LLVM IR. The issue occurred because during lowering, the function was being called with an alignment of 0, which ca

[clang] 91ee01f - [Sema] Remove unnecessary casts (NFC) (#148871)

2025-07-15 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-07-15T16:51:08-07:00 New Revision: 91ee01fda8b8801805708a51bba90796da376ae7 URL: https://github.com/llvm/llvm-project/commit/91ee01fda8b8801805708a51bba90796da376ae7 DIFF: https://github.com/llvm/llvm-project/commit/91ee01fda8b8801805708a51bba90796da376ae7.diff L

[clang] [Sema] Remove unnecessary casts (NFC) (PR #148871)

2025-07-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/148871 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] AMDGPU: Implement builtins for gfx1250 wmma instructions (PR #148991)

2025-07-15 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/148991 >From 074800e1906bcce1cc0110c759a6d141ce4ea322 Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Tue, 15 Jul 2025 16:37:20 -0700 Subject: [PATCH 1/2] AMDGPU: Implement builtins for gfx1250 wmma instructions

[clang] 66e707e - [NFC] Remove getDefaultCallingConvention IsBuiltin (#145904)

2025-07-15 Thread via cfe-commits
Author: Harald van Dijk Date: 2025-07-15T23:49:52+01:00 New Revision: 66e707ec68d6dc8d8f70083b68daf52559a862c1 URL: https://github.com/llvm/llvm-project/commit/66e707ec68d6dc8d8f70083b68daf52559a862c1 DIFF: https://github.com/llvm/llvm-project/commit/66e707ec68d6dc8d8f70083b68daf52559a862c1.dif

[clang] [clang] Move `ExceptionHandling` from `LangOptions` to `CodeGenOptions` (PR #148982)

2025-07-15 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/148982 This PR removes the command line parsing workaround introduced in https://github.com/llvm/llvm-project/pull/146342 by moving `LangOptions::ExceptionHandling` to `CodeGenOptions` that get parsed even for I

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #148802)

2025-07-15 Thread Zequan Wu via cfe-commits
ZequanWu wrote: Hi, it might be the cause of a build failure on our bot: ``` == ERROR: test_typekind_spelling (cindex.test_type.TestType) Ensure TypeKind.spelling works. ---

[clang] [NFC] Remove getDefaultCallingConvention IsBuiltin (PR #145904)

2025-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/145904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Fix version for symbol clang_visitCXXMethods (PR #148958)

2025-07-15 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#148980 https://github.com/llvm/llvm-project/pull/148958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-15 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/144745 >From 9e5cca779abaf4b282d2f17d326d98cb07e8a14c Mon Sep 17 00:00:00 2001 From: Arlie Davis Date: Fri, 13 Jun 2025 12:45:34 -0700 Subject: [PATCH] Fix IP2State tables style: revert one change Adjust tests ad

[clang] [clang-tools-extra] [HIP][CUDA] Support for header file types .hiph, .cuh (fixes 148972) (PR #148973)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Alex Baretta (alexbaretta) Changes With this change, clangd interprets .cuh and .hiph extensions as header files for CUDA and HIP respectively. This is necessary to allow clangd to correctly determine the compile command for t

[clang] [clang-tools-extra] [HIP][CUDA] Support for header file types .hiph, .cuh (fixes 148972) (PR #148973)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Baretta (alexbaretta) Changes With this change, clangd interprets .cuh and .hiph extensions as header files for CUDA and HIP respectively. This is necessary to allow clangd to correctly determine the compile command for these header

[clang] [clang-tools-extra] [HIP][CUDA] Support for header file types .hiph, .cuh (fixes 148972) (PR #148973)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Alex Baretta (alexbaretta) Changes With this change, clangd interprets .cuh and .hiph extensions as header files for CUDA and HIP respectively. This is necessary to allow clangd to correctly determine the compile command for these

[clang] [clang-tools-extra] [HIP][CUDA] Support for header file types .hiph, .cuh (fixes 148972) (PR #148973)

2025-07-15 Thread Alex Baretta via cfe-commits
https://github.com/alexbaretta updated https://github.com/llvm/llvm-project/pull/148973 >From 32b3ac0d7545853920aca489df244cb11a97ee57 Mon Sep 17 00:00:00 2001 From: Alex Baretta Date: Tue, 15 Jul 2025 14:45:34 -0700 Subject: [PATCH] [HIP][CUDA] Support for header file types .hiph, .cuh With t

[clang] [clang-tools-extra] [HIP][CUDA] Support for header file types .hiph, .cuh (fixes 148972) (PR #148973)

2025-07-15 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang-tools-extra] [HIP][CUDA] Support for header file types .hiph, .cuh (fixes 148972) (PR #148973)

2025-07-15 Thread Alex Baretta via cfe-commits
https://github.com/alexbaretta created https://github.com/llvm/llvm-project/pull/148973 With this change, clangd interprets .cuh and .hiph extensions as header files for CUDA and HIP respectively. This is necessary to allow clangd to correctly determine the compile command for these header fil

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM, assuming the complaint is from the optional and not the StringRef. https://github.com/llvm/llvm-project/pull/148923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [Clang] Fix FE crash during CGCoroutine GRO Alloca Emission (PR #148962)

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

[clang] 7f2bcd9 - [CUDA] add wrapper header for libc++'s __utlility/declval.h (#148918)

2025-07-15 Thread via cfe-commits
Author: Artem Belevich Date: 2025-07-15T13:56:22-07:00 New Revision: 7f2bcd97cf4afc94e4badb2f6acd229003ef5912 URL: https://github.com/llvm/llvm-project/commit/7f2bcd97cf4afc94e4badb2f6acd229003ef5912 DIFF: https://github.com/llvm/llvm-project/commit/7f2bcd97cf4afc94e4badb2f6acd229003ef5912.diff

[clang] [clang][Modules] Reporting Errors for Duplicating Link Declarations in `modulemap`s (PR #148959)

2025-07-15 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu edited https://github.com/llvm/llvm-project/pull/148959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Modules] Reporting Errors for Duplicating Link Declarations in `modulemap`s (PR #148959)

2025-07-15 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu created https://github.com/llvm/llvm-project/pull/148959 This PR teaches the modulemap parsing logic to report errors if the parsing logic sees duplicating link declarations in the same module. Specifically, duplicating link declarations means multiple link declara

[clang] [libclang] Fix version for symbol clang_visitCXXMethods (PR #148958)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Eli Friedman (efriedma-quic) Changes Happened to spot this while looking at libclang.map for other reasons. clang_visitCXXMethods was added in LLVM 21, not LLVM 20. --- Full diff: https://github.com/llvm/llvm-project/pull/148958.diff 1

[clang] [libclang] Fix version for symbol clang_visitCXXMethods (PR #148958)

2025-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic milestoned https://github.com/llvm/llvm-project/pull/148958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang] Fix version for symbol clang_visitCXXMethods (PR #148958)

2025-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic created https://github.com/llvm/llvm-project/pull/148958 Happened to spot this while looking at libclang.map for other reasons. clang_visitCXXMethods was added in LLVM 21, not LLVM 20. >From 3f9e2f11f547201946213e06fe3ec1ea0df45bc3 Mon Sep 17 00:00:00 2001 From

[clang] [flang] [llvm] [Clang] Remove ARCMigrate (PR #119269)

2025-07-15 Thread via cfe-commits
Sirraide wrote: > > Return NULL, I guess; that's how the error handling for those methods used > > to work. > > Yeah, I was just looking at what used to be there, and we’d just print that > it isn’t enabled and return `NULL`; I guess we can add them back and print > ‘ARCMigrate has been remov

[clang] [flang] [llvm] [Clang] Remove ARCMigrate (PR #119269)

2025-07-15 Thread via cfe-commits
Sirraide wrote: > Return NULL, I guess; that's how the error handling for those methods used to > work. Yeah, I was just looking at what used to be there, and we’d just print that it isn’t enabled and return `NULL`; I guess we can add them back and print ‘ARCMigrate has been removed from Clan

[clang] [flang] [llvm] [Clang] Remove ARCMigrate (PR #119269)

2025-07-15 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Return NULL, I guess; that's how the error handling for those methods used to work. https://github.com/llvm/llvm-project/pull/119269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [flang] [llvm] [Clang] Remove ARCMigrate (PR #119269)

2025-07-15 Thread via cfe-commits
Sirraide wrote: > Maybe we should stub out the methods so they always fail? As in make them do nothing essentially (i.e. return `NULL` etc.) or as in report a fatal error and exit? https://github.com/llvm/llvm-project/pull/119269 ___ cfe-commits mail

[clang] [flang] [llvm] [Clang] Remove ARCMigrate (PR #119269)

2025-07-15 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: I don't know that we've had to deal with the underling functionality for anything in libclang getting removed before; we're usually pretty conservative with what we add in the first place. Maybe we should stub out the methods so they always fail? https://github.com/llvm/l

[clang] ad1cbc0 - [clang] Attempt to fix build after c592b61f

2025-07-15 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2025-07-15T12:57:32-07:00 New Revision: ad1cbc020493b39266f7b259737bf5c7ad0a3d56 URL: https://github.com/llvm/llvm-project/commit/ad1cbc020493b39266f7b259737bf5c7ad0a3d56 DIFF: https://github.com/llvm/llvm-project/commit/ad1cbc020493b39266f7b259737bf5c7ad0a3d56.diff L

[clang-tools-extra] [clang-tidy] Speed up `misc-header-include-cycle` (PR #148757)

2025-07-15 Thread Victor Chernyakin via cfe-commits
@@ -85,36 +81,26 @@ class CyclicDependencyCallbacks : public PPCallbacks { if (FileType != clang::SrcMgr::C_User) return; -llvm::StringRef FileName = llvm::sys::path::filename(FilePath); -NextToEnter = {FileID(), FileName, Range.getBegin()}; +NextToEnter

[clang] Check if clang::FieldDecl has constant-integer bit width before getting the width (PR #148692)

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

[clang] [clang][NFC] Updated incorrect llvm-unreachable message in getOpenMPSimpleClauseType() (PR #148056)

2025-07-15 Thread David Pagan via cfe-commits
https://github.com/ddpagan closed https://github.com/llvm/llvm-project/pull/148056 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 52432b0 - [clang][NFC] Updated incorrect llvm-unreachable message in getOpenMPSimpleClauseType() (#148056)

2025-07-15 Thread via cfe-commits
Author: David Pagan Date: 2025-07-15T12:51:28-07:00 New Revision: 52432b02a9bdc234d1038ed2e72afe28779ca031 URL: https://github.com/llvm/llvm-project/commit/52432b02a9bdc234d1038ed2e72afe28779ca031 DIFF: https://github.com/llvm/llvm-project/commit/52432b02a9bdc234d1038ed2e72afe28779ca031.diff L

[clang] [CIR] Upstream CompoundLiteralExpr for Scalar (PR #148943)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Upstream CompoundLiteralExpr for Scalar as a prerequisite for CompoundLiteralExpr for ComplexType --- Full diff: https://github.com/llvm/llvm-project/pull/148943.diff 5 Files Affected: - (modified) c

[clang] [CIR] Upstream CompoundLiteralExpr for Scalar (PR #148943)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream CompoundLiteralExpr for Scalar as a prerequisite for CompoundLiteralExpr for ComplexType --- Full diff: https://github.com/llvm/llvm-project/pull/148943.diff 5 Files Affected: - (modified) cla

[clang] [CIR] Upstream CompoundLiteralExpr for Scalar (PR #148943)

2025-07-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/148943 Upstream CompoundLiteralExpr for Scalar as a prerequisite for CompoundLiteralExpr for ComplexType >From 12eae63493a66a2f780ed846ce0fbc0df6de00ce Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 15 J

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 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 `clang-tools-extra,clang,lldb,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang-tools-extra,clang,lldb,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/b

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang-tools-extra,clang,lldb,llvm` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/23431 Here is the relev

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang-tools-extra,clang,lldb,llvm` at step 6 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/196

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang-tools-extra,clang,lldb,llvm` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: Windows CI failure look unrelated. https://github.com/llvm/llvm-project/pull/146422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][SemaHLSL] Fix typo causing float to double conversion (PR #148941)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Finn Plummer (inbelic) Changes - it was noted, [here](https://github.com/llvm/llvm-project/pull/145795#discussion_r2208118547), that by accidently not specifying this explicitly as a float it will cause a build warning on MSVC - this com

[clang] [NFC][SemaHLSL] Fix typo causing float to double conversion (PR #148941)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Finn Plummer (inbelic) Changes - it was noted, [here](https://github.com/llvm/llvm-project/pull/145795#discussion_r2208118547), that by accidently not specifying this explicitly as a float it will cause a build warning on MSVC - this co

[clang] [NFC][SemaHLSL] Fix typo causing float to double conversion (PR #148941)

2025-07-15 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/148941 - it was noted, [here](https://github.com/llvm/llvm-project/pull/145795#discussion_r2208118547), that by accidently not specifying this explicitly as a float it will cause a build warning on MSVC - this commi

[clang] [llvm] [WebAssembly] Add support for nonnull_extern_ref type (PR #148935)

2025-07-15 Thread via cfe-commits
badumbatish wrote: one of the blockers is i'm actually not sure how to add the checks to ensure that the nonnull extern refs always stay non-null. --- The check on IsNullExtern should always return fail for non_null_extern ``` bool SemaWasm::BuiltinWasmRefIsNullExtern(CallExpr *TheCall) {

[clang] [clang][CodeGen] Set `dead_on_return` on indirect pointer arguments (PR #148159)

2025-07-15 Thread John McCall via cfe-commits
https://github.com/rjmccall approved this pull request. Thanks, that LGTM. Looks like you have a merge conflict to resolve, but otherwise this is ready to go. https://github.com/llvm/llvm-project/pull/148159 ___ cfe-commits mailing list cfe-commits@li

[clang] [llvm] [WebAssembly] Add support for nonnull_extern_ref type (PR #148935)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: jjasmine (badumbatish) Changes Landing support for nonnull_extern_ref in https://github.com/llvm/llvm-project/issues/136594. Unsure if more fixes are needed or split in another patch Implementation foll

[clang] [llvm] [WebAssembly] Add support for nonnull_extern_ref type (PR #148935)

2025-07-15 Thread via cfe-commits
https://github.com/badumbatish created https://github.com/llvm/llvm-project/pull/148935 Landing support for nonnull_extern_ref in https://github.com/llvm/llvm-project/issues/136594. Unsure if more fixes are needed or split in another patch Implementation follows footstep of https://github.co

[clang] [CUDA] add wrapper header for libc++'s __utlility/declval.h (PR #148918)

2025-07-15 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B updated https://github.com/llvm/llvm-project/pull/148918 >From ea1949d13608ac948ab34d1eeb073decdd11e2a3 Mon Sep 17 00:00:00 2001 From: Artem Belevich Date: Tue, 15 Jul 2025 11:10:40 -0700 Subject: [PATCH 1/2] [CUDA] add wrapper header for libc++'s __utlility/declval.

[clang] [CIR] Upstream the basic structure of LoweringPrepare pass (PR #148545)

2025-07-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-clang-x86_64-linux-debian` running on `gribozavr4` while building `clang` at step 2 "checkout". Full details are available at: https://lab.llvm.org/buildbot/#/builders/6/builds/10413 Here is the relevant piece of the

[clang] [CUDA] add wrapper header for libc++'s __utlility/declval.h (PR #148918)

2025-07-15 Thread Jordan Rupprecht via cfe-commits
rupprecht wrote: LGTM. I would like it if the new file were formatted, but I suppose it's intentional in order to be more of an exact copy of the libc++ file? https://github.com/llvm/llvm-project/pull/148918 ___ cfe-commits mailing list cfe-commits@li

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-15 Thread Sarah Spall via cfe-commits
@@ -46,6 +46,47 @@ static bool CheckAllArgsHaveSameType(Sema *S, CallExpr *TheCall) { return false; } +static bool CheckAllArgTypesAreCorrect( +Sema *S, CallExpr *TheCall, +llvm::ArrayRef< +llvm::function_ref> +Checks) { + unsigned NumArgs = TheCall

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-15 Thread Sarah Spall via cfe-commits
@@ -46,6 +46,47 @@ static bool CheckAllArgsHaveSameType(Sema *S, CallExpr *TheCall) { return false; } +static bool CheckAllArgTypesAreCorrect( +Sema *S, CallExpr *TheCall, +llvm::ArrayRef< +llvm::function_ref> +Checks) { + unsigned NumArgs = TheCall

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Passing RepositoryURL around as an optional reference triggered stack-use-after-return complaints. --- Full diff: https://github.com/llvm/llvm-project/pull/148923.diff 1 Files Affected: - (modif

[clang] [CUDA] add wrapper header for libc++'s __utlility/declval.h (PR #148918)

2025-07-15 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/lib/Headers/cuda_wrappers/__utility/declval.h ```

[clang] [CUDA] add wrapper header for libc++'s __utlility/declval.h (PR #148918)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Artem Belevich (Artem-B) Changes Since #116709 more libc++ code relies on std::declval() and it broke some CUDA compilations. The new wrapper adds GPU-side overloads for the declval() helper functions which allows it to continue working

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread Erick Velez via cfe-commits
evelez7 wrote: * **#148923** https://app.graphite.dev/github/pr/llvm/llvm-project/148923?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/1489

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Justin Stitt (JustinStitt) Changes Introduce `OverflowBehaviorType` (OBT), a new type attribute in Clang that provides developers with fine-grained control over the overflow behavior of integer types. This feature allows for a more

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/148923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix ASan complaints from passing RepositoryURL as reference (PR #148923)

2025-07-15 Thread Erick Velez via cfe-commits
https://github.com/evelez7 created https://github.com/llvm/llvm-project/pull/148923 Passing RepositoryURL around as an optional reference triggered stack-use-after-return complaints. >From 18cda3f5075648db64d4105d4615a3008efb8fa4 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Tue, 15 Jul 202

[clang] [llvm] [AMDGPU] Add support for `v_rcp_bf16` on gfx1250 (PR #148916)

2025-07-15 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec approved this pull request. https://github.com/llvm/llvm-project/pull/148916 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] Validate registers are bound to root signature (PR #146785)

2025-07-15 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/146785 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/148826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Fix LoweringPrepare pass multi lines summary (PR #148826)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -73,8 +73,8 @@ def CIRFlattenCFG : Pass<"cir-flatten-cfg"> { } def LoweringPrepare : Pass<"cir-lowering-prepare"> { - let summary = "Lower to more fine-grained CIR operations before lowering to -other dialects"; + let summary = "Lower to more fine-grained CIR operatio

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

2025-07-15 Thread via cfe-commits
https://github.com/ykhatav edited 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-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-07-15 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/146422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
@@ -10912,9 +10966,18 @@ bool RecordExprEvaluator::VisitCXXParenListOrInitListExpr( isa(Init)); APValue &FieldVal = Result.getStructField(Field->getFieldIndex()); -if (!EvaluateInPlace(FieldVal, Info, Subobject, Init) || -(Fie

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
@@ -5242,7 +5281,10 @@ static bool EvaluateVarDecl(EvalInfo &Info, const VarDecl *VD) { if (InitE->isValueDependent()) return false; - if (!EvaluateInPlace(Val, Info, Result, InitE)) { + if (VD->getType()->isReferenceType() && shafik wrote: Can we a

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
@@ -9293,7 +9344,10 @@ bool LValueExprEvaluator::VisitArraySubscriptExpr(const ArraySubscriptExpr *E) { } bool LValueExprEvaluator::VisitUnaryDeref(const UnaryOperator *E) { - return evaluatePointer(E->getSubExpr(), Result); + bool Success = evaluatePointer(E->getSubExpr(),

[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Mostly looks good but I think we need more testing and some additional comments. https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-15 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/144745 >From 84fa3c97ea04f652729603bfaffa196e03a4e026 Mon Sep 17 00:00:00 2001 From: Arlie Davis Date: Fri, 13 Jun 2025 12:45:34 -0700 Subject: [PATCH] Fix IP2State tables style: revert one change Adjust tests ad

  1   2   3   4   5   >