Adding clang-format configuration file and formatting all source files
Co-authored-by: Jules Pénuchot <jules@penuchot.com> Co-authored-by: Joel FALCOU <jfalcou@codereckons.com> See merge request oss/rotgen!41
This commit is contained in:
parent
e92e824a18
commit
648dd768ee
94 changed files with 6778 additions and 4722 deletions
|
|
@ -15,40 +15,41 @@
|
|||
|
||||
namespace rotgen::tests
|
||||
{
|
||||
template<auto N> struct constant { static constexpr auto value = N; };
|
||||
template<auto N> struct constant
|
||||
{
|
||||
static constexpr auto value = N;
|
||||
};
|
||||
|
||||
using scalar = tts::types<float,double>;
|
||||
using order = tts::types<constant<ColMajor>,constant<RowMajor>>;
|
||||
using scalar = tts::types<float, double>;
|
||||
using order = tts::types<constant<ColMajor>, constant<RowMajor>>;
|
||||
|
||||
using types = tts::types< tts::types<float ,constant<ColMajor>>
|
||||
, tts::types<double,constant<ColMajor>>
|
||||
, tts::types<float ,constant<RowMajor>>
|
||||
, tts::types<double,constant<RowMajor>>
|
||||
>;
|
||||
using types = tts::types<tts::types<float, constant<ColMajor>>,
|
||||
tts::types<double, constant<ColMajor>>,
|
||||
tts::types<float, constant<RowMajor>>,
|
||||
tts::types<double, constant<RowMajor>>>;
|
||||
}
|
||||
|
||||
#include <iostream>
|
||||
|
||||
template<typename T>
|
||||
constexpr bool verify_rotgen_reentrance(T const&)
|
||||
template<typename T> constexpr bool verify_rotgen_reentrance(T const&)
|
||||
{
|
||||
if constexpr(rotgen::use_expression_templates) return true;
|
||||
else return rotgen::concepts::entity<T>;
|
||||
if constexpr (rotgen::use_expression_templates) return true;
|
||||
else return rotgen::concepts::entity<T>;
|
||||
}
|
||||
|
||||
int main(int argc, char const **argv)
|
||||
int main(int argc, char const** argv)
|
||||
{
|
||||
::tts::initialize(argc,argv);
|
||||
::tts::initialize(argc, argv);
|
||||
#ifdef NDEBUG
|
||||
constexpr auto assert_status = "Disabled";
|
||||
#else
|
||||
constexpr auto assert_status = "Enabled";
|
||||
#endif
|
||||
|
||||
std::cout << "[ROTGEN] - Assertions: " << assert_status << std::endl;
|
||||
std::cout << "[ROTGEN] - Assertions: " << assert_status << std::endl;
|
||||
|
||||
rotgen::setup_summary(std::cout);
|
||||
|
||||
rotgen_main(argc, argv);
|
||||
return tts::report(0,0);
|
||||
}
|
||||
return tts::report(0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue