forked from Alepha/Alepha
Apply the newer namespace rules and layout/formatting.
This commit is contained in:
@ -9,11 +9,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
namespace Alepha::Hydrogen
|
||||
{
|
||||
inline namespace exports { inline namespace AutoRAII_m {} }
|
||||
|
||||
namespace detail::AutoRAII_m
|
||||
namespace Alepha::Hydrogen ::detail:: AutoRAII_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -79,8 +75,7 @@ namespace Alepha::Hydrogen
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::AutoRAII_m
|
||||
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,11 +4,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Alepha.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Meta
|
||||
{
|
||||
inline namespace exports { inline namespace dependent_value {} }
|
||||
|
||||
namespace detail::dependent_value
|
||||
namespace Alepha::Hydrogen::Meta ::detail:: dep_value_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -17,8 +13,7 @@ namespace Alepha::Hydrogen::Meta
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::dependent_value
|
||||
namespace Alepha::Hydrogen::Meta::inline exports::inline dep_value_m
|
||||
{
|
||||
using namespace detail::dependent_value::exports;
|
||||
}
|
||||
using namespace detail::dep_value_m::exports;
|
||||
}
|
||||
|
11
Meta/find.h
11
Meta/find.h
@ -9,11 +9,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <Alepha/Meta/Container/vector.h>
|
||||
#include <Alepha/Meta/functional.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Meta
|
||||
{
|
||||
inline namespace exports { inline namespace find_algos {} }
|
||||
|
||||
namespace detail::find_algos
|
||||
namespace Alepha::Hydrogen::Meta ::detail:: find_algo_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -37,8 +33,7 @@ namespace Alepha::Hydrogen::Meta
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::find_algos
|
||||
namespace Alepha::Hydrogen::Meta::inline exports::inline find_algo_m
|
||||
{
|
||||
using namespace detail::find_algos::exports;
|
||||
}
|
||||
using namespace detail::find_algo_m::exports;
|
||||
}
|
||||
|
@ -6,11 +6,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Alepha.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Meta
|
||||
{
|
||||
inline namespace exports { inline namespace functional {} }
|
||||
|
||||
namespace detail::functional
|
||||
namespace Alepha::Hydrogen::Meta ::detail:: functional_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -49,8 +45,7 @@ namespace Alepha::Hydrogen::Meta
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::functional
|
||||
namespace Alepha::Hydrogen::Meta::inline exports::inline functional_m
|
||||
{
|
||||
using namespace detail::functional::exports;
|
||||
}
|
||||
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,11 +16,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <Alepha/Meta/overload.h>
|
||||
#include <Alepha/Meta/type_value.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Reflection
|
||||
{
|
||||
inline namespace exports { inline namespace aggregate_members {} }
|
||||
|
||||
namespace detail::aggregate_members
|
||||
namespace Alepha::Hydrogen::Reflection ::detail:: aggregate_members_m
|
||||
{
|
||||
inline namespace exports {}
|
||||
|
||||
@ -184,8 +180,7 @@ namespace Alepha::Hydrogen::Reflection
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::aggregate_members
|
||||
namespace Alepha::Hydrogen::Reflection::inline exports::inline aggregate_members_m
|
||||
{
|
||||
using namespace detail::aggregate_members::exports;
|
||||
}
|
||||
using namespace detail::aggregate_members_m::exports;
|
||||
}
|
||||
|
@ -11,11 +11,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
#include <Alepha/Reflection/detail/config.h>
|
||||
#include <Alepha/Reflection/aggregate_members.h>
|
||||
|
||||
namespace Alepha::Hydrogen::Reflection
|
||||
{
|
||||
inline namespace exports { inline namespace tuplize_aggregate {} }
|
||||
|
||||
namespace detail::tuplize_aggregate
|
||||
namespace Alepha::Hydrogen::Reflection ::detail:: tuplizeAggregate_m
|
||||
{
|
||||
inline namespace exports {}
|
||||
|
||||
@ -200,8 +196,7 @@ namespace Alepha::Hydrogen::Reflection
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::tuplize_aggregate
|
||||
namespace Alepha::Hydrogen::Reflection::inline exports::inline tuplizeAggregate_m
|
||||
{
|
||||
using namespace detail::tuplize_aggregate::exports;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
<
|
||||
|
9
types.h
9
types.h
@ -4,11 +4,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Alepha.h>
|
||||
|
||||
namespace Alepha::Hydrogen
|
||||
{
|
||||
inline namespace exports { inline namespace types_m {} }
|
||||
|
||||
namespace detail::types_m
|
||||
namespace Alepha::Hydrogen ::detail:: types_m
|
||||
{
|
||||
inline namespace exports
|
||||
{
|
||||
@ -17,8 +13,7 @@ namespace Alepha::Hydrogen
|
||||
}
|
||||
}
|
||||
|
||||
namespace exports::types_m
|
||||
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