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

2025-07-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. So long as @philnik777 is okay with the libc++ changes, this LGTM https://github.com/llvm/llvm-project/pull/143667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

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

2025-07-15 Thread via cfe-commits
ykhatav wrote: > template > struct Y { > typedef int outside; > int o; > }; > > Y<> y; > Y<>::outside g; I think the main difference stems from when Clang processes the typedef

[clang] 67aee6b - [CIR] Refactor include guards to use a consistent naming (NFC) (#148849)

2025-07-15 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-07-15T16:15:49+02:00 New Revision: 67aee6bcb8c3f12b66631c5e4480717053c51157 URL: https://github.com/llvm/llvm-project/commit/67aee6bcb8c3f12b66631c5e4480717053c51157 DIFF: https://github.com/llvm/llvm-project/commit/67aee6bcb8c3f12b66631c5e4480717053c51157.diff

[clang] [llvm] Remove Native Client support (PR #133661)

2025-07-15 Thread Derek Schuff via cfe-commits
dschuff wrote: NaCl deprecation and removal from Chromium is now complete, so we can remove NaCl support from LLVM now. I don't know whether there might still be any other users of bundle alignment (I have heard of 1 or 2 over the years). If so, maybe we can figure something out for their use

[clang] [clang][bytecode] Make union activation more granular (PR #148835)

2025-07-15 Thread Timm Baeder via cfe-commits
tbaederr wrote: A little better: https://llvm-compile-time-tracker.com/compare.php?from=952f225a7b575f1a431f8eed391605e7acc0d072&to=7b226fba8d1ff31356b6a6a62ee810ed8d7f98fd&stat=instructions:u https://github.com/llvm/llvm-project/pull/148835 ___ cfe-c

[clang] [llvm] KISHAN KUMAR S D, HRUTHIK K K , KIRAN V-R V COLLEGE OF ENGINEERING(CSE 6TH SEM)-Implement Clang identifiers to retrieve the mangled name and the fully qualified name of functions #5 (PR

2025-07-15 Thread KISHAN KUMAR S D via cfe-commits
https://github.com/kishan-kumar-s-d-444 updated https://github.com/llvm/llvm-project/pull/145042 >From fdf7f676690f7af5109970f239eba8f34850442f Mon Sep 17 00:00:00 2001 From: KISHAN KUMAR S D Date: Fri, 20 Jun 2025 19:35:57 +0530 Subject: [PATCH 1/8] Update Expr.h --- clang/include/clang/AST/

[clang] [CIR][NFC] Fix typo in assertion message (Must) (PR #148704)

2025-07-15 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/26881 Here is the relevant piece of the build lo

[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 `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/38150 Here is

[clang] WebKit checkers: recgonize @YES / @NO as safe constants (PR #148721)

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

[clang] WebKit checkers: recgonize @YES / @NO as safe constants (PR #148721)

2025-07-15 Thread Rashmi Mudduluru via cfe-commits
@@ -329,13 +329,17 @@ void foo() { } } +#define YES 1 t-rasmud wrote: Ah, got it. Thank you. https://github.com/llvm/llvm-project/pull/148721 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [clang][bytecode] Make union activation more granular (PR #148835)

2025-07-15 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/148835 >From 49c3bd4e218ffeb3b8ccf4131da84fb4a70c7325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 15 Jul 2025 13:14:57 +0200 Subject: [PATCH] [clang][bytecode] Make union activation more gr

[clang] [CIR][NFC] Fix typo in assertion message (Must) (PR #148704)

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

[clang] a35b290 - [CIR][NFC] Fix typo in assertion message (Must) (#148704)

2025-07-15 Thread via cfe-commits
Author: Bogdan Vetrenko Date: 2025-07-15T18:27:14+02:00 New Revision: a35b290c3c3150248979e0ea52322b339d937cc7 URL: https://github.com/llvm/llvm-project/commit/a35b290c3c3150248979e0ea52322b339d937cc7 DIFF: https://github.com/llvm/llvm-project/commit/a35b290c3c3150248979e0ea52322b339d937cc7.dif

[clang] [Clang][Sema] fix crash of attribute transform (PR #78088)

2025-07-15 Thread Shafik Yaghmour via cfe-commits
shafik wrote: It looks like this commit is responsible for https://github.com/llvm/llvm-project/issues/148325 https://github.com/llvm/llvm-project/pull/78088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [CIR] Add rotate operation (PR #148426)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -2898,6 +2898,45 @@ def ByteSwapOp : CIR_BitOpBase<"byte_swap", CIR_UIntOfWidths<[16, 32, 64]>> { }]; } +//===--===// +// RotateOp +//===--

[clang] [C++] Fix a failed assertion with nullability checking (PR #148881)

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

[clang] [C++] Fix a failed assertion with nullability checking (PR #148881)

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

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-07-15 Thread Roger Ferrer Ibáñez via cfe-commits
rofirrim wrote: I'm a bit uncertain with what we want to do with `NumGeneratedLoopNests` and `NumGeneratedLoops`. I understand that, outside of dependent contexts, this is some sort of synthesised attribute (in the base case from analysing the loop nests / canonical loop sequences) that can b

[clang] [C++] Fix a failed assertion with nullability checking (PR #148881)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes This fixes a failed assertion with an operator call expression which comes from a macro expansion when performing analysis for nullability attributes. Fixes #138371 --- Full diff: https://github.com/l

[clang] [C++] Fix a failed assertion with nullability checking (PR #148881)

2025-07-15 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman created https://github.com/llvm/llvm-project/pull/148881 This fixes a failed assertion with an operator call expression which comes from a macro expansion when performing analysis for nullability attributes. Fixes #138371 >From f1afcc9aeefc352de338fa62eb0fbf122

[clang] [Clang] Fix a crash when parsing an invalid `decltype` (PR #148798)

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

[clang] 55f1b91 - [Clang] Fix a crash when parsing an invalid `decltype` (#148798)

2025-07-15 Thread via cfe-commits
Author: Corentin Jabot Date: 2025-07-15T18:09:51+02:00 New Revision: 55f1b91d50a0f3706ad62d497d3c8a5ec572d59e URL: https://github.com/llvm/llvm-project/commit/55f1b91d50a0f3706ad62d497d3c8a5ec572d59e DIFF: https://github.com/llvm/llvm-project/commit/55f1b91d50a0f3706ad62d497d3c8a5ec572d59e.diff

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

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

[clang] be4d754 - [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (#148865)

2025-07-15 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-07-15T18:09:30+02:00 New Revision: be4d754fe6c79a9cc994703157979cbad01a743a URL: https://github.com/llvm/llvm-project/commit/be4d754fe6c79a9cc994703157979cbad01a743a DIFF: https://github.com/llvm/llvm-project/commit/be4d754fe6c79a9cc994703157979cbad01a743a.diff

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

2025-07-15 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Jul 15, 4:07 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/148865). https://github.com/llvm/llvm-project/pull/148865 _

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

2025-07-15 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. 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] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-15 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/147663 >From 1e51f7bd82fe91d6d13bee6f634d7401a3ddbc8a Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 8 Jul 2025 23:35:26 -0700 Subject: [PATCH 1/2] [clang] Fix pointer comparisons between pointers to con

[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 `bolt-x86_64-ubuntu-clang` running on `bolt-worker` while building `clang` at step 6 "test-build-clang-bolt-stage2-clang-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/113/builds/8104 Here is

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

2025-07-15 Thread Amr Hesham 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] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Bruno Cardoso Lopes via cfe-commits
@@ -515,5 +515,35 @@ def BitfieldInfoAttr : CIR_Attr<"BitfieldInfo", "bitfield_info"> { ]; } +//===--===// +// AddressPointAttr +//===--==

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

2025-07-15 Thread Andy Kaylor 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] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-15 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/146813 >From d98e3785a144ada9881cdbe24c86f273850eca20 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 3 Jul 2025 02:02:04 +0100 Subject: [PATCH 1/6] Add support for true globals. --- llvm/lib/Transforms/HipStdPa

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread via cfe-commits
@@ -96,3 +96,23 @@ Note in the LLVM alias, the default value is `false`. matched against only the type name (i.e. ``Type``). E.g. to suppress reports for ``std::array`` iterators use `std::array<.*>::(const_)?iterator` string. The default is an empty string. + +.. option:

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

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getArgAsExpr already returns Expr *. --- Full diff: https://github.com/llvm/llvm-project/pull/148871.diff 4 Files Affected: - (modified) clang/lib/Sema/SemaDeclAttr.cpp (+1-1) - (modified) clang/li

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

2025-07-15 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/148871 getArgAsExpr already returns Expr *. >From 2462f593876d1b306d56341581602b16e5649218 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 15 Jul 2025 08:17:35 -0700 Subject: [PATCH] [Sema] Remove unnece

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

2025-07-15 Thread via cfe-commits
bd1976bris wrote: @Prabhuk I might need some help here. Looking at the output for the `Clang :: Driver/DTLTO/dtlto.c test` on your buildbot LLD is being invoked with the argument `"--thinlto-remote-compiler=/b/s/w/ir/x/w/llvm_build/bin/llvm"`. That is clearly not the location of a Clang compil

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

2025-07-15 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: Clang :: Driver/DTLTO/dtlto.c test is failing in our toolchain builders. See full log here: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket/8709270904931005265/+/u/clang/tests/stdout ``` Exit Code: 1 Command Output (stderr): -- /b/s/w/ir/x/w/llvm_build/bin/clan

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/148690 >From ea41b2d036ec9f857be107408b3a2b557d377304 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Mon, 14 Jul 2025 10:44:56 -0700 Subject: [PATCH 1/5] [Clang] FunctionEffects: Make a separate diagnostic group fo

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread via cfe-commits
@@ -109,10 +109,32 @@ Note in the LLVM alias, the default value is `false`. auto bar = foo(); -If RespectOpaqueTypes is set to `false`, it will be transformed into: +If IgnoreAliasing is set to `true`, it will be transformed into: .. code-block:: c++ auto *bar = f

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
JuanBesa wrote: Updated to `IgnoreAliasing` name for the option (also updated the title here) Merged the testfile so that everythign runs in one file Added the Limitations section for the case discussed. https://github.com/llvm/llvm-project/pull/147060

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread via cfe-commits
@@ -109,10 +109,32 @@ Note in the LLVM alias, the default value is `false`. auto bar = foo(); -If RespectOpaqueTypes is set to `false`, it will be transformed into: +If IgnoreAliasing is set to `true`, it will be transformed into: .. code-block:: c++ auto *bar = f

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
@@ -96,3 +96,23 @@ Note in the LLVM alias, the default value is `false`. matched against only the type name (i.e. ``Type``). E.g. to suppress reports for ``std::array`` iterators use `std::array<.*>::(const_)?iterator` string. The default is an empty string. + +.. option:

[clang-tools-extra] [clang-tidy] added `IgnoreAliasing` option to `readability-qualified-auto check` (PR #147060)

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

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

2025-07-15 Thread Victor Chernyakin via cfe-commits
localspook wrote: It doesn't seem like preprocessor-based checks appear in the profile. You can see this with an existing preprocessor check; running `clang-tidy --checks=-*,readability-redundant-preprocessor -enable-check-profile` produces no output. https://github.com/llvm/llvm-project/pull

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/148690 >From ea41b2d036ec9f857be107408b3a2b557d377304 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Mon, 14 Jul 2025 10:44:56 -0700 Subject: [PATCH 1/6] [Clang] FunctionEffects: Make a separate diagnostic group fo

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread Juan Besa via cfe-commits
https://github.com/JuanBesa updated https://github.com/llvm/llvm-project/pull/147060 >From d176aa31c18a4293be9b49da671270d349a323b7 Mon Sep 17 00:00:00 2001 From: juanbesa Date: Thu, 26 Jun 2025 07:42:55 -0700 Subject: [PATCH 1/9] Copied over everything --- .../readability/QualifiedAutoCheck.

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

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

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread via cfe-commits
@@ -707,6 +707,12 @@ Improvements to Clang's diagnostics - Improve the diagnostics for placement new expression when const-qualified object was passed as the storage argument. (#GH143708) +- Added a separate diagnostic group `-Wfunction-effect-redeclarations``, for the more

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. https://github.com/llvm/llvm-project/pull/148690 ___ 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 Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. 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] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread Doug Wyatt via cfe-commits
@@ -11529,17 +11529,28 @@ def note_in_evaluating_default_argument : Note< def warn_invalid_add_func_effects : Warning< "attribute '%0' should not be added via type conversion">, InGroup, DefaultIgnore; -def warn_mismatched_func_effect_override : Warning< - "attribute '%0'

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Henrich Lauko (xlauko) Changes - This adds common CIR_ prefix to all operation disambiguating them when used with other dialects. - Unifies traits style in operation definitions. This mirrors incubator changes from https://github.com/llvm

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/148690 >From ea41b2d036ec9f857be107408b3a2b557d377304 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Mon, 14 Jul 2025 10:44:56 -0700 Subject: [PATCH 1/5] [Clang] FunctionEffects: Make a separate diagnostic group fo

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Henrich Lauko (xlauko) Changes - This adds common CIR_ prefix to all operation disambiguating them when used with other dialects. - Unifies traits style in operation definitions. This mirrors incubator changes from https://github.com/ll

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

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

[clang] [clang-format] Add IgnoreExtension to SortIncludes (PR #137840)

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

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

2025-07-15 Thread Henrich Lauko via cfe-commits
xlauko wrote: * **#148865** https://app.graphite.dev/github/pr/llvm/llvm-project/148865?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/14886

[clang] [CIR] Reformat Ops to use common `CIR_` prefix and definition traits style (PR #148865)

2025-07-15 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko created https://github.com/llvm/llvm-project/pull/148865 - This adds common CIR_ prefix to all operation disambiguating them when used with other dialects. - Unifies traits style in operation definitions. This mirrors incubator changes from https://github.com/llvm/cla

[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)

2025-07-15 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/148690 >From ea41b2d036ec9f857be107408b3a2b557d377304 Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Mon, 14 Jul 2025 10:44:56 -0700 Subject: [PATCH 1/3] [Clang] FunctionEffects: Make a separate diagnostic group fo

[clang] [CIR] Add VTableAddrPointOp (PR #148730)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -1669,6 +1669,51 @@ def GetGlobalOp : CIR_Op<"get_global", }]; } +//===--===// +// VTableAddrPointOp +//===--===// + +def VTableAddrPoin

[clang] [NFC][clang] Refactor CXX/module/module.interface/p1.cpp with split-file (PR #148861)

2025-07-15 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/148861 Refine CXX/module/module.interface/p1.cpp with split-file. This MR is a part of https://github.com/llvm/llvm-project/pull/107168. >From 6106b92941fb39d2c93776b71738d3bbd3eb6716 Mon Sep 17 00:00:00 2001 From: yr

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/148857 >From 8d328786bdfc80f348fd6c4159ac54c343a28ae9 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 15 Jul 2025 16:16:34 +0200 Subject: [PATCH 1/2] [CIR] Upstream unary not for ComplexType --- .../CIR/D

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -22,15 +24,68 @@ struct LoweringPreparePass : public LoweringPrepareBase { void runOnOperation() override; void runOnOp(Operation *op); + void lowerUnaryOp(UnaryOp op); }; } // namespace -void LoweringPreparePass::runOnOp(Operation *op) {} +void LoweringPrepareP

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -22,15 +24,68 @@ struct LoweringPreparePass : public LoweringPrepareBase { void runOnOperation() override; void runOnOp(Operation *op); + void lowerUnaryOp(UnaryOp op); }; } // namespace -void LoweringPreparePass::runOnOp(Operation *op) {} +void LoweringPrepareP

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -22,15 +24,68 @@ struct LoweringPreparePass : public LoweringPrepareBase { void runOnOperation() override; void runOnOp(Operation *op); + void lowerUnaryOp(UnaryOp op); }; } // namespace -void LoweringPreparePass::runOnOp(Operation *op) {} +void LoweringPrepareP

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread Henrich Lauko via cfe-commits
@@ -22,15 +24,68 @@ struct LoweringPreparePass : public LoweringPrepareBase { void runOnOperation() override; void runOnOp(Operation *op); + void lowerUnaryOp(UnaryOp op); }; } // namespace -void LoweringPreparePass::runOnOp(Operation *op) {} +void LoweringPrepareP

[clang] [NFC][clang] Refactor CXX/module/module.interface/p1.cpp with split-file (PR #148861)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: None (yronglin) Changes Refine CXX/module/module.interface/p1.cpp with split-file. This MR is a part of https://github.com/llvm/llvm-project/pull/107168. --- Full diff: https://github.com/llvm/llvm-project/pull/148861.diff 1 File

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

2025-07-15 Thread via cfe-commits
EugeneZelenko wrote: It may be worth to mention improvements in Release Notes. https://github.com/llvm/llvm-project/pull/148757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-query] Allow for trailing comma in matchers (PR #148018)

2025-07-15 Thread Remy Farley via cfe-commits
one-d-wide wrote: Duh, apparently lit's internal cli interpreter, enabled due to [this](https://github.com/llvm/llvm-project/blob/02d3738be92eac38cebfb7b670673abb9538ca76/compiler-rt/test/lit.common.cfg.py#L123-L125) (setting LIT_USE_INTERNAL_SHELL=1 reproduces the error), doesn't even attempt

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

2025-07-15 Thread Andrey Karlov via cfe-commits
@@ -6298,10 +6308,60 @@ static bool isImmediateSinkBlock(const CFGBlock *Blk) { // at least for now, but once we have better support for exceptions, // we'd need to carefully handle the case when the throw is being // immediately caught. - if (llvm::any_of(*Blk, [](const

[clang] [clang-tools-extra] [clang-query] Allow for trailing comma in matchers (PR #148018)

2025-07-15 Thread Remy Farley via cfe-commits
https://github.com/one-d-wide updated https://github.com/llvm/llvm-project/pull/148018 >From 22e6282b5dbad9c76b036ef379a4c32ae8d9 Mon Sep 17 00:00:00 2001 From: "Remy D. Farley" Date: Tue, 15 Jul 2025 14:51:31 + Subject: [PATCH] [clang-query] Allow for trailing comma in matchers --- c

[clang] [libc] [llvm] [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (PR #144383)

2025-07-15 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse closed https://github.com/llvm/llvm-project/pull/144383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-15 Thread Djordje Todorovic via cfe-commits
djtodoro wrote: Is it okay to go as is? https://github.com/llvm/llvm-project/pull/146913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-15 Thread via cfe-commits
https://github.com/tyan0 updated https://github.com/llvm/llvm-project/pull/147960 >From 1bb281fa82bbec8ed7759eef5ddf5b5f4991770c Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH] [Clang][Driver] Revise Cygwin ToolChain to call linker directly .

[clang] 57a5f9c - [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (#144383)

2025-07-15 Thread via cfe-commits
Author: Jeremy Morse Date: 2025-07-15T15:34:10+01:00 New Revision: 57a5f9c47e063701ac7d13a5efd993e839e148eb URL: https://github.com/llvm/llvm-project/commit/57a5f9c47e063701ac7d13a5efd993e839e148eb DIFF: https://github.com/llvm/llvm-project/commit/57a5f9c47e063701ac7d13a5efd993e839e148eb.diff

[clang] [libc] [llvm] [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (PR #144383)

2025-07-15 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse updated https://github.com/llvm/llvm-project/pull/144383 >From 63654fb7cf702a1d0c5fb5f8d526e926ec5a3470 Mon Sep 17 00:00:00 2001 From: Jeremy Morse Date: Fri, 13 Jun 2025 15:39:53 +0100 Subject: [PATCH 1/2] [DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstructio

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/148857 Upstream unary not for ComplexType https://github.com/llvm/llvm-project/issues/141365 >From 8d328786bdfc80f348fd6c4159ac54c343a28ae9 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 15 Jul 2025 16:1

[clang] [llvm] [ARM] enable FENV_ACCESS pragma support for hard-float targets (PR #137101)

2025-07-15 Thread Erik Enikeev via cfe-commits
https://github.com/Varnike updated https://github.com/llvm/llvm-project/pull/137101 >From 1b3f48acc5a409648fa0ec374c16411df754ce6d Mon Sep 17 00:00:00 2001 From: Erik Enikeev Date: Mon, 9 Jun 2025 12:08:15 -0400 Subject: [PATCH 1/2] Added support for FENV_ACCESS pragma on hard-float ARM platfo

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-15 Thread via cfe-commits
https://github.com/tyan0 updated https://github.com/llvm/llvm-project/pull/147960 >From 1bb281fa82bbec8ed7759eef5ddf5b5f4991770c Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH] [Clang][Driver] Revise Cygwin ToolChain to call linker directly .

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-15 Thread via cfe-commits
https://github.com/weirdsmiley updated https://github.com/llvm/llvm-project/pull/148622 >From 4d59ae8faf2d8b61c86d728b43fe0fc7b72563f7 Mon Sep 17 00:00:00 2001 From: Manas Date: Mon, 14 Jul 2025 18:08:36 +0530 Subject: [PATCH] [clang][docs] Add all clang-tools-extra The 'Extra Clang Tools' sec

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream unary not for ComplexType https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/148857.diff 5 Files Affected: - (modified) clang/include/c

[clang] [CIR] Upstream unary not for ComplexType (PR #148857)

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Upstream unary not for ComplexType https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/148857.diff 5 Files Affected: - (modified) clang/include

[clang] [CIR] Refactor include guards to use a consistent naming (NFC) (PR #148849)

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

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

2025-07-15 Thread Peter Smith via cfe-commits
smithp35 wrote: > > I don't think that this should necessarily prevent this patch from landing. > > To some degree users can just not use the option if the toolchain doesn't > > support it. > > The file names for crt files are borrowed from their linux equivalent. > However as already pointed

[clang] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

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

[clang] 9f79374 - [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (#148850)

2025-07-15 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-07-15T16:18:57+02:00 New Revision: 9f7937401b62d95f2ebe86072d6f277eb9745cd0 URL: https://github.com/llvm/llvm-project/commit/9f7937401b62d95f2ebe86072d6f277eb9745cd0 DIFF: https://github.com/llvm/llvm-project/commit/9f7937401b62d95f2ebe86072d6f277eb9745cd0.diff

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-15 Thread via cfe-commits
https://github.com/tyan0 updated https://github.com/llvm/llvm-project/pull/147960 >From 1bb281fa82bbec8ed7759eef5ddf5b5f4991770c Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH] [Clang][Driver] Revise Cygwin ToolChain to call linker directly .

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-15 Thread via cfe-commits
@@ -89,14 +89,53 @@ they'll be tracked here. The focus of this documentation is on the scope and features of the tools for other tool developers; each tool should provide its own user-focused documentation. -``clang-tidy`` +``Clang-Doc`` +- + +`Clang-Doc

[clang] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

2025-07-15 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/148850 >From af05c669896f4b7433454b02c43506702f3a76a4 Mon Sep 17 00:00:00 2001 From: xlauko Date: Tue, 15 Jul 2025 15:34:45 +0200 Subject: [PATCH] [CIR] Separate CIR EnumAttr definitions to be includable without the re

[clang] [CIR] Refactor include guards to use a consistent naming (NFC) (PR #148849)

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

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-15 Thread via cfe-commits
https://github.com/tyan0 updated https://github.com/llvm/llvm-project/pull/147960 >From 1bb281fa82bbec8ed7759eef5ddf5b5f4991770c Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Thu, 10 Jul 2025 21:55:05 +0900 Subject: [PATCH] [Clang][Driver] Revise Cygwin ToolChain to call linker directly .

[clang] [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (PR #148850)

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

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-15 Thread via cfe-commits
@@ -89,14 +89,53 @@ they'll be tracked here. The focus of this documentation is on the scope and features of the tools for other tool developers; each tool should provide its own user-focused documentation. -``clang-tidy`` +``Clang-Doc`` +- + +`Clang-Doc

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

2025-07-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Garvit Gupta (quic-garvgupt) Changes Commit 597ee88 moved the -X flag to a new position in the baremetal toolchain's linker job, but unintentionally left the original instance in place. This patch removes the redundant flag, ensuring -X

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-15 Thread via cfe-commits
@@ -89,14 +89,53 @@ they'll be tracked here. The focus of this documentation is on the scope and features of the tools for other tool developers; each tool should provide its own user-focused documentation. -``clang-tidy`` +``Clang-Doc`` +- + +`clang-doc

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

2025-07-15 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt created https://github.com/llvm/llvm-project/pull/148855 Commit 597ee88 moved the -X flag to a new position in the baremetal toolchain's linker job, but unintentionally left the original instance in place. This patch removes the redundant flag, ensuring -X is

[clang] [CIR] Refactor include guards to use a consistent naming (NFC) (PR #148849)

2025-07-15 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/148849 >From 9dbdad18c07e44eafaf5c8abe867e9311e11eb68 Mon Sep 17 00:00:00 2001 From: xlauko Date: Tue, 15 Jul 2025 15:29:04 +0200 Subject: [PATCH] [CIR] Refactor include guards to use a consistent naming (NFC) --- cl

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-15 Thread via cfe-commits
@@ -96,3 +96,23 @@ Note in the LLVM alias, the default value is `false`. matched against only the type name (i.e. ``Type``). E.g. to suppress reports for ``std::array`` iterators use `std::array<.*>::(const_)?iterator` string. The default is an empty string. + +.. option:

[clang] [CIR] Refactor include guards to use a consistent naming (NFC) (PR #148849)

2025-07-15 Thread Henrich Lauko via cfe-commits
xlauko wrote: ### Merge activity * **Jul 15, 2:11 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/148849). https://github.com/llvm/llvm-project/pull/148849 _

[clang] [clang][docs] Add all clang-tools-extra (PR #148622)

2025-07-15 Thread via cfe-commits
@@ -89,14 +89,53 @@ they'll be tracked here. The focus of this documentation is on the scope and features of the tools for other tool developers; each tool should provide its own user-focused documentation. -``clang-tidy`` +``Clang-Doc`` +- + +`clang-doc

  1   2   3   >