[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-19 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer updated https://github.com/llvm/llvm-project/pull/127621 >From d7483fc138c0834fbed84bb43521ce8caed84528 Mon Sep 17 00:00:00 2001 From: Sjoerd Meijer Date: Tue, 18 Feb 2025 03:37:08 -0800 Subject: [PATCH] [Clang][doc] -ffp-contract options and standard compliance

[clang] [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (PR #121768)

2025-02-19 Thread Erich Keane via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To:

[clang-tools-extra] [clangd] Update XRefs to support overriden ObjC methods (PR #127109)

2025-02-19 Thread kadir çetinkaya via cfe-commits
@@ -411,6 +411,58 @@ TEST(LocateSymbol, FindOverrides) { sym("foo", Code.range("2"), std::nullopt))); } +TEST(LocateSymbol, FindOverridesObjC) { + auto Code = Annotations(R"objc( +@protocol Fooey +- (void)foo; +@end +@interfa

[clang] d804c83 - [clang] Lower modf builtin using `llvm.modf` intrinsic (#126750)

2025-02-19 Thread via cfe-commits
Author: Benjamin Maxwell Date: 2025-02-19T14:49:22Z New Revision: d804c838933b1f35ae56343afac669ffe3bbd957 URL: https://github.com/llvm/llvm-project/commit/d804c838933b1f35ae56343afac669ffe3bbd957 DIFF: https://github.com/llvm/llvm-project/commit/d804c838933b1f35ae56343afac669ffe3bbd957.diff L

[clang] [clang] Lower modf builtin using `llvm.modf` intrinsic (PR #126750)

2025-02-19 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue closed https://github.com/llvm/llvm-project/pull/126750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (PR #121768)

2025-02-19 Thread Erich Keane via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To:

[clang] [llvm] Template as type (PR #127654)

2025-02-19 Thread via cfe-commits
https://github.com/ykhatav edited https://github.com/llvm/llvm-project/pull/127654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-19 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer edited https://github.com/llvm/llvm-project/pull/127621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-19 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer commented: Thanks for the review. I have addressed the comments, I think. https://github.com/llvm/llvm-project/pull/127621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [llvm] Add support for template as type parameter (PR #127654)

2025-02-19 Thread via cfe-commits
https://github.com/ykhatav edited https://github.com/llvm/llvm-project/pull/127654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-19 Thread Sjoerd Meijer via cfe-commits
@@ -1681,19 +1681,25 @@ for more details. permitted to produce more precise results than performing the same operations separately. - The C standard permits intermediate floating-point results within an + The C/C++ standard permits intermediate floating-point results

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-19 Thread Sjoerd Meijer via cfe-commits
@@ -1681,19 +1681,25 @@ for more details. permitted to produce more precise results than performing the same operations separately. - The C standard permits intermediate floating-point results within an + The C/C++ standard permits intermediate floating-point results

[clang] [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (PR #121768)

2025-02-19 Thread Alejandro Álvarez Ayllón via cfe-commits
@@ -2016,17 +2016,17 @@ void ASTDeclWriter::VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D) { // For an expanded parameter pack, record the number of expansion types here // so that it's easier for deserialization to allocate the right amount of // memory. - Ex

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-19 Thread Erich Keane via cfe-commits
erichkeane wrote: > ping As mentioned in the discourse, quite a few of us were out of contact thanks to the WG21 meeting that was last week. I'll take another look now. https://github.com/llvm/llvm-project/pull/114841 ___ cfe-commits mailing list cf

[clang] [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (PR #121768)

2025-02-19 Thread Alejandro Álvarez Ayllón via cfe-commits
https://github.com/alejandro-alvarez-sonarsource updated https://github.com/llvm/llvm-project/pull/121768 From da2bbf99b8430d8b6aa6bf7969c9825b4d94219b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20=C3=81lvarez=20Ayll=C3=B3n?= Date: Mon, 18 Nov 2024 11:36:03 +0100 Subject: [PATCH 1/9] [

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/127268 >From a705acfd439e6310648b0ed1ad612eaffc408ad5 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 14 Feb 2025 17:46:25 + Subject: [PATCH 1/8] [CMake][Release] Statically link clang with stage1 runtimes

[clang] Check the type of Objective-C++ instance variables in WebKit member variable checkers. (PR #127570)

2025-02-19 Thread Rashmi Mudduluru via cfe-commits
@@ -87,6 +92,31 @@ class RawPtrRefMemberChecker } } + void visitObjCDecl(const ObjCContainerDecl *CD) const { +if (auto *ID = dyn_cast(CD)) { t-rasmud wrote: Ah yes, of course! I wasn't reading right. https://github.com/llvm/llvm-project/pull/1275

[clang] Check the type of Objective-C++ instance variables in WebKit member variable checkers. (PR #127570)

2025-02-19 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/127570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Check the type of Objective-C++ instance variables in WebKit member variable checkers. (PR #127570)

2025-02-19 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud edited https://github.com/llvm/llvm-project/pull/127570 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][LLVM] Implement single-single vectors MOP4{A/S} (PR #127797)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-clang Author: Virginia Cangelosi (virginia-cangelosi) Changes Implement all {BF/F/S/U/SU/US}MOP4{A/S} instructions in clang and llvm following the acle in https://github.com/ARM-software/acle/pull/381/files --- Patch is 59

[clang] [llvm] [Clang][LLVM] Implement single-single vectors MOP4{A/S} (PR #127797)

2025-02-19 Thread Virginia Cangelosi via cfe-commits
https://github.com/virginia-cangelosi edited https://github.com/llvm/llvm-project/pull/127797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][LLVM] Implement single-single vectors MOP4{A/S} (PR #127797)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Virginia Cangelosi (virginia-cangelosi) Changes Implement all {BF/F/S/U/SU/US}MOP4{A/S} instructions in clang and llvm following the acle in https://github.com/ARM-software/acle/pull/381/files --- Patch is 59.07 KiB, truncated

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-19 Thread Pavel Labath via cfe-commits
labath wrote: Okay, nevermind me then. :) Thanks for the explanation. https://github.com/llvm/llvm-project/pull/126215 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang] Cleanup in APValue and SemaInit (PR #127790)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes APValue: Additional assignment of AllowConstexprUnknown is not required since it will be handled by copy constructor called above. SemaInit: Remove unnecessary null check. DestRecordDecl can't be n

[clang] [analyzer] Limit Store by region-store-binding-limit (PR #127602)

2025-02-19 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/127602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread Sam James via cfe-commits
thesamesam wrote: > The compromise is to make it a warning which defaults to an error so users > who hit the false positives have an escape hatch. OK, that's fair enough, I think. I can see it being controversial but I think it's a defensible choice (that I agree with). https://github.com/llv

[clang] [lldb] [lldb][TypeSystemClang] Initialize ClassTemplateSpecializationDecl's StrictPackMatch field (PR #126215)

2025-02-19 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: But there is reason to cherry-pick https://github.com/llvm/llvm-project/pull/125791, as it fixes a regression which would otherwise be introduced in 20.x. https://github.com/llvm/llvm-project/pull/126215 ___ cfe-commits mailing list c

[clang] [NFC][clang] Cleanup in APValue and SemaInit (PR #127790)

2025-02-19 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/127790 APValue: Additional assignment of AllowConstexprUnknown is not required since it will be handled by copy constructor called above. SemaInit: Remove unnecessary null check. DestRecordDecl can't be null due to b

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > The compromise is to make it a warning which defaults to an error so users > > who hit the false positives have an escape hatch. > > OK, that's fair enough, I think. I can see it being controversial but I think > it's a defensible choice (that I agree with). Yeah, my p

[clang-tools-extra] [clang-tidy] Check for `-ignore-insert-conflict` support before using it in `apply_fixes` in `run-clang-tidy.py` (PR #127066)

2025-02-19 Thread Vicente Mataix Ferrándiz via cfe-commits
loumalouomega wrote: > > I have a certain version of Ubuntu with a certain version of Clang, not > > custom compiled. > > @loumalouomega Can you please confirm if the Clang comes from the official > Debian or Ubuntu APT repository? > > If that is the case, I think we can, going forward, conta

[clang] [llvm] Add support for template as type parameter (PR #127654)

2025-02-19 Thread via cfe-commits
https://github.com/ykhatav ready_for_review https://github.com/llvm/llvm-project/pull/127654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 888c099 - [Clang] Add release note for #127623 (#127815)

2025-02-19 Thread via cfe-commits
Author: Sirraide Date: 2025-02-19T16:48:38+01:00 New Revision: 888c09986ce0b1a02ba904b167a3650b1d7eee2d URL: https://github.com/llvm/llvm-project/commit/888c09986ce0b1a02ba904b167a3650b1d7eee2d DIFF: https://github.com/llvm/llvm-project/commit/888c09986ce0b1a02ba904b167a3650b1d7eee2d.diff LOG:

[clang] [CodeGen][NFC] Move test builtin_signbit.cpp to CodeGen (PR #127814)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Donát Nagy (NagyDonat) Changes Because it is one of the three "misplaced" test files that appeared under `/clang/test/Analysis` but were unrelated to the clang static analyzer. For background see the following discourse thread: https://d

[clang] [Clang] Add release note for #127623 (PR #127815)

2025-02-19 Thread via cfe-commits
https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/127815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add release note for #127623 (PR #127815)

2025-02-19 Thread via cfe-commits
https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/127815 While reviewing #127623, I missed that it didn’t have a release note. >From a0c1d5608cfdb891bc10f15f1971aa71f2fb644e Mon Sep 17 00:00:00 2001 From: Sirraide Date: Wed, 19 Feb 2025 16:46:25 +0100 Subject: [PATC

[clang] [CodeGen][NFC] Move test builtin_signbit.cpp to CodeGen (PR #127814)

2025-02-19 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/127814 Because it is one of the three "misplaced" test files that appeared under `/clang/test/Analysis` but were unrelated to the clang static analyzer. For background see the following discourse thread: https://di

[clang] [Clang] Add release note for #127623 (PR #127815)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Sirraide) Changes While reviewing #127623, I missed that it didn’t have a release note. --- Full diff: https://github.com/llvm/llvm-project/pull/127815.diff 1 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+1) ``

[clang] [FixIt] Improve Source Ranges and Fix-It Hints for Unused Lambda Captures #106445 (PR #117953)

2025-02-19 Thread Erich Keane via cfe-commits
@@ -598,7 +598,7 @@ struct S1 { }; void foo1() { - auto s0 = S1([name=]() {}); // expected-error {{expected expression}} + auto s0 = S1([]() {}); // Remove invalid capture, no diagnostic expected erichkeane wrote: why change the test? this one seemed like

[clang] [FixIt] Improve Source Ranges and Fix-It Hints for Unused Lambda Captures #106445 (PR #117953)

2025-02-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Only a quick scroll through here, and @cor3ntin is the right one to review this, but the test coverage for the new diagnostics seems non-existant. And much of the test changes themselves are just changing what looks like they are valid tests. Please A

[clang] [FixIt] Improve Source Ranges and Fix-It Hints for Unused Lambda Captures #106445 (PR #117953)

2025-02-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/117953 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [NVPTX] Convert vector function nvvm.annotations to attributes (PR #127736)

2025-02-19 Thread Alex MacLean via cfe-commits
https://github.com/AlexMaclean updated https://github.com/llvm/llvm-project/pull/127736 >From bae09a6c197306efce76080921843f2b67a6333c Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Wed, 19 Feb 2025 02:26:23 + Subject: [PATCH] [NVPTX] Convert vector function nvvm.annotations to attribut

[clang] [Clang] Do not try to transform invalid bindings (PR #125658)

2025-02-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/13280 Here is the r

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-19 Thread Tarun Prabhu via cfe-commits
@@ -6747,8 +6747,16 @@ defm backtrace : BooleanFFlag<"backtrace">, Group; defm bounds_check : BooleanFFlag<"bounds-check">, Group; defm check_array_temporaries : BooleanFFlag<"check-array-temporaries">, Group; defm cray_pointer : BooleanFFlag<"cray-pointer">, Group; -defm d_l

[clang] [clang][CodeGen] Propagate `volatile` qualifier in derived-to-base conversion (PR #127824)

2025-02-19 Thread Antonio Frighetto via cfe-commits
https://github.com/antoniofrighetto created https://github.com/llvm/llvm-project/pull/127824 A miscompilation issue has been addressed with improved handling. Fixes: https://github.com/llvm/llvm-project/issues/127683. >From fd06a833ba56f812693d89e19f594ed3f238fea4 Mon Sep 17 00:00:00 2001 From

[clang] [CIR] Add additional frontend actions (PR #127249)

2025-02-19 Thread Erich Keane via cfe-commits
@@ -52,6 +52,9 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &mlirContext, DoubleTy = cir::DoubleType::get(&getMLIRContext()); FP80Ty = cir::FP80Type::get(&getMLIRContext()); FP128Ty = cir::FP128Type::get(&getMLIRContext()); + + theModule->setAttr(cir::CIRDialect::getT

[clang] [CIR] Add additional frontend actions (PR #127249)

2025-02-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Please improve the commit message to mention the addition of the triple info/spreading of that as well, else LGTM. https://github.com/llvm/llvm-project/pull/127249 ___ cfe-commits mailing list

[libclc] [libclc] Move modf to the CLC library (PR #127828)

2025-02-19 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/127828 >From 34c217f46e81cbceda12ffa47c1825a57706fdc8 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Wed, 19 Feb 2025 16:25:22 + Subject: [PATCH] [libclc] Move modf to the CLC library The "generic" unary_

[clang] [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (PR #121768)

2025-02-19 Thread Erich Keane via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Aylló

[clang] [Clang] Add __has_target_builtin macro (PR #126324)

2025-02-19 Thread Erich Keane via cfe-commits
@@ -1819,8 +1822,12 @@ void Preprocessor::ExpandBuiltinMacro(Token &Tok) { // usual allocation and deallocation functions. Required by libc++ return 201802; default: + // __has_target_builtin should return false for aux buil

[libclc] [libclc] Move modf to the CLC library (PR #127828)

2025-02-19 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/127828 The "generic" unary_(def|decl)_with_ptr files are intended to be re-used by the sincos and fract builtins in the future as they share an identical type signature. >From 09835c009430464426dced5598a5e8a9cae1

[clang] [CIR] Add additional frontend actions (PR #127249)

2025-02-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/127249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [NVPTX] Convert vector function nvvm.annotations to attributes (PR #127736)

2025-02-19 Thread Alex MacLean via cfe-commits
https://github.com/AlexMaclean updated https://github.com/llvm/llvm-project/pull/127736 >From fd8f342fa2b65f7604955c88e2b73e758dc17134 Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Wed, 19 Feb 2025 02:26:23 + Subject: [PATCH] [NVPTX] Convert vector function nvvm.annotations to attribut

[clang] fda0e63 - [clang] handle fp options in __builtin_convertvector (#125522)

2025-02-19 Thread via cfe-commits
Author: Jakub Ficek Date: 2025-02-19T09:03:18-08:00 New Revision: fda0e63e7331debacf9f36a64dad76339ad86482 URL: https://github.com/llvm/llvm-project/commit/fda0e63e7331debacf9f36a64dad76339ad86482 DIFF: https://github.com/llvm/llvm-project/commit/fda0e63e7331debacf9f36a64dad76339ad86482.diff L

[clang] [clang] handle fp options in __builtin_convertvector (PR #125522)

2025-02-19 Thread via cfe-commits
github-actions[bot] wrote: @ficol Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build, y

[clang] [clang] Implement __attribute__((format_matches)) (PR #116708)

2025-02-19 Thread Erich Keane via cfe-commits
=?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier , =?utf-8?q?Félix?= Cloutier Message-ID

[clang] [clang] handle fp options in __builtin_convertvector (PR #125522)

2025-02-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/125522 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread via cfe-commits
foxtran wrote: > No, that's not the principal issue (but you should consider building userland > with it to see how many packages will need fixing) Firstly, they need to start using C23. So, existing packages should not be affected significantly. :-) https://github.com/llvm/llvm-project/pull

[clang] [flang] [flang][OpenMP] Upstream first part of `do concurrent` mapping (PR #126026)

2025-02-19 Thread Tom Eccles via cfe-commits
@@ -0,0 +1,155 @@ + + +# `DO CONCURRENT` mapping to OpenMP + +```{contents} +--- +local: +--- +``` + +This document seeks to describe the effort to parallelize `do concurrent` loops +by mapping them to OpenMP worksharing constructs. The goals of this document +are: +* Describing h

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > No, that's not the principal issue (but you should consider building > > userland with it to see how many packages will need fixing) > > Firstly, they need to start using C23/C26. So, existing packages should not > be affected significantly. :-) Existing code already u

[clang] 75ea7ae - [CIR] Add additional frontend actions (#127249)

2025-02-19 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-02-19T09:08:37-08:00 New Revision: 75ea7aed93ec8afa43634a41c2e94380ba0d671e URL: https://github.com/llvm/llvm-project/commit/75ea7aed93ec8afa43634a41c2e94380ba0d671e DIFF: https://github.com/llvm/llvm-project/commit/75ea7aed93ec8afa43634a41c2e94380ba0d671e.diff L

[clang] [CIR] Add additional frontend actions (PR #127249)

2025-02-19 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/127249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread via cfe-commits
Sirraide wrote: > Existing code already uses `-Wreturn-type` though, and this patch is enabling > it in all language modes, not just C23 and above. At least that’s what I hope we’ll be able to do. A compromise would be to only enable it in e.g. C23/C++26/whatever, but that doesn’t quite seem s

[clang] [clang][Sema] Combine fallout warnings to just one warning (PR #127546)

2025-02-19 Thread via cfe-commits
@@ -3590,7 +3590,8 @@ StmtResult Sema::ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, if (auto *CurBlock = dyn_cast(CurCap)) { if (CurBlock->FunctionType->castAs()->getNoReturnAttr()) { - Diag(ReturnLoc, diag::err_noreturn_block_has_return_expr); + Diag(Ret

[clang] [clang][Sema] Combine fallout warnings to just one warning (PR #127546)

2025-02-19 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/127546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Combine fallout warnings to just one warning (PR #127546)

2025-02-19 Thread via cfe-commits
https://github.com/foxtran updated https://github.com/llvm/llvm-project/pull/127546 >From d09db5fc8ca7f58813f917c3726d09f0e4cfdd81 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Mon, 17 Feb 2025 22:39:31 +0100 Subject: [PATCH 01/12] Merge {Maybe,Always}FallThrough_ReturnsNonVoid into

[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

2025-02-19 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Existing code already uses `-Wreturn-type` though, and this patch is > > enabling it in all language modes, not just C23 and above. > > At least that’s what I hope we’ll be able to do. A compromise would be to > only enable it in e.g. C23/C++26/whatever, but that doesn’

[clang] [clang][Sema] Combine fallout warnings to just one warning (PR #127546)

2025-02-19 Thread via cfe-commits
https://github.com/foxtran updated https://github.com/llvm/llvm-project/pull/127546 >From d09db5fc8ca7f58813f917c3726d09f0e4cfdd81 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Mon, 17 Feb 2025 22:39:31 +0100 Subject: [PATCH 01/12] Merge {Maybe,Always}FallThrough_ReturnsNonVoid into

[clang] [clang][CodeGen] Propagate `volatile` qualifier in derived-to-base conversion (PR #127824)

2025-02-19 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Should the result type of the ImplicitCastExpr be volatile in the AST? https://github.com/llvm/llvm-project/pull/127824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang-tools-extra] [clang-tidy] Add new check bugprone-unintended-char-ostream-output (PR #127720)

2025-02-19 Thread via cfe-commits
@@ -91,6 +91,12 @@ Improvements to clang-tidy New checks ^^ +- New :doc:`bugprone-unintended-char-ostream-output + ` check. + + Finds unintended character output from ``unsigned char`` and ``signed char`` to an + ostream. EugeneZelenko wrote: ```s

[clang] 26a8399 - [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (#121768)

2025-02-19 Thread via cfe-commits
Author: Alejandro Álvarez Ayllón Date: 2025-02-19T07:19:31-08:00 New Revision: 26a83994176fcdca6e77be4f221a15f561681621 URL: https://github.com/llvm/llvm-project/commit/26a83994176fcdca6e77be4f221a15f561681621 DIFF: https://github.com/llvm/llvm-project/commit/26a83994176fcdca6e77be4f221a15f5616

[clang] Please ignore this (PR #127807)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gábor Horváth (Xazax-hun) Changes Testing if notifications for the team work. --- Full diff: https://github.com/llvm/llvm-project/pull/127807.diff 1 Files Affected: - (modified) clang/test/Analysis/additive-folding-range-constraints.c

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
@@ -90,9 +88,17 @@ else() set(CLANG_BOOTSTRAP_TARGETS ${LLVM_RELEASE_FINAL_STAGE_TARGETS} CACHE STRING "") endif() +if (LLVM_RELEASE_ENABLE_LTO) + # Enable LTO for the runtimes. We need to configure stage1 clang to default + # to using lld as the linker because the stage

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
https://github.com/tru edited https://github.com/llvm/llvm-project/pull/127268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] fb5a87e - [libclc][NFC] Reformat ep_log.cl

2025-02-19 Thread Fraser Cormack via cfe-commits
Author: Fraser Cormack Date: 2025-02-19T15:18:05Z New Revision: fb5a87e1a6febb2a81fd85f800e78c2e6dff5715 URL: https://github.com/llvm/llvm-project/commit/fb5a87e1a6febb2a81fd85f800e78c2e6dff5715 DIFF: https://github.com/llvm/llvm-project/commit/fb5a87e1a6febb2a81fd85f800e78c2e6dff5715.diff LOG

[clang] Please ignore this (PR #127807)

2025-02-19 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun created https://github.com/llvm/llvm-project/pull/127807 Testing if notifications for the team work. From 7643d3806bdb262445df64f1fbc236568be78801 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Wed, 19 Feb 2025 15:16:04 + Subject: [PATCH] Foobar --- clan

[clang] Please ignore this (PR #127807)

2025-02-19 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun closed https://github.com/llvm/llvm-project/pull/127807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream simple function bodies (PR #127674)

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

[clang] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread Henrich Lauko via cfe-commits
@@ -0,0 +1,134 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread Henrich Lauko via cfe-commits
@@ -0,0 +1,134 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] Please ignore this (PR #127807)

2025-02-19 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun reopened https://github.com/llvm/llvm-project/pull/127807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Please ignore this (PR #127807)

2025-02-19 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun edited https://github.com/llvm/llvm-project/pull/127807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add support for template as type parameter (PR #127654)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo @llvm/pr-subscribers-clang Author: ykhatav (ykhatav) Changes For template classes with type parameters, the information of which member variables are of a "templated type" is lost. The debugger cannot differentiate between "templated" types an

[libclc] [libclc] Explicitly qualify private address spaces (PR #127823)

2025-02-19 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/127823 Doing so provides stability when compiling the builtins in a mode in which unqualified pointers may be interpreted as being in the generic address space, such as in OpenCL 3.0. We eventually want to provid

[clang] [Clang] Warn about `[[noreturn]]` on coroutines (PR #127623)

2025-02-19 Thread via cfe-commits
Sirraide wrote: @Nerixyz Just so you know, changes like these should come with a release note (which I just added #127815); I should have pointed that out during review but ended up forgetting about it this time... https://github.com/llvm/llvm-project/pull/127623 __

[clang-tools-extra] [clang-tidy] add AllowedTypes option to misc-const-correctness (PR #122951)

2025-02-19 Thread Baranov Victor via cfe-commits
vbvictor wrote: @HerrCai0907 Ping, please address https://github.com/llvm/llvm-project/pull/122951#issuecomment-2654757425 when you have time. Thank you in advance! https://github.com/llvm/llvm-project/pull/122951 ___ cfe-commits mailing list cfe-com

[clang] [clang][CodeGen] Propagate `volatile` qualifier in derived-to-base conversion (PR #127824)

2025-02-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Antonio Frighetto (antoniofrighetto) Changes A miscompilation issue has been addressed with improved handling. Fixes: https://github.com/llvm/llvm-project/issues/127683. --- Full diff: https://github.com/llvm/llvm-project/pull/127824.diff

[libclc] [libclc] Explicitly qualify private address spaces (PR #127823)

2025-02-19 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. This should probably compile in CL2.0 mode anyway https://github.com/llvm/llvm-project/pull/127823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-19 Thread Kiran Chandramohan via cfe-commits
kiranchandramohan wrote: > > > If the -fd-lines-as-code option is given they are treated as if the first > > > column contained a blank. > > > If the -fd-lines-as-comments option is given, they are treated as comment > > > lines. > > > > > > Do the tests added in this patch check this behavio

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tom Stellard via cfe-commits
@@ -90,9 +88,17 @@ else() set(CLANG_BOOTSTRAP_TARGETS ${LLVM_RELEASE_FINAL_STAGE_TARGETS} CACHE STRING "") endif() +if (LLVM_RELEASE_ENABLE_LTO) + # Enable LTO for the runtimes. We need to configure stage1 clang to default + # to using lld as the linker because the stage

[clang] [clang] Predefine `_CRT_USE_BUILTIN_OFFSETOF` in MS-compatible modes (PR #127568)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,17 @@ +// RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -verify -fms-compatibility +// expected-no-diagnostics + +typedef __typeof__(sizeof(0)) size_t; + +#if defined _MSC_VER && !defined _CRT_USE_BUILTIN_OFFSETOF AaronBallman wrote: We shoul

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
https://github.com/tru commented: Just one question. https://github.com/llvm/llvm-project/pull/127268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Use hlsl_device address space for getpointer. (PR #127675)

2025-02-19 Thread Steven Perron via cfe-commits
@@ -94,6 +94,11 @@ bool Qualifiers::isTargetAddressSpaceSupersetOf(LangAS A, LangAS B, (A == LangAS::Default && (B == LangAS::cuda_constant || B == LangAS::cuda_device || B == LangAS::cuda_shared)) || + // In HLSL, the this pointer for mem

[clang] [NFC] Add release notes for -Wunsafe-buffer-usage-in-libc-call (PR #126975)

2025-02-19 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/126975 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix initialization of `NonTypeTemplateParmDecl`... (PR #121768)

2025-02-19 Thread Erich Keane via cfe-commits
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-19 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. Thanks, Jean-Didier https://github.com/llvm/llvm-project/pull/127605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream simple function bodies (PR #127674)

2025-02-19 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. https://github.com/llvm/llvm-project/pull/127674 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Predefine `_CRT_USE_BUILTIN_OFFSETOF` in MS-compatible modes (PR #127568)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,17 @@ +// RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -verify -fms-compatibility AaronBallman wrote: We should have a RUN line which is not `-fms-compatibility` to show we don't define it in that case. https://github.com/llvm/llvm-project

[clang] [clang] Predefine `_CRT_USE_BUILTIN_OFFSETOF` in MS-compatible modes (PR #127568)

2025-02-19 Thread Aaron Ballman via cfe-commits
@@ -220,6 +220,8 @@ static void addVisualCDefines(const LangOptions &Opts, MacroBuilder &Builder) { Builder.defineMacro("_MSC_FULL_VER", Twine(Opts.MSCompatibilityVersion)); // FIXME We cannot encode the revision information into 32-bits Builder.defineMacro("_MSC_B

[clang] [flang] [flang][Driver] Add support of -fd-lines-as-comments and -fd-lines-as-code flags (PR #127605)

2025-02-19 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan approved this pull request. https://github.com/llvm/llvm-project/pull/127605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/127268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >