forked from Alepha/Alepha
Apply the newer namespace rules and layout/formatting.
This commit is contained in:
@ -10,7 +10,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace Alepha::Hydrogen::Algorithm::detail::string_distance_m
|
||||
namespace Alepha::Hydrogen::Algorithm ::detail:: string_distance_m
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
17
AutoRAII.h
17
AutoRAII.h
@ -9,12 +9,8 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
namespace Alepha::Hydrogen
|
||||
namespace Alepha::Hydrogen ::detail:: AutoRAII_m
|
||||
{
|
||||
inline namespace exports { inline namespace AutoRAII_m {} }
|
||||
|
||||
namespace detail::AutoRAII_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
template< typename T, typename Dtor= std::function< void ( T ) > >
|
||||
@ -77,10 +73,9 @@ namespace Alepha::Hydrogen
|
||||
template< typename Ctor, typename Dtor >
|
||||
explicit AutoRAII( Ctor ctor, Dtor ) -> AutoRAII< decltype( ctor() ), Dtor >;
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::AutoRAII_m
|
||||
{
|
||||
using namespace detail::AutoRAII_m::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::inline exports::inline AutoRAII_m
|
||||
{
|
||||
using namespace detail::AutoRAII_m::exports;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ namespace Alepha::Hydrogen ::detail:: Console_m
|
||||
{
|
||||
using namespace std::literals::string_literals;
|
||||
|
||||
using namespace Utility::exports::evaluation_helpers;
|
||||
using namespace Utility::exports::evaluation_helpers_m;
|
||||
using Utility::StaticValue;
|
||||
|
||||
namespace C
|
||||
|
@ -12,7 +12,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include "Buffer.h"
|
||||
#include "Blob.h"
|
||||
|
||||
namespace Alepha::inline Cavorite ::detail:: data_chain
|
||||
namespace Alepha::inline Cavorite ::detail:: DataChain_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
|
@ -15,7 +15,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include "delimiters.h"
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: istreamable_module
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: IStreamable_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -57,7 +57,7 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: istreamable_module
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline istreamable_module
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline IStreamable_m
|
||||
{
|
||||
using namespace detail::istreamable_module::exports;
|
||||
using namespace detail::IStreamable_m::exports;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/IOStreams/delimiters.h>
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: ostreamable_module
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: OStreamable_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -54,8 +54,8 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: ostreamable_module
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline ostreamable_module
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline OStreamable_m
|
||||
{
|
||||
using namespace detail::ostreamable_module::exports;
|
||||
using namespace detail::OStreamable_m::exports;
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams::detail::stackable_streambuf
|
||||
namespace Alepha::Hydrogen::IOStreams::detail::StackableStreambuf_m
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <memory>
|
||||
#include <stack>
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: stackable_streambuf
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: StackableStreambuf_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -63,7 +63,7 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: stackable_streambuf
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline stackable_streambuf
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline StackableStreambuf_m
|
||||
{
|
||||
using namespace detail::stackable_streambuf::exports;
|
||||
using namespace detail::StackableStreambuf_m::exports;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Alepha.h>
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: stream_state
|
||||
namespace Alepha::Hydrogen::IOStreams ::detail:: StreamState_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -124,7 +124,7 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: stream_state
|
||||
};
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline stream_state
|
||||
namespace Alepha::Hydrogen::IOStreams::inline exports::inline StreamState_m
|
||||
{
|
||||
using namespace detail::stream_state::exports;
|
||||
using namespace detail::StreamState_m::exports;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
namespace
|
||||
{
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers_m;
|
||||
using namespace Alepha::Testing::literals;
|
||||
|
||||
using std::begin, std::end;
|
||||
|
@ -4,21 +4,16 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Alepha.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Meta
|
||||
namespace Alepha::Hydrogen::Meta ::detail:: dep_value_m
|
||||
{
|
||||
inline namespace exports { inline namespace dependent_value {} }
|
||||
|
||||
namespace detail::dependent_value
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
template< auto value, typename T >
|
||||
constexpr auto dep_value= value;
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::dependent_value
|
||||
{
|
||||
using namespace detail::dependent_value::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Meta::inline exports::inline dep_value_m
|
||||
{
|
||||
using namespace detail::dep_value_m::exports;
|
||||
}
|
||||
|
17
Meta/find.h
17
Meta/find.h
@ -9,12 +9,8 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <Alepha/Meta/Container/vector.h>
|
||||
#include <Alepha/Meta/functional.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Meta
|
||||
namespace Alepha::Hydrogen::Meta ::detail:: find_algo_m
|
||||
{
|
||||
inline namespace exports { inline namespace find_algos {} }
|
||||
|
||||
namespace detail::find_algos
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
template< typename Iter, typename Predicate >
|
||||
@ -35,10 +31,9 @@ namespace Alepha::Hydrogen::Meta
|
||||
return find_if( first, last, Meta::bind1st( std::equal_to{}, value ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::find_algos
|
||||
{
|
||||
using namespace detail::find_algos::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Meta::inline exports::inline find_algo_m
|
||||
{
|
||||
using namespace detail::find_algo_m::exports;
|
||||
}
|
||||
|
@ -6,12 +6,8 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Alepha.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Meta
|
||||
namespace Alepha::Hydrogen::Meta ::detail:: functional_m
|
||||
{
|
||||
inline namespace exports { inline namespace functional {} }
|
||||
|
||||
namespace detail::functional
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
template< typename MetaFunction, typename Arg >
|
||||
@ -47,10 +43,9 @@ namespace Alepha::Hydrogen::Meta
|
||||
{
|
||||
return binder1st< MetaFunction, Arg >{ func, arg };
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::functional
|
||||
{
|
||||
using namespace detail::functional::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Meta::inline exports::inline functional_m
|
||||
{
|
||||
using namespace detail::functional_m::exports;
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ namespace Alepha::Hydrogen ::detail:: ProgramOptions_m
|
||||
{
|
||||
inline namespace exports {}
|
||||
|
||||
using namespace Utility::exports::evaluation_helpers;
|
||||
using namespace Utility::exports::evaluation_helpers_m;
|
||||
|
||||
/*!
|
||||
* User created unique symbols can be bound to options to build classes of options.
|
||||
|
@ -16,12 +16,8 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <Alepha/Meta/overload.h>
|
||||
#include <Alepha/Meta/type_value.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Reflection
|
||||
namespace Alepha::Hydrogen::Reflection ::detail:: aggregate_members_m
|
||||
{
|
||||
inline namespace exports { inline namespace aggregate_members {} }
|
||||
|
||||
namespace detail::aggregate_members
|
||||
{
|
||||
inline namespace exports {}
|
||||
|
||||
using Meta::overload;
|
||||
@ -182,10 +178,9 @@ namespace Alepha::Hydrogen::Reflection
|
||||
template< typename T >
|
||||
struct aggregate_member_count : std::integral_constant< std::size_t, aggregate_member_count_v< T > > {};
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::aggregate_members
|
||||
{
|
||||
using namespace detail::aggregate_members::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Reflection::inline exports::inline aggregate_members_m
|
||||
{
|
||||
using namespace detail::aggregate_members_m::exports;
|
||||
}
|
||||
|
@ -11,12 +11,8 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <Alepha/Reflection/detail/config.h>
|
||||
#include <Alepha/Reflection/aggregate_members.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Reflection
|
||||
namespace Alepha::Hydrogen::Reflection ::detail:: tuplizeAggregate_m
|
||||
{
|
||||
inline namespace exports { inline namespace tuplize_aggregate {} }
|
||||
|
||||
namespace detail::tuplize_aggregate
|
||||
{
|
||||
inline namespace exports {}
|
||||
|
||||
template< typename T >
|
||||
@ -198,10 +194,9 @@ namespace Alepha::Hydrogen::Reflection
|
||||
template< typename Aggregate >
|
||||
using aggregate_tuple_t= decay_tuple_t< std::decay_t< decltype( tuplizeAggregate( std::declval< const Aggregate & >() ) ) > >;
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::tuplize_aggregate
|
||||
{
|
||||
using namespace detail::tuplize_aggregate::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Reflection::inline exports::inline tuplizeAggregate_m
|
||||
{
|
||||
using namespace detail::tuplizeAggregate_m::exports;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace
|
||||
static_assert( Alepha::Reflection::aggregate_empty_bases_v< instance3 > == 2 );
|
||||
auto t= "test"_test <=[]
|
||||
{
|
||||
using namespace Alepha::Reflection::detail::aggregate_members;
|
||||
using namespace Alepha::Reflection::detail::aggregate_members_m;
|
||||
std::cout << Alepha::Reflection::aggregate_empty_bases_v< instance3 > << std::endl;
|
||||
|
||||
static_assert( std::is_empty_v< empty1 > );
|
||||
|
@ -41,7 +41,7 @@ namespace Alepha::Hydrogen::Testing ::detail:: TableTest_m
|
||||
|
||||
namespace C:: inline Colors
|
||||
{
|
||||
using namespace testing_colors::C:: Colors;
|
||||
using namespace Testing::detail::colors_m::C:: Colors;
|
||||
}
|
||||
|
||||
enum class TestResult { Passed, Failed };
|
||||
@ -285,7 +285,7 @@ namespace Alepha::Hydrogen::Testing ::detail:: TableTest_m
|
||||
}
|
||||
|
||||
using std::begin, std::end;
|
||||
using namespace Utility::exports::evaluation_helpers;
|
||||
using namespace Utility::exports::evaluation_helpers_m;
|
||||
|
||||
template< template< typename, typename... > class Sequence, typename ... TupleArgs >
|
||||
auto
|
||||
|
@ -8,7 +8,7 @@ namespace
|
||||
{
|
||||
namespace UnitTest= Alepha::Testing::exports;
|
||||
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers_m;
|
||||
using namespace UnitTest::literals;
|
||||
using UnitTest::TableTest;
|
||||
|
||||
|
@ -14,7 +14,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
namespace
|
||||
{
|
||||
using namespace Alepha::Testing::exports;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers_m;
|
||||
|
||||
int
|
||||
add( int a, int b )
|
||||
|
@ -4,7 +4,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Console.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Testing ::detail:: testing_colors
|
||||
namespace Alepha::Hydrogen::Testing ::detail:: colors_m
|
||||
{
|
||||
namespace C
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include "test.h"
|
||||
|
||||
namespace Alepha::Hydrogen::Testing::detail::testing
|
||||
namespace Alepha::Hydrogen::Testing ::detail:: test_m
|
||||
{
|
||||
StaticValue< std::vector< std::tuple< std::string, bool, std::function< void() > > > > registry;
|
||||
|
||||
|
@ -23,9 +23,9 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
namespace Alepha::Hydrogen::Testing
|
||||
{
|
||||
inline namespace exports { inline namespace testing {} }
|
||||
inline namespace exports { inline namespace test_m {} }
|
||||
|
||||
namespace detail::testing
|
||||
namespace detail::test_m
|
||||
{
|
||||
inline namespace exports {}
|
||||
|
||||
@ -35,11 +35,11 @@ namespace Alepha::Hydrogen::Testing
|
||||
const bool debugTestRegistration= false or C::debug;
|
||||
const bool debugTestRun= false or C::debug;
|
||||
|
||||
using namespace testing_colors::C::Colors;
|
||||
using namespace detail::colors_m::C::Colors;
|
||||
}
|
||||
|
||||
using namespace std::literals::string_literals;
|
||||
using namespace Utility::exports::evaluation_helpers;
|
||||
using namespace Utility::exports::evaluation_helpers_m;
|
||||
using namespace Utility::exports::StaticValue_m;
|
||||
|
||||
struct TestName
|
||||
@ -167,13 +167,13 @@ namespace Alepha::Hydrogen::Testing
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::testing
|
||||
namespace exports::test_m
|
||||
{
|
||||
using namespace detail::testing::exports;
|
||||
using namespace detail::test_m::exports;
|
||||
}
|
||||
|
||||
namespace exports::inline literals::inline test_literals
|
||||
{
|
||||
using namespace detail::testing::exports::literals;
|
||||
using namespace detail::test_m::exports::literals;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include "error.h"
|
||||
|
||||
namespace Alepha::Hydrogen::detail::Thread_m
|
||||
namespace Alepha::Hydrogen ::detail:: Thread_m
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
||||
namespace Alepha::Hydrogen::Utility ::detail:: evaluation_helpers
|
||||
namespace Alepha::Hydrogen::Utility ::detail:: evaluation_helpers_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -165,7 +165,7 @@ namespace Alepha::Hydrogen::Utility ::detail:: evaluation_helpers
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::Utility::inline exports::inline evaluation_helpers
|
||||
namespace Alepha::Hydrogen::Utility::inline exports::inline evaluation_helpers_m
|
||||
{
|
||||
using namespace detail::evaluation_helpers::exports;
|
||||
using namespace detail::evaluation_helpers_m::exports;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <boost/core/demangle.hpp>
|
||||
|
||||
namespace Alepha::Hydrogen::Utility::detail::fancyTypeName_m
|
||||
namespace Alepha::Hydrogen::Utility ::detail:: fancyTypeName_m
|
||||
{
|
||||
std::string
|
||||
exports::fancyTypeName( const std::type_index idx )
|
||||
|
@ -9,7 +9,7 @@ namespace
|
||||
using namespace Alepha::literals::option_literals;
|
||||
using namespace std::literals::string_literals;
|
||||
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers_m;
|
||||
|
||||
int optionA= 42;
|
||||
std::optional< std::string > optionB;
|
||||
|
@ -8,7 +8,7 @@
|
||||
static auto init= Alepha::Utility::enroll <=[]
|
||||
{
|
||||
using namespace Alepha::Testing::exports;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers_m;
|
||||
|
||||
"A basic tuplization example"_test <=TableTest
|
||||
<
|
||||
|
17
types.h
17
types.h
@ -4,21 +4,16 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Alepha.h>
|
||||
|
||||
namespace Alepha::Hydrogen
|
||||
namespace Alepha::Hydrogen ::detail:: types_m
|
||||
{
|
||||
inline namespace exports { inline namespace types_m {} }
|
||||
|
||||
namespace detail::types_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
using argvec_t= const char *const [];
|
||||
using argcnt_t= int;
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::types_m
|
||||
{
|
||||
using namespace detail::types_m::exports;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Alepha::Hydrogen::inline exports::inline types_m
|
||||
{
|
||||
using namespace detail::types_m::exports;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ namespace Alepha::Hydrogen ::detail:: word_wrap_m
|
||||
{
|
||||
namespace
|
||||
{
|
||||
using namespace Utility::exports::evaluation_helpers;
|
||||
using namespace Utility::exports::evaluation_helpers_m;
|
||||
|
||||
// Returns the number of chars in the line just written to.
|
||||
std::size_t
|
||||
|
Reference in New Issue
Block a user