[clang] [diagtool] Make the BuiltinDiagnosticsByID table sorted (PR #120321)

2024-12-29 Thread via cfe-commits
@@ -23,28 +23,29 @@ llvm::ArrayRef diagtool::getBuiltinDiagnosticsByName() { return llvm::ArrayRef(BuiltinDiagnosticsByName); } - // FIXME: Is it worth having two tables, especially when this one can get // out of sync easily? +// clang-format off static const Diagnostic

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Owen Pan via cfe-commits
@@ -4504,6 +4504,16 @@ TEST_F(FormatTest, FormatsCompactNamespaces) { "} // namespace bb\n" "} // namespace aa", Style); + + verifyFormat("namespace a { namespace b { namespace c {\n" + "}}} // namespace a::b::

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Galen Elias via cfe-commits
https://github.com/galenelias updated https://github.com/llvm/llvm-project/pull/105597 >From 93eb3d89652607173f4f68fce7dcc5b2bd33f266 Mon Sep 17 00:00:00 2001 From: Galen Elias Date: Wed, 21 Aug 2024 16:33:42 -0700 Subject: [PATCH 01/16] clang-format: Add "AllowShortNamespacesOnASingleLine" op

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Galen Elias via cfe-commits
@@ -4504,6 +4504,16 @@ TEST_F(FormatTest, FormatsCompactNamespaces) { "} // namespace bb\n" "} // namespace aa", Style); + + verifyFormat("namespace a { namespace b { namespace c {\n" + "}}} // namespace a::b::

[clang] [clang-format] Add VariableTemplates option (PR #121318)

2024-12-29 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/121318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-29 Thread via cfe-commits
https://github.com/wonbinbk updated https://github.com/llvm/llvm-project/pull/120348 >From 062cecdcec24a807bd4bab5985a6ad339de3cfe6 Mon Sep 17 00:00:00 2001 From: wonbinbk Date: Wed, 18 Dec 2024 15:33:55 +1300 Subject: [PATCH 1/2] [clang-tidy] Add an option to exclude files not present in the

[clang] [clang-format] Add VariableTemplate option (PR #121318)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Owen Pan (owenca) Changes Closes #120148. --- Full diff: https://github.com/llvm/llvm-project/pull/121318.diff 9 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions.rst (+11-2) - (modified) clang/docs/ReleaseNotes.rst (+1)

[clang] [clang-format] Add VariableTemplate option (PR #121318)

2024-12-29 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/121318 Closes #120148. >From 8f61998f9a5339a9c1c04176bf3d74331532eb75 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 29 Dec 2024 20:17:46 -0800 Subject: [PATCH] [clang-format] Add VariableTemplate option Closes #1

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2024-12-29 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. LGTM, feel free to merge unless you prefer additional input from other maintainers. https://github.com/llvm/llvm-project/pull/121313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-29 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/104661 >From 9dfb68ddc02bb70b3c9ff9d5aeedabbc2feed258 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 17 Dec 2024 23:50:06 -0500 Subject: [PATCH] [Clang] Remove 3-element vector load and store special handling

[clang] 49331ab - [NFC][Clang] Auto generate check lines for `clang/test/CodeGenCXX/matrix-vector-bit-int.cpp`

2024-12-29 Thread Shilei Tian via cfe-commits
Author: Shilei Tian Date: 2024-12-29T22:28:14-05:00 New Revision: 49331ab0b9a41f925153fe03cd7e0d4a33b7c3d4 URL: https://github.com/llvm/llvm-project/commit/49331ab0b9a41f925153fe03cd7e0d4a33b7c3d4 DIFF: https://github.com/llvm/llvm-project/commit/49331ab0b9a41f925153fe03cd7e0d4a33b7c3d4.diff L

[clang-tools-extra] [clang-tidy] Mention std::forward_list in container-size-empty doc (PR #120701)

2024-12-29 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. https://github.com/llvm/llvm-project/pull/120701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][doc] mention smart ptr in bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField option (PR #121316)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/121316.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst (+4-2)

[clang-tools-extra] [clang-tidy][doc] mention smart ptr in bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField option (PR #121316)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/121316.diff 1 Files Affected: - (modified) clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-self-assignment.rst (+4-2) ```

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121246)

2024-12-29 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Resubmitted as https://github.com/llvm/llvm-project/pull/121313 in a user branch of this repo, so that I can stack dependent PRs on top of this. https://github.com/llvm/llvm-project/pull/121246 ___ cfe-commits mailing list cfe-co

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121246)

2024-12-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/121246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][doc] mention smart ptr in bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField option (PR #121316)

2024-12-29 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/121316 None >From 4cbe19c9acedd68dccc4f7211b1d2f8e93e1492c Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Mon, 30 Dec 2024 11:06:59 +0800 Subject: [PATCH] [clang-tidy][doc] mention smart ptr in bugprone-unhand

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/clangd/clangd/issues/2154 --- Full diff: https://github.com/llvm/llvm-project/pull/121313.diff 3 Files Affected: - (modified) clang-tools-extra/clangd/HeuristicResolver.h (

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2024-12-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 ready_for_review https://github.com/llvm/llvm-project/pull/121313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] bugprone-unhandled-self-assignment: fix smart pointer check against std::unique_ptr type (PR #121266)

2024-12-29 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/121266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121313)

2024-12-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/121313 Fixes https://github.com/clangd/clangd/issues/2154 >From 8238ad159c0b8123c03d953d18340147c72372e9 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sun, 6 Oct 2024 00:41:48 -0400 Subject: [PATCH] [clangd

[clang-tools-extra] [clang-tidy] bugprone-unhandled-self-assignment: fix smart pointer check against std::unique_ptr type (PR #121266)

2024-12-29 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/121266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-29 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/121057 >From 98d65a0b9a1189ce73d97d76527b458f93f17b43 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 24 Dec 2024 23:32:02 +0800 Subject: [PATCH 1/4] [clang-tidy] add depercation warning for non-whitelisted

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Owen Pan via cfe-commits
@@ -4504,6 +4504,16 @@ TEST_F(FormatTest, FormatsCompactNamespaces) { "} // namespace bb\n" "} // namespace aa", Style); + + verifyFormat("namespace a { namespace b { namespace c {\n" + "}}} // namespace a::b::

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Owen Pan via cfe-commits
https://github.com/owenca commented: Also, additional cleanup of `tryMergeNamespace()`: ```cpp if (Limit == 0) return 0; -if (I[1]->InPPDirective != (*I)->InPPDirective || -(I[1]->InPPDirective && I[1]->First->HasUnescapedNewline)) { + +assert(I[1]); +const auto &L

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Owen Pan via cfe-commits
@@ -916,6 +983,21 @@ class LineJoiner { return 1 + I[1]->Last->TotalLength + 1 + I[2]->Last->TotalLength <= Limit; } + bool nextNLinesFitInto(SmallVectorImpl::const_iterator I, + SmallVectorImpl::const_iterator E, + unsign

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Owen Pan via cfe-commits
@@ -4484,7 +4484,7 @@ TEST_F(FormatTest, FormatsCompactNamespaces) { "} // namespace A", Style); - Style.ColumnLimit = 40; + Style.ColumnLimit = 41; owenca wrote: ```suggestion Style.ColumnLimit = 40; ``` See below. https://

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-29 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/105597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcicli (Conditional Load Immediate) extension (PR #121292)

2024-12-29 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic updated https://github.com/llvm/llvm-project/pull/121292 >From 44b470c5798d5e160b1d3159a936b5e1737482b3 Mon Sep 17 00:00:00 2001 From: Sudharsan Veeravalli Date: Sun, 29 Dec 2024 18:28:52 +0530 Subject: [PATCH 1/2] [RISCV] Add Qualcomm uC Xqcicli (Conditional Load I

[clang-tools-extra] [clangd] Remove clangd's HasValue GMock matcher (PR #121309)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Nathan Ridge (HighCommander4) Changes An equivalent matcher under the name Optional has since been added upstream to GMock. Fixes https://github.com/llvm/llvm-project/issues/121308 --- Full diff: https://github.com/llvm/llvm-project/pul

[clang-tools-extra] [clangd] Remove clangd's HasValue GMock matcher (PR #121309)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nathan Ridge (HighCommander4) Changes An equivalent matcher under the name Optional has since been added upstream to GMock. Fixes https://github.com/llvm/llvm-project/issues/121308 --- Full diff: https://github.com/llvm/llvm-

[clang-tools-extra] [clangd] Remove clangd's HasValue GMock matcher (PR #121309)

2024-12-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/121309 An equivalent matcher under the name Optional has since been added upstream to GMock. Fixes https://github.com/llvm/llvm-project/issues/121308 >From 112d20354add8679fc62e66de4428c947b295e96 Mon Sep 17 0

[clang] [Clang][ASTMatcher] Add `dependentNameType` Matcher (PR #121263)

2024-12-29 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: @AmrDeveloper if you're not tired of these yet, I have one final one: https://github.com/llvm/llvm-project/issues/121307 https://github.com/llvm/llvm-project/pull/121263 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121246)

2024-12-29 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Updated to take advantage of the new `dependentNameType()` matcher added in https://github.com/llvm/llvm-project/pull/121263. https://github.com/llvm/llvm-project/pull/121246 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121246)

2024-12-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 updated https://github.com/llvm/llvm-project/pull/121246 >From 8238ad159c0b8123c03d953d18340147c72372e9 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sun, 6 Oct 2024 00:41:48 -0400 Subject: [PATCH] [clangd] Add a unit test suite for HeuristicResolver Fixes

[clang] [Clang][ASTMatcher] Add `dependentNameType` Matcher (PR #121263)

2024-12-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/121263 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6230f1b - [Clang][ASTMatcher] Add `dependentNameType` AST matcher (#121263)

2024-12-29 Thread via cfe-commits
Author: Amr Hesham Date: 2024-12-29T19:27:10-05:00 New Revision: 6230f1ba945a1bc795a34cd438c6df3b987f359f URL: https://github.com/llvm/llvm-project/commit/6230f1ba945a1bc795a34cd438c6df3b987f359f DIFF: https://github.com/llvm/llvm-project/commit/6230f1ba945a1bc795a34cd438c6df3b987f359f.diff LO

[clang] [Clang][ASTMatcher] Add `dependentNameType` Matcher (PR #121263)

2024-12-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/121263 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2024-12-29 Thread Baranov Victor via cfe-commits
vbvictor wrote: > 1. Consider TK_IgnoreUnlessSpelledInSource, may simplify matchers > 2. Name is too generic, consider: > > * bugprone-smartptr-reset-pointee-reset > * bugprone-smartptr-reset-call > * bugprone-smartptr-pointee-reset > * bugprone-smartptr-reset-ambiguous-call (my prefered) > > O

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2024-12-29 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,33 @@ +.. title:: clang-tidy - bugprone-reset-call + +bugprone-reset-call +=== + +Finds calls to ``reset()`` method on smart pointers where the pointee type vbvictor wrote: Done, also removed parentheses in ``reset`` to follow general s

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2024-12-29 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/121291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/121291 >From 37dce6a7ed0cca2e9819c24f4d176c43e3c9f2ac Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 29 Dec 2024 15:32:22 +0300 Subject: [PATCH 1/3] [clang-tidy] Add bugprone-reset-call check --- .../bugpr

[clang] [diagtool] Make the BuiltinDiagnosticsByID table sorted (PR #120321)

2024-12-29 Thread Karl-Johan Karlsson via cfe-commits
@@ -23,28 +23,29 @@ llvm::ArrayRef diagtool::getBuiltinDiagnosticsByName() { return llvm::ArrayRef(BuiltinDiagnosticsByName); } - // FIXME: Is it worth having two tables, especially when this one can get // out of sync easily? +// clang-format off static const Diagnostic

[clang] [diagtool] Make the BuiltinDiagnosticsByID table sorted (PR #120321)

2024-12-29 Thread Karl-Johan Karlsson via cfe-commits
@@ -23,28 +23,29 @@ llvm::ArrayRef diagtool::getBuiltinDiagnosticsByName() { return llvm::ArrayRef(BuiltinDiagnosticsByName); } - // FIXME: Is it worth having two tables, especially when this one can get // out of sync easily? +// clang-format off karka22

[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-29 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp commented: I believe we should document this deprecation in the Release Notes. https://github.com/llvm/llvm-project/pull/121057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-29 Thread Carlos Galvez via cfe-commits
@@ -62,16 +62,29 @@ ClangTidyCheck::OptionsView::get(StringRef LocalName) const { return std::nullopt; } +static const llvm::StringSet<> DeprecatedGlobalOptions{ +"StrictMode", +"IgnoreMacros", +}; + static ClangTidyOptions::OptionMap::const_iterator findPriorityO

[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-29 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > that it is kept for future deprecations (and would therefore need to be > general enough) Yes, that was my thought, some general-purpose mechanism for deprecation warnings, for example `--disable-deprecation-warnings`, `--no-deprecation-warnings`, etc. The use case I h

[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-29 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > that it is kept for future deprecations (and would therefore need to be > general enough) Yes, that was my thought, having a general-purpose mechanism for deprecation warnings (a bit what I mentioned in the RFC). Maybe something like `--no-deprecation-warnings` or `--i

[clang] [llvm] [OpenEmbedded] Fix include and lib paths for multilib targets (PR #121302)

2024-12-29 Thread Mike Crowe via cfe-commits
https://github.com/mikecrowe updated https://github.com/llvm/llvm-project/pull/121302 >From e376b821928b6de9f9ba45efad159341e2e242e6 Mon Sep 17 00:00:00 2001 From: Mike Crowe Date: Sun, 29 Dec 2024 17:25:20 + Subject: [PATCH] [OpenEmbedded] Fix include and lib paths for multilib targets Th

[clang] [llvm] [OpenEmbedded] Fix include and lib paths for multilib targets (PR #121302)

2024-12-29 Thread Mike Crowe via cfe-commits
mikecrowe wrote: This works, but I'm not sure that it's the best solution. I could teach `parseVendor` to match a prefix of `oeml` rather than hard-coding the two specific multilib types. https://github.com/llvm/llvm-project/pull/121302 ___ cfe-commi

[clang] [llvm] [OpenEmbedded] Fix include and lib paths for multilib targets (PR #121302)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mike Crowe (mikecrowe) Changes The fix in e9ddc44a604318739a27249d267aa7267d13d93b wasn't enough for multilib targets since they use a custom vendor that contains the multilib variant. There are two common multilib variants: lib32 and li

[clang] [llvm] [OpenEmbedded] Fix include and lib paths for multilib targets (PR #121302)

2024-12-29 Thread Mike Crowe via cfe-commits
https://github.com/mikecrowe created https://github.com/llvm/llvm-project/pull/121302 The fix in e9ddc44a604318739a27249d267aa7267d13d93b wasn't enough for multilib targets since they use a custom vendor that contains the multilib variant. There are two common multilib variants: lib32 and lib

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-12-29 Thread Denis Mikhailov via cfe-commits
denzor200 wrote: Suppose this check should be silent for a shared_ptr with `use_count() == 1`. Is it possible to change implementation in order to following this way? https://github.com/llvm/llvm-project/pull/67467 ___ cfe-commits mailing list cfe-com

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcicli (Conditional Load Immediate) extension (PR #121292)

2024-12-29 Thread Craig Topper via cfe-commits
@@ -243,6 +253,24 @@ let Predicates = [HasVendorXqcilsm, IsRV32], DecoderNamespace = "Xqcilsm" in { def QC_LWMI : QCILoadMultiple<0b01, uimm5nonzero, "qc.lwmi">; } // Predicates = [HasVendorXqcilsm, IsRV32], DecoderNamespace = "Xqcilsm" +let Predicates = [HasVendorXqcicli

[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

2024-12-29 Thread via cfe-commits
goldsteinn wrote: ping @ideasman42 https://github.com/llvm/llvm-project/pull/112792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL requested changes to this pull request. 1. Consider TK_IgnoreUnlessSpelledInSource, may simplify matchers 2. Name is too generic, consider: - bugprone-smartptr-reset-pointee-reset - bugprone-smartptr-reset-call - bugprone-smartptr-pointee-reset - bugprone-smartptr-

[clang-tools-extra] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 Thread via cfe-commits
@@ -0,0 +1,33 @@ +.. title:: clang-tidy - bugprone-reset-call + +bugprone-reset-call +=== + +Finds calls to ``reset()`` method on smart pointers where the pointee type EugeneZelenko wrote: Please make this statement same as statement in Release No

[clang-tools-extra] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/121291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Diagnose unexpanded packs for NTTP type constraints (PR #121296)

2024-12-29 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/121296 >From 102e031cae56c130f48f08bcb316b6f451facf49 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sun, 29 Dec 2024 23:13:52 +0800 Subject: [PATCH 1/2] [Clang] Diagnose unexpanded packs for NTTP type constraints

[clang] [Clang] Diagnose unexpanded packs for NTTP type constraints (PR #121296)

2024-12-29 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/121296 >From 102e031cae56c130f48f08bcb316b6f451facf49 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sun, 29 Dec 2024 23:13:52 +0800 Subject: [PATCH] [Clang] Diagnose unexpanded packs for NTTP type constraints ---

[clang] [Clang] Diagnose unexpanded packs for NTTP type constraints (PR #121296)

2024-12-29 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/121296 Otherwise, the invalid unexpanded type would be passed to getAutoType and lead to a crash. Fixes https://github.com/llvm/llvm-project/issues/88866 >From 102e031cae56c130f48f08bcb316b6f451facf49 Mon Sep 17 00:0

[clang] [llvm] [ARM] Save floating point registers and status registers with save_fp function attribute (PR #89654)

2024-12-29 Thread Benson Chu via cfe-commits
https://github.com/pestctrl updated https://github.com/llvm/llvm-project/pull/89654 >From a935c458c71fc8186f52d6eeea220ee142cf1d6d Mon Sep 17 00:00:00 2001 From: Jake Vossen Date: Wed, 30 Jun 2021 15:13:13 -0500 Subject: [PATCH 1/4] [ARM] Save floating point registers with save_fp function att

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #117437)

2024-12-29 Thread via cfe-commits
@@ -850,11 +854,17 @@ class alignas(void *) Stmt { LLVM_PREFERRED_TYPE(ExprBitfields) unsigned : NumExprBits; -/// Whether this CXXDefaultInitExprBitfields rewrote its argument and stores -/// a copy. +/// Whether this CXXDefaultInitExpr rewrote its argume

[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #117437)

2024-12-29 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/117437 >From f875a02ca829f173cb2753691556829a24b8a4aa Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 22 Nov 2024 21:06:58 +0800 Subject: [PATCH 1/2] [Analyzer][CFG] Correctly handle rebuilt default arg and defaul

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcicli (Conditional Load Immediate) extension (PR #121292)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mc @llvm/pr-subscribers-clang-driver Author: Sudharsan Veeravalli (svs-quic) Changes This extension adds 12 instructions that conditionally load an immediate value. The current spec can be found at: https://github.com/quic/riscv-unified-db/releases/late

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcicli (Conditional Load Immediate) extension (PR #121292)

2024-12-29 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic created https://github.com/llvm/llvm-project/pull/121292 This extension adds 12 instructions that conditionally load an immediate value. The current spec can be found at: https://github.com/quic/riscv-unified-db/releases/latest This patch adds assembler only support

[clang-tools-extra] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/121291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes Add new clang-tidy check that finds potentially erroneous calls to ``reset()`` method on smart pointers when the pointee type also has a ``reset()`` method. It's easy to make typo and delete o

[clang-tools-extra] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 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] [clang-tidy] Add bugprone-reset-call check (PR #121291)

2024-12-29 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/121291 Add new clang-tidy check that finds potentially erroneous calls to ``reset()`` method on smart pointers when the pointee type also has a ``reset()`` method. It's easy to make typo and delete object because the

[clang-tools-extra] b34ed25 - [clang-tidy][NFC] add link libs for bugprone module

2024-12-29 Thread Congcong Cai via cfe-commits
Author: Congcong Cai Date: 2024-12-29T19:51:55+08:00 New Revision: b34ed25dd5c74abcb46872cbaab34b91e27a0bda URL: https://github.com/llvm/llvm-project/commit/b34ed25dd5c74abcb46872cbaab34b91e27a0bda DIFF: https://github.com/llvm/llvm-project/commit/b34ed25dd5c74abcb46872cbaab34b91e27a0bda.diff

[clang-tools-extra] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `clang-tools-extra` at step 4 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/5688

[clang-tools-extra] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-win` running on `avx512-intel64-win` while building `clang-tools-extra` at step 4 "cmake stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/81/builds/3422 Here is the

[clang-tools-extra] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-29 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/120245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] e45e091 - [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (#120245)

2024-12-29 Thread via cfe-commits
Author: Congcong Cai Date: 2024-12-29T19:22:25+08:00 New Revision: e45e091b90896023584b303539bd8ae16d8932b3 URL: https://github.com/llvm/llvm-project/commit/e45e091b90896023584b303539bd8ae16d8932b3 DIFF: https://github.com/llvm/llvm-project/commit/e45e091b90896023584b303539bd8ae16d8932b3.diff

[clang] [Clang][ASTMatcher] Add `dependentNameType` Matcher (PR #121263)

2024-12-29 Thread Amr Hesham via cfe-commits
@@ -2536,6 +2536,15 @@ Node Matchers matches "decltype(i + j)" +MatcherStmt>dependentNameTypeMatcherDependentNameType>... AmrDev

[clang] [Clang][ASTMatcher] Add `dependentNameType` Matcher (PR #121263)

2024-12-29 Thread Amr Hesham via cfe-commits
@@ -1912,6 +1912,21 @@ TEST_P(ASTMatchersTest, DeducedTemplateSpecializationType) { deducedTemplateSpecializationType())); } +TEST_P(ASTMatchersTest, DependentNameType) { + if (!GetParam().isCXX()) { +// FIXME: Add a test for `dependentNameType()` that does

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-29 Thread via cfe-commits
wonbinbk wrote: Rebased. https://github.com/llvm/llvm-project/pull/120348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add an option to exclude files not present in the compile database (PR #120348)

2024-12-29 Thread via cfe-commits
https://github.com/wonbinbk updated https://github.com/llvm/llvm-project/pull/120348 >From 062cecdcec24a807bd4bab5985a6ad339de3cfe6 Mon Sep 17 00:00:00 2001 From: wonbinbk Date: Wed, 18 Dec 2024 15:33:55 +1300 Subject: [PATCH 1/2] [clang-tidy] Add an option to exclude files not present in the

[clang] [Clang][ASTMatcher] Add `dependentNameType` Matcher (PR #121263)

2024-12-29 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/121263 >From bdbd11db849506c4d99036dd674f03d1eda815cc Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 28 Dec 2024 13:23:33 +0100 Subject: [PATCH 1/3] [Clang][ASTMatcher] Add `dependentNameType` Matcher ---

[clang] [Clang][Sema] Expose static inline functions from GMF (PR #104701)

2024-12-29 Thread Jan Kokemüller via cfe-commits
@@ -6926,11 +6926,26 @@ void Sema::AddOverloadCandidate( /// have linkage. So that all entities of the same should share one /// linkage. But in clang, different entities of the same could have /// different linkage. -NamedDecl *ND = Function; -if (auto *Spe

[clang] [Clang][Sema] Expose static inline functions from GMF (PR #104701)

2024-12-29 Thread Jan Kokemüller via cfe-commits
https://github.com/jiixyj updated https://github.com/llvm/llvm-project/pull/104701 From feaf6512fc6323ad0c3d5082c06e610504f0a527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kokem=C3=BCller?= Date: Sun, 18 Aug 2024 13:45:43 +0200 Subject: [PATCH 1/5] Expose static inline function from GMF Th