mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-09 14:08:08 -05:00
* Add initial clang tidy / clang format config files * Clang format the entire codebase ``` find ./src -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./include -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./Web -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./dev -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none find ./wrappers -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none ``` * Add a .cmake-format file and reformat CmakeLists.txt with it https://github.com/cheshirekow/cmake_format * Add a clang-format workflow only runs on PRs, only on touched files
21 lines
626 B
C++
21 lines
626 B
C++
/**
|
|
* This file contains some basic methods to generate
|
|
* objects that can be used in the test routines.
|
|
* This makes the tests themselves much more readable
|
|
* and assures that the objects used for testing are the
|
|
* same in all places.
|
|
*/
|
|
#include "IncompressibleFluid.h"
|
|
#include "Eigen/Core"
|
|
#include "MatrixMath.h"
|
|
|
|
#if defined ENABLE_CATCH
|
|
namespace CoolPropTesting {
|
|
|
|
Eigen::MatrixXd makeMatrix(const std::vector<double>& coefficients);
|
|
//CoolProp::IncompressibleFluid incompressibleFluidObject();
|
|
//IncompressibleBackend incompressibleBackendObject();
|
|
|
|
} // namespace CoolPropTesting
|
|
#endif // ENABLE_CATCH
|