From deb448e3c37bc85b1759d3f0b129d60391818b43 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 12 Jun 2024 18:17:38 +0000 Subject: [PATCH] Committing clang-format changes --- include/pluginplay/module/facade_module.hpp | 2 +- include/pluginplay/module/lambda_module.hpp | 6 +++--- include/pluginplay/module/macros.hpp | 16 ++++++++++++++++ include/pluginplay/property_type/field_tuple.hpp | 2 +- include/pluginplay/submodule_request.hpp | 2 +- src/pluginplay/module_manager.cpp | 2 +- src/python/export_pluginplay.hpp | 1 - .../pluginplay/module/lambda_module.cpp | 2 +- .../pluginplay/module/module_class.cpp | 4 ++-- 9 files changed, 26 insertions(+), 11 deletions(-) diff --git a/include/pluginplay/module/facade_module.hpp b/include/pluginplay/module/facade_module.hpp index dda727e0..2bacc381 100644 --- a/include/pluginplay/module/facade_module.hpp +++ b/include/pluginplay/module/facade_module.hpp @@ -15,8 +15,8 @@ */ #pragma once -#include "pluginplay/module/module_class.hpp" #include "pluginplay/module/module_base.hpp" +#include "pluginplay/module/module_class.hpp" #include "pluginplay/types.hpp" #include diff --git a/include/pluginplay/module/lambda_module.hpp b/include/pluginplay/module/lambda_module.hpp index 9736273b..116226e9 100644 --- a/include/pluginplay/module/lambda_module.hpp +++ b/include/pluginplay/module/lambda_module.hpp @@ -96,10 +96,10 @@ class LambdaModule : public ModuleBase { template explicit LambdaModule(FxnType&& fxn); - LambdaModule(const LambdaModule&) = delete; - LambdaModule(LambdaModule&&) = delete; + LambdaModule(const LambdaModule&) = delete; + LambdaModule(LambdaModule&&) = delete; LambdaModule& operator=(const LambdaModule&) = delete; - LambdaModule& operator=(LambdaModule&&) = delete; + LambdaModule& operator=(LambdaModule&&) = delete; /** @brief Implements the `run_as` function for the `Module` class. * diff --git a/include/pluginplay/module/macros.hpp b/include/pluginplay/module/macros.hpp index 907c3cb9..8c542c0d 100644 --- a/include/pluginplay/module/macros.hpp +++ b/include/pluginplay/module/macros.hpp @@ -1,3 +1,19 @@ +/* + * Copyright 2024 NWChemEx-Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/pluginplay/property_type/field_tuple.hpp b/include/pluginplay/property_type/field_tuple.hpp index bb727415..122fc500 100644 --- a/include/pluginplay/property_type/field_tuple.hpp +++ b/include/pluginplay/property_type/field_tuple.hpp @@ -15,8 +15,8 @@ */ #pragma once -#include #include +#include #include namespace pluginplay { diff --git a/include/pluginplay/submodule_request.hpp b/include/pluginplay/submodule_request.hpp index d26628e6..7f445d80 100644 --- a/include/pluginplay/submodule_request.hpp +++ b/include/pluginplay/submodule_request.hpp @@ -15,9 +15,9 @@ */ #pragma once +#include #include #include -#include #include namespace pluginplay { diff --git a/src/pluginplay/module_manager.cpp b/src/pluginplay/module_manager.cpp index 1fcb494a..c3de5447 100644 --- a/src/pluginplay/module_manager.cpp +++ b/src/pluginplay/module_manager.cpp @@ -32,7 +32,7 @@ ModuleManager::ModuleManager() : pimpl_(std::make_unique()) {} ModuleManager::ModuleManager(runtime_ptr runtime) : pimpl_(std::make_unique(runtime)) {} -ModuleManager::ModuleManager(ModuleManager&& rhs) noexcept = default; +ModuleManager::ModuleManager(ModuleManager&& rhs) noexcept = default; ModuleManager& ModuleManager::operator=(ModuleManager&& rhs) noexcept = default; ModuleManager::~ModuleManager() noexcept = default; diff --git a/src/python/export_pluginplay.hpp b/src/python/export_pluginplay.hpp index a44db474..b7852d35 100644 --- a/src/python/export_pluginplay.hpp +++ b/src/python/export_pluginplay.hpp @@ -37,7 +37,6 @@ using py_class_type = pybind11::class_; // -- Declarations of exports for top-level classes // ----------------------------------------------------------------------------- - void export_module_manager(py_module_reference m); void export_submodule_request(py_module_reference m); void export_printing(py_module_reference m); diff --git a/tests/cxx/unit_tests/pluginplay/module/lambda_module.cpp b/tests/cxx/unit_tests/pluginplay/module/lambda_module.cpp index 9e3c6650..c90ef0ac 100644 --- a/tests/cxx/unit_tests/pluginplay/module/lambda_module.cpp +++ b/tests/cxx/unit_tests/pluginplay/module/lambda_module.cpp @@ -15,8 +15,8 @@ */ #include "../test_common.hpp" -#include #include +#include /* Testing strategy. * diff --git a/tests/cxx/unit_tests/pluginplay/module/module_class.cpp b/tests/cxx/unit_tests/pluginplay/module/module_class.cpp index edcbb6bf..c895d599 100644 --- a/tests/cxx/unit_tests/pluginplay/module/module_class.cpp +++ b/tests/cxx/unit_tests/pluginplay/module/module_class.cpp @@ -159,7 +159,7 @@ TEST_CASE("Module : ready") { TEST_CASE("Module : reset_cache") { auto mod_pimpl = make_module_pimpl_with_cache(); auto mod = pluginplay::Module( - std::make_unique(mod_pimpl)); + std::make_unique(mod_pimpl)); auto in = mod.inputs(); in.at("Option 1").change(1); @@ -175,7 +175,7 @@ TEST_CASE("Module : reset_cache") { TEST_CASE("Module : reset_internal_cache") { auto mod_base_ptr = std::make_shared(); auto mod = pluginplay::Module( - std::make_unique(mod_base_ptr)); + std::make_unique(mod_base_ptr)); pluginplay::cache::ModuleManagerCache mm_cache; auto cache = mm_cache.get_or_make_user_cache("foo");