[clang] [clang][bytecode] Fix two small builtin_constant_p cases (PR #137587)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Only accept string literals if we're pointing to the first index and do accept complex literals. --- Full diff: https://github.com/llvm/llvm-project/pull/137587.diff 2 Files Affected: - (modified) clang/l

[clang] [clang][bytecode] Fix two small builtin_constant_p cases (PR #137587)

2025-04-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/137587 Only accept string literals if we're pointing to the first index and do accept complex literals. >From 2005584f52d7fa2bd964eed80303a8cc1a6dda4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Dat

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-04-27 Thread Haohai Wen via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/123870 >From 7c531922f20bf284a5cd83b20e94cb624ef031d2 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Thu, 9 Jan 2025 15:29:33 +0800 Subject: [PATCH 1/3] [COFF] Preserve UniqueID used to create MCSectionCOFF This Un

[clang] Reland [clang] Handle instantiated members to determine visibility (#136128) (PR #136689)

2025-04-27 Thread Andrew Savonichev via cfe-commits
asavonic wrote: Merged as f5ba3d0c and dae63e2c. https://github.com/llvm/llvm-project/pull/136689 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] dae63e2 - Reland [clang] Handle instantiated members to determine visibility (#136128) (#136689)

2025-04-27 Thread Andrew Savonichev via cfe-commits
Author: Andrew Savonichev Date: 2025-04-28T15:49:54+09:00 New Revision: dae63e2c0ff1b7d64e186fe72e06a80ef895402c URL: https://github.com/llvm/llvm-project/commit/dae63e2c0ff1b7d64e186fe72e06a80ef895402c DIFF: https://github.com/llvm/llvm-project/commit/dae63e2c0ff1b7d64e186fe72e06a80ef895402c.d

[clang] f5ba3d0 - [clang] Fix computeTypeLinkageInfo for dependent member pointers (#136689)

2025-04-27 Thread Andrew Savonichev via cfe-commits
Author: Andrew Savonichev Date: 2025-04-28T15:49:54+09:00 New Revision: f5ba3d0c6d413e46fa962be80cfb37857e35b9ab URL: https://github.com/llvm/llvm-project/commit/f5ba3d0c6d413e46fa962be80cfb37857e35b9ab DIFF: https://github.com/llvm/llvm-project/commit/f5ba3d0c6d413e46fa962be80cfb37857e35b9ab.d

[clang] c2d47a9 - [clang][NFC] Convert `Sema::PragmaOptionsAlignKind` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T09:30:19+03:00 New Revision: c2d47a912f9bef427ff249f6e6ebfab89ac37902 URL: https://github.com/llvm/llvm-project/commit/c2d47a912f9bef427ff249f6e6ebfab89ac37902 DIFF: https://github.com/llvm/llvm-project/commit/c2d47a912f9bef427ff249f6e6ebfab89ac37902.

[clang] ab680c5 - Revert "[clang][NFC] Convert `Sema::PragmaMsStackAction` to scoped enum"

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T09:24:25+03:00 New Revision: ab680c55c724ba894269fb687464961a2066c17f URL: https://github.com/llvm/llvm-project/commit/ab680c55c724ba894269fb687464961a2066c17f DIFF: https://github.com/llvm/llvm-project/commit/ab680c55c724ba894269fb687464961a2066c17f.

[clang] 21444e3 - [clang][NFC] Convert `Sema::PragmaMsStackAction` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T09:21:17+03:00 New Revision: 21444e37ab3fa1a62e6113c85954e3f98ee48698 URL: https://github.com/llvm/llvm-project/commit/21444e37ab3fa1a62e6113c85954e3f98ee48698 DIFF: https://github.com/llvm/llvm-project/commit/21444e37ab3fa1a62e6113c85954e3f98ee48698.

[clang] 4f96ce4 - [clang][NFC] Convert `Sema::PragmaClangSectionAction` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T09:06:32+03:00 New Revision: 4f96ce414bcc35ec7e3d8bec18f6a4d7a4c4632a URL: https://github.com/llvm/llvm-project/commit/4f96ce414bcc35ec7e3d8bec18f6a4d7a4c4632a DIFF: https://github.com/llvm/llvm-project/commit/4f96ce414bcc35ec7e3d8bec18f6a4d7a4c4632a.

[clang] [lldb] [clang] Add `__ptrauth_restricted_intptr` qualifier (PR #137580)

2025-04-27 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/137580 >From 0129e28643f667febb23dba1521134a6151c2f7d Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Sun, 27 Apr 2025 22:33:44 -0700 Subject: [PATCH] [clang] Add `__ptrauth_restricted_intptr` qualifier __ptrauth_rest

[clang] b10296e - [clang][NFC] Convert `Sema::PragmaClangSectionKind` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:57:10+03:00 New Revision: b10296eff0c26497aac01b96d57a5dffacebec67 URL: https://github.com/llvm/llvm-project/commit/b10296eff0c26497aac01b96d57a5dffacebec67 DIFF: https://github.com/llvm/llvm-project/commit/b10296eff0c26497aac01b96d57a5dffacebec67.

[clang] 41112db - [clang][NFC] Remove old commented out code

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:50:14+03:00 New Revision: 41112db5a5a7806b27de9b6a460894b82036b41a URL: https://github.com/llvm/llvm-project/commit/41112db5a5a7806b27de9b6a460894b82036b41a DIFF: https://github.com/llvm/llvm-project/commit/41112db5a5a7806b27de9b6a460894b82036b41a.

[clang] ee29afe - [clang][NFC] Convert LookupResultKind to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:42:02+03:00 New Revision: ee29afe1e56d911f2fde54f5de141f4c4a0a1feb URL: https://github.com/llvm/llvm-project/commit/ee29afe1e56d911f2fde54f5de141f4c4a0a1feb DIFF: https://github.com/llvm/llvm-project/commit/ee29afe1e56d911f2fde54f5de141f4c4a0a1feb.

[clang] [lldb] [clang] Add `__ptrauth_restricted_intptr` qualifier (PR #137580)

2025-04-27 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 cpp,c,h -- clang/test/CodeGen/ptrauth-restricted-intptr-qual

[clang] [lldb] [clang] Add `__ptrauth_restricted_intptr` qualifier (PR #137580)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Oliver Hunt (ojhunt) Changes __ptrauth_restricted_intptr provides a mechanism to apply pointer authentication to pointer sized integer types. --- Patch is 49.31 KiB, truncated to 20.00 KiB below, full v

[clang] [lldb] [clang] Add `__ptrauth_restricted_intptr` qualifier (PR #137580)

2025-04-27 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/137580 __ptrauth_restricted_intptr provides a mechanism to apply pointer authentication to pointer sized integer types. >From 7af378bbec4c7cf3896f6f7bc95d816e398930f2 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: S

[clang] [llvm] [RISCV] Add Andes XAndesperf (Andes Performance) extension. (PR #135110)

2025-04-27 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/135110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f3a61f6 - [clang][NFC] Convert `LookupResult::AmbiguityKind` to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:22:57+03:00 New Revision: f3a61f61eef53ecc0b59d14c52396df4f47ee5e8 URL: https://github.com/llvm/llvm-project/commit/f3a61f61eef53ecc0b59d14c52396df4f47ee5e8 DIFF: https://github.com/llvm/llvm-project/commit/f3a61f61eef53ecc0b59d14c52396df4f47ee5e8.

[clang-tools-extra] [clangd] Add container field to remote index Refs grpc method (PR #71605)

2025-04-27 Thread Thomas Du Plessis via cfe-commits
tdupes wrote: done https://github.com/llvm/llvm-project/pull/71605 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add container field to remote index Refs grpc method (PR #71605)

2025-04-27 Thread Thomas Du Plessis via cfe-commits
https://github.com/tdupes updated https://github.com/llvm/llvm-project/pull/71605 >From 66fe31636d68c7200515a5d3a9e60d20334b60dd Mon Sep 17 00:00:00 2001 From: dup Date: Fri, 3 Nov 2023 09:03:24 -0700 Subject: [PATCH] Add container field to remote index Refs grpc method --- clang-tools-extra/

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/9242 Here is the relevant piece o

[clang] 98eeedd - [clang][NFC] Convert `NumLVComputationKindBits` to a constant

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:09:41+03:00 New Revision: 98eeedd4a100600dd91cda14e0096483403c408b URL: https://github.com/llvm/llvm-project/commit/98eeedd4a100600dd91cda14e0096483403c408b DIFF: https://github.com/llvm/llvm-project/commit/98eeedd4a100600dd91cda14e0096483403c408b.

[clang] a764358 - [clang][NFC] Convert DeclUpdateKind to scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T08:05:46+03:00 New Revision: a764358a9d86e9169bea895c8efbb61cc37ec788 URL: https://github.com/llvm/llvm-project/commit/a764358a9d86e9169bea895c8efbb61cc37ec788 DIFF: https://github.com/llvm/llvm-project/commit/a764358a9d86e9169bea895c8efbb61cc37ec788.

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16764 Here is the relevant piece of the

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

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

[clang] 268f0d4 - [ASTMatchers] Simplify isDefaultedHelper (NFC) (#137571)

2025-04-27 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-27T21:50:45-07:00 New Revision: 268f0d4ebe47d73c361f8f2bce051d58994a33bc URL: https://github.com/llvm/llvm-project/commit/268f0d4ebe47d73c361f8f2bce051d58994a33bc DIFF: https://github.com/llvm/llvm-project/commit/268f0d4ebe47d73c361f8f2bce051d58994a33bc.diff L

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-27 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/137577 >From ce33e11aedf297e9cfb5e20efb4ce316886e6cb1 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 27 Apr 2025 21:18:03 -0700 Subject: [PATCH] [clang-format] Add OneLineFormatOffRegex option Close #54334 --- cla

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Close #54334 --- Full diff: https://github.com/llvm/llvm-project/pull/137577.diff 7 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions.rst (+22) - (modified) clang/docs/ReleaseNotes.rst (+1

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-27 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/137577 Close #54334 >From e505e4e1ca2457db2aba34e50b1eeaf9e8458020 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 27 Apr 2025 21:18:03 -0700 Subject: [PATCH] [clang-format] Add OneLineFormatOffRegex option Close #

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

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

[clang] 55651e7 - [clang] Use range constructors of *Set (NFC) (#137574)

2025-04-27 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-27T21:17:14-07:00 New Revision: 55651e743b413af8787aa526de63d8c26c4a718b URL: https://github.com/llvm/llvm-project/commit/55651e743b413af8787aa526de63d8c26c4a718b DIFF: https://github.com/llvm/llvm-project/commit/55651e743b413af8787aa526de63d8c26c4a718b.diff L

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/137571 >From 1f4e0a2f61f75c45aea2651dff2f08d1a60d4526 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Apr 2025 19:44:12 -0700 Subject: [PATCH 1/2] [ASTMatchers] Simplify isDefaultedHelper (NFC) We can

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

2025-04-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/137574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Jakub Kuderski via cfe-commits
@@ -871,14 +871,11 @@ IteratorT matchesFirstInPointerRange(const MatcherT &Matcher, IteratorT Start, return End; } -template ::value> - * = nullptr> -inline bool isDefaultedHelper(const T *) { +template inline bool isDefaultedHelper(const T *FD) {

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/137571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 096c20c - [clang][NFC] Convert enums in TypeLocBuilder into constants

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T06:57:16+03:00 New Revision: 096c20c0b1284ccf3d3af106a026450403bc288f URL: https://github.com/llvm/llvm-project/commit/096c20c0b1284ccf3d3af106a026450403bc288f DIFF: https://github.com/llvm/llvm-project/commit/096c20c0b1284ccf3d3af106a026450403bc288f.

[clang] ed95624 - [clang][NFC] Convert `StmtDiscardKind` to a scoped enum

2025-04-27 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-04-28T06:54:00+03:00 New Revision: ed95624e208e5bf7c3eeadfccee0fb6060a4ca98 URL: https://github.com/llvm/llvm-project/commit/ed95624e208e5bf7c3eeadfccee0fb6060a4ca98 DIFF: https://github.com/llvm/llvm-project/commit/ed95624e208e5bf7c3eeadfccee0fb6060a4ca98.

[clang-tools-extra] [clang-tidy] Improve integer comparison by matching valid expressions outside implicitCastExpr (PR #134188)

2025-04-27 Thread Congcong Cai via cfe-commits
@@ -52,8 +54,17 @@ intCastExpression(bool IsSigned, const auto StaticCastExpr = cxxStaticCastExpr(has(ImplicitCastExpr)); const auto FunctionalCastExpr = cxxFunctionalCastExpr(has(ImplicitCastExpr)); + // Match function calls or variable references not directly wrapped by

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/16865 Her

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

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

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137574.diff 5 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp (+1-1) - (modified) clang/

[clang] [clang] Use range constructors of *Set (NFC) (PR #137574)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137574 None >From b26fb883437b6822cfab50189d1fe96cb3ca330f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 13 Apr 2025 17:34:57 -0700 Subject: [PATCH] [clang] Use range constructors of *Set (NFC) --- ..

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread via cfe-commits
github-actions[bot] wrote: @halbi2 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,

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt closed https://github.com/llvm/llvm-project/pull/137474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix and test triviality of __ptrauth types (PR #137474)

2025-04-27 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Thanks! https://github.com/llvm/llvm-project/pull/137474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c215318 - [clang] Fix and test triviality of __ptrauth types (#137474)

2025-04-27 Thread via cfe-commits
Author: halbi2 Date: 2025-04-27T20:07:49-07:00 New Revision: c21531895a5d5e6ffc349d6e229d71dd1463860a URL: https://github.com/llvm/llvm-project/commit/c21531895a5d5e6ffc349d6e229d71dd1463860a DIFF: https://github.com/llvm/llvm-project/commit/c21531895a5d5e6ffc349d6e229d71dd1463860a.diff LOG: [

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes We can use "constexpt if" to combine the two variants of functions. --- Full diff: https://github.com/llvm/llvm-project/pull/137571.diff 1 Files Affected: - (modified) clang/include/clang/ASTMatcher

[clang] [ASTMatchers] Simplify isDefaultedHelper (NFC) (PR #137571)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137571 We can use "constexpt if" to combine the two variants of functions. >From 1f4e0a2f61f75c45aea2651dff2f08d1a60d4526 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Apr 2025 19:44:12 -0700 Subjec

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-04-27 Thread Chuanqi Xu via cfe-commits
@@ -21,17 +21,6 @@ using namespace clang; namespace { class TemplateArgumentHasher { - // If we bail out during the process of calculating hash values for - // template arguments for any reason. We're allowed to do it since - // TemplateArgumentHasher are only required to g

[clang] a129ca7 - [Analysis] Remove has_arg_iterator_range (NFC) (#137568)

2025-04-27 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-27T19:09:30-07:00 New Revision: a129ca7f178e5cb26735f4ceb82f0c92ea43ca1b URL: https://github.com/llvm/llvm-project/commit/a129ca7f178e5cb26735f4ceb82f0c92ea43ca1b DIFF: https://github.com/llvm/llvm-project/commit/a129ca7f178e5cb26735f4ceb82f0c92ea43ca1b.diff L

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

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

[clang-tools-extra] [clang-tidy] Improve integer comparison by matching valid expressions outside implicitCastExpr (PR #134188)

2025-04-27 Thread David Rivera via cfe-commits
RiverDave wrote: Ping https://github.com/llvm/llvm-project/pull/134188 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid diagnosing std::array initializations for modernize-use-designated-initializers (PR #134774)

2025-04-27 Thread David Rivera via cfe-commits
RiverDave wrote: Ping @carlosgalvezp :) https://github.com/llvm/llvm-project/pull/134774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Andes XAndesperf (Andes Performance) extension. (PR #135110)

2025-04-27 Thread Jim Lin via cfe-commits
tclin914 wrote: Kindly ping. https://github.com/llvm/llvm-project/pull/135110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/137568 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) Changes The last use was removed by: commit f8afb8fdedae04ad2670857c97925c439d47d862 Author: Aaron Puchert Date: Fri Apr 29 22:12:21 2022 +0200 --- Full diff: https://

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes The last use was removed by: commit f8afb8fdedae04ad2670857c97925c439d47d862 Author: Aaron Puchert Date: Fri Apr 29 22:12:21 2022 +0200 --- Full diff: https://github.co

[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137568 The last use was removed by: commit f8afb8fdedae04ad2670857c97925c439d47d862 Author: Aaron Puchert Date: Fri Apr 29 22:12:21 2022 +0200 >From dc12390ff2cb857ce68fd75c5e0c1e2536c1ef67 Mon Sep 17

[clang] [ASTMatchers] Use llvm::is_detected (NFC) (PR #137560)

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

[clang] ed3c870 - [ASTMatchers] Use llvm::is_detected (NFC) (#137560)

2025-04-27 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-27T17:56:26-07:00 New Revision: ed3c8702a2582d4a8bbd9a292f6a191c0a656775 URL: https://github.com/llvm/llvm-project/commit/ed3c8702a2582d4a8bbd9a292f6a191c0a656775 DIFF: https://github.com/llvm/llvm-project/commit/ed3c8702a2582d4a8bbd9a292f6a191c0a656775.diff L

[clang-tools-extra] [clangd] Store documentation when indexing standard library (PR #133681)

2025-04-27 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Addressed review comments https://github.com/llvm/llvm-project/pull/133681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Store documentation when indexing standard library (PR #133681)

2025-04-27 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/133681 >From aab6aef62b7691290f02b0dd29b0071f428502c9 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Mon, 31 Mar 2025 02:25:45 -0400 Subject: [PATCH] [clangd] Store documentation when indexing standard librar

[clang] Support ptr to ptr and union in webkit member checker (PR #137566)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137566.diff 5 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMemberChecker.cpp (+67-61) - (modifi

[clang] Support ptr to ptr and union in webkit member checker (PR #137566)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/137566 None >From a04f65339530bea920c80dc1b2b0f3c9bab488c3 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 20 Apr 2025 18:38:31 -0700 Subject: [PATCH 1/2] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker con

[clang] [ASTMatchers] Use llvm::is_detected (NFC) (PR #137560)

2025-04-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/137560 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Support ptr to ptr and union in webkit member checker (PR #137565)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/137565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consistent with other checkers (PR #137559)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/137559 >From 9d6c807a5d7b853876132be0668357f6945978af Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 20 Apr 2025 18:38:31 -0700 Subject: [PATCH 1/2] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consisten

[clang] Support ptr to ptr and union in webkit member checker (PR #137565)

2025-04-27 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 cpp -- clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMem

[clang] Support ptr to ptr and union in webkit member checker (PR #137565)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137565.diff 5 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMemberChecker.cpp (+67-61) - (modifi

[clang] Support ptr to ptr and union in webkit member checker (PR #137565)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/137565 None >From 9d6c807a5d7b853876132be0668357f6945978af Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 20 Apr 2025 18:38:31 -0700 Subject: [PATCH 1/2] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker con

[clang] [ASTMatchers] Use llvm::is_detected (NFC) (PR #137560)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137560.diff 2 Files Affected: - (modified) clang/include/clang/ASTMatchers/ASTMatchersInternal.h (+5-13) - (modified) clang/unittests/ASTMat

[clang] [ASTMatchers] Use llvm::is_detected (NFC) (PR #137560)

2025-04-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137560 None >From 11261a022f2720eb3e368fd88981cb6b1c82c223 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Apr 2025 14:53:36 -0700 Subject: [PATCH] [ASTMatchers] Use llvm::is_detected (NFC) --- .../c

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. (PR #137556)

2025-04-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16754 Here is the relevant piece of the

[clang] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consistent with other checkers (PR #137559)

2025-04-27 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 cpp -- clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMem

[clang] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consistent with other checkers (PR #137559)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes Refactor RawPtrRefMemberChecker so that each subclass override isUnsafePtr like other WebKit checkers instead of overriding isPtrCompatible. --- Full diff: https://github.com/llvm/llvm-projec

[clang] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consistent with other checkers (PR #137559)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes Refactor RawPtrRefMemberChecker so that each subclass override isUnsafePtr like other WebKit checkers instead of overriding isPtrCompatible. --- Full diff: https://github.com/llvm/llvm-project/pull/137559.diff

[clang] [RawPtrRefMemberChecker] Make RawPtrRefMemberChecker consistent with other checkers (PR #137559)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/137559 Refactor RawPtrRefMemberChecker so that each subclass override isUnsafePtr like other WebKit checkers instead of overriding isPtrCompatible. >From 9d6c807a5d7b853876132be0668357f6945978af Mon Sep 17 00:00:00 2001

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. (PR #137556)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/137556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 992e928 - [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. (#137556)

2025-04-27 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-04-27T15:45:03-07:00 New Revision: 992e92864142ef3e3313b7cbc11d5724ded414a7 URL: https://github.com/llvm/llvm-project/commit/992e92864142ef3e3313b7cbc11d5724ded414a7 DIFF: https://github.com/llvm/llvm-project/commit/992e92864142ef3e3313b7cbc11d5724ded414a7.diff

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Oops, fixing the assertion failure in https://github.com/llvm/llvm-project/pull/137556. https://github.com/llvm/llvm-project/pull/135329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. (PR #137556)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/137556.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp (+2-1) ``

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. (PR #137556)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/137556 None >From 46d5c45c4c7a6abe0255aa31e2c7435d7f3e8289 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sun, 27 Apr 2025 15:16:40 -0700 Subject: [PATCH] [alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -2074,6 +2087,7 @@ class AnnotatingParser { if (ctx.ContextType == Context::StructArrayInitializer) return LT_ArrayOfStructInitializer; +markTokenAsTemplateArgumentInLine(); HazardyKnusperkeks wrote: I think you want this before the prece

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -186,6 +186,9 @@ class AnnotatedLine { bool MightBeFunctionDecl; bool IsMultiVariableDeclStmt; + /// \c True if this token is part o a template declaration. + bool InTemplateDecl = false; HazardyKnusperkeks wrote: A leftover? https://github.com/llvm

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -444,6 +444,66 @@ TEST_F(FormatTestComments, UnderstandsBlockComments) { " int jjj; /*b*/"); } +TEST_F(FormatTestComments, HazardyKnusperkeks wrote: What's your reason for this test? You didn't change anything comment related, right?

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -1259,6 +1259,45 @@ struct FormatStyle { /// \version 3.7 BinPackParametersStyle BinPackParameters; + /// If ``BinPackParameters`` is set to ``AlwaysOnePerLine``, specifies whether HazardyKnusperkeks wrote: Add a reference on `BinPackParameters` to t

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -5326,6 +5365,8 @@ struct FormatStyle { BinPackArguments == R.BinPackArguments && BinPackLongBracedList == R.BinPackLongBracedList && BinPackParameters == R.BinPackParameters && + ApplyAlwaysOnePerLineToTemplateArguments ==

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -9024,6 +9024,55 @@ TEST_F(FormatTest, FormatsDeclarationBreakAlways) { BreakAlways); } +TEST_F(FormatTest, ApplyAlwaysOnePerLineToTemplateArguments) { + FormatStyle Style = getGoogleStyle(); HazardyKnusperkeks wrote: Why google style? https://gith

[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

2025-04-27 Thread Björn Schäpers via cfe-commits
@@ -1259,6 +1259,45 @@ struct FormatStyle { /// \version 3.7 BinPackParametersStyle BinPackParameters; + /// If ``BinPackParameters`` is set to ``AlwaysOnePerLine``, specifies whether + /// template argument lists should also be split across multiple lines. + /// + //

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 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` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/23727

[clang-tools-extra] [clangd] textDocument/documentLink to support include statements with macro argument (PR #137550)

2025-04-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: frayien (frayien) Changes See issue https://github.com/clangd/clangd/issues/2375 The clangd textDocument/documentLink request does not support include statements with macro argument and fails by returning an invalid range. This PR adds

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 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` at step 7 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/4242 Here is the re

[clang-tools-extra] [clangd] textDocument/documentLink to support include statements with macro argument (PR #137550)

2025-04-27 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-tools-extra] [clangd] textDocument/documentLink to support include statements with macro argument (PR #137550)

2025-04-27 Thread via cfe-commits
https://github.com/frayien created https://github.com/llvm/llvm-project/pull/137550 See issue https://github.com/clangd/clangd/issues/2375 The clangd textDocument/documentLink request does not support include statements with macro argument and fails by returning an invalid range. This PR adds

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/135329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 16e5c3d - [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (#135329)

2025-04-27 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-04-27T14:24:32-07:00 New Revision: 16e5c3ddadaa8d25698a71c0308b1d0ca887d11f URL: https://github.com/llvm/llvm-project/commit/16e5c3ddadaa8d25698a71c0308b1d0ca887d11f DIFF: https://github.com/llvm/llvm-project/commit/16e5c3ddadaa8d25698a71c0308b1d0ca887d11f.diff

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-27 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/135329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

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

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-27 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > > Then secondly, LLVM only allows "squash and merge" merging of PRs - so all > > these nicely split changes (with individual explanations soon, I'd hope!) > > would end up all mushed together. So unfortunately, to preserve the info > > about each of them, they'd need to be fi

  1   2   >