From 6979a8b1f88290be2d069ec39c88bc51cd9fe8f2 Mon Sep 17 00:00:00 2001 From: Luthaf Date: Tue, 23 Apr 2024 11:33:15 +0200 Subject: [PATCH] Disable astyle for metatensor code It has an extremely hard time handling C++17 code, including using lambda inside function calls (in torch::from_blob) and using initialization lists constructors --- src/metatensor/metatensor.cpp | 2 +- src/metatensor/vesin.h | 1 + src/metatensor/vesin_single_build.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/metatensor/metatensor.cpp b/src/metatensor/metatensor.cpp index e8fed3d509..b59b943343 100644 --- a/src/metatensor/metatensor.cpp +++ b/src/metatensor/metatensor.cpp @@ -64,7 +64,7 @@ the following: */ //+ENDPLUMEDOC - +/*INDENT-OFF*/ #if !defined(__PLUMED_HAS_LIBTORCH) || !defined(__PLUMED_HAS_METATENSOR) namespace PLMD { namespace metatensor { diff --git a/src/metatensor/vesin.h b/src/metatensor/vesin.h index e1456693ac..336d332005 100644 --- a/src/metatensor/vesin.h +++ b/src/metatensor/vesin.h @@ -1,3 +1,4 @@ +/*INDENT-OFF*/ #ifndef VESIN_H #define VESIN_H diff --git a/src/metatensor/vesin_single_build.cpp b/src/metatensor/vesin_single_build.cpp index 3821b30e98..ae9c7a0981 100644 --- a/src/metatensor/vesin_single_build.cpp +++ b/src/metatensor/vesin_single_build.cpp @@ -1,3 +1,4 @@ +/*INDENT-OFF*/ #include #include #include