Rename .h file extension to .hpp, and fix some include orderings

This commit is contained in:
2024-12-11 01:12:27 +01:00
parent f2126f6c7c
commit fa38fa695b
51 changed files with 73 additions and 71 deletions

View File

@@ -15,7 +15,7 @@
#pragma once
#include <aocTests/TestContext.h>
#include <aocTests/TestContext.hpp>
class Part1TestContext
: public TestContext

View File

@@ -15,7 +15,7 @@
#pragma once
#include <aocTests/TestContext.h>
#include <aocTests/TestContext.hpp>
class Part2TestContext
: public TestContext

View File

@@ -18,7 +18,7 @@
#include <string>
#include <vector>
#include <aoc/Solver.h>
#include <aoc/Solver.hpp>
class TestContext
{

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aocTests/Part1TestContext.h>
#include <aocTests/Part1TestContext.hpp>
Part1TestContext::Part1TestContext(std::vector<std::string> inputPaths)
: TestContext{ inputPaths } {}

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aocTests/Part2TestContext.h>
#include <aocTests/Part2TestContext.hpp>
Part2TestContext::Part2TestContext(std::vector<std::string> inputPaths)
: TestContext{ inputPaths } {}

View File

@@ -15,12 +15,12 @@
#include <catch2/catch_test_macros.hpp>
#include <aoc/Solver.h>
#include <aoc/SolverEngine.h>
#include <aoc/HistorianHysteria.h>
#include <aoc/Solver.hpp>
#include <aoc/SolverEngine.hpp>
#include <aoc/HistorianHysteria.hpp>
#include <aocTests/Part1TestContext.h>
#include <aocTests/Part2TestContext.h>
#include <aocTests/Part1TestContext.hpp>
#include <aocTests/Part2TestContext.hpp>
#define REQUIRE_MESSAGE(cond, msg) if (!(cond)) { INFO(msg); REQUIRE(cond); }

View File

@@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <http://www.gnu.org/licenses/>.
#include <aocTests/TestContext.h>
#include <aocTests/TestContext.hpp>
TestContext::TestContext(std::vector<std::string> inputPaths)
: inputPaths_{ inputPaths } {}