Closed jrobcary closed 2 weeks ago
--no-verify
Hi @jrobcary ,
You can also turn off the check by deleting .git/hook/pre-commit
and .git/hook/pre-commit.legacy
.
I think the issue is from our own pre-commit hook to pre-commit package.
The package will turns the old one to pre-commit.legacy (still active) to keep the original pre-commit step, which leads this issue.
From your commit message, is "using T = T;" in the nested structure disallowed in your side?
The diff that allows me to build is
diff --git a/core/test/matrix/csr_builder.cpp b/core/test/matrix/csr_builder.cpp
index 69e0c9632..1b9fd906d 100644
--- a/core/test/matrix/csr_builder.cpp
+++ b/core/test/matrix/csr_builder.cpp
@@ -59,7 +59,9 @@ TYPED_TEST(CsrBuilder, UpdatesSrowOnDestruction)
using value_type = typename TestFixture::value_type;
using index_type = typename TestFixture::index_type;
struct mock_strategy : public Mtx::strategy_type {
+#if !defined(__clang__) && !defined(__GNUC__)
using Mtx = Mtx;
+#endif
virtual void process(const gko::array<index_type>&,
gko::array<index_type>*) override
{
I chose the ifdef to minimize impact, as I assumed this was working with all compilers besides the one I am using.
This is relative to the clang_cl branch of the main (upstream) repo.
I see. I have added in that branch
#if defined(_MSC_VER) && defined(__clang__)
...
which should only trigger this workaround in clang_cl in windows
At
ie, my own fork. When I try to commit I get
I did configure (in another directory) with -DGINKGO_DEVEL_TOOLS=ON.
How can I turn off this check for my own fork?