QA: Tweak boost print helper macro
By making the caller use the "namespace" keyword, the formatter is given the right indentation hints. Also makes it clearer synatactically. One day, this will be a namespace alias (needs GCC 7).
This commit is contained in:
parent
c52ff1ca23
commit
593b7cd6a1
|
@ -223,7 +223,7 @@ inline SHAPE_POLY_SET FilletPolySet( SHAPE_POLY_SET& aPolySet, int aRadius, int
|
||||||
|
|
||||||
} // namespace GEOM_TEST
|
} // namespace GEOM_TEST
|
||||||
|
|
||||||
BOOST_TEST_PRINT_NAMESPACE_OPEN
|
namespace BOOST_TEST_PRINT_NAMESPACE_OPEN
|
||||||
{
|
{
|
||||||
template <>
|
template <>
|
||||||
struct print_log_value<SHAPE_LINE_CHAIN>
|
struct print_log_value<SHAPE_LINE_CHAIN>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include <template_fieldnames.h>
|
#include <template_fieldnames.h>
|
||||||
|
|
||||||
|
|
||||||
BOOST_TEST_PRINT_NAMESPACE_OPEN
|
namespace BOOST_TEST_PRINT_NAMESPACE_OPEN
|
||||||
{
|
{
|
||||||
template <>
|
template <>
|
||||||
struct print_log_value<LIB_FIELD>
|
struct print_log_value<LIB_FIELD>
|
||||||
|
|
|
@ -224,7 +224,7 @@ inline bool SexprConvertsToString( const SEXPR::SEXPR& aSexpr, const std::string
|
||||||
|
|
||||||
} // namespace KI_TEST
|
} // namespace KI_TEST
|
||||||
|
|
||||||
BOOST_TEST_PRINT_NAMESPACE_OPEN
|
namespace BOOST_TEST_PRINT_NAMESPACE_OPEN
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
*/
|
*/
|
||||||
#if BOOST_VERSION >= 105900
|
#if BOOST_VERSION >= 105900
|
||||||
#define BOOST_TEST_PRINT_NAMESPACE_OPEN \
|
#define BOOST_TEST_PRINT_NAMESPACE_OPEN \
|
||||||
namespace boost \
|
boost \
|
||||||
{ \
|
{ \
|
||||||
namespace test_tools \
|
namespace test_tools \
|
||||||
{ \
|
{ \
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
#define BOOST_TEST_PRINT_NAMESPACE_CLOSE }}
|
#define BOOST_TEST_PRINT_NAMESPACE_CLOSE }}
|
||||||
#else
|
#else
|
||||||
#define BOOST_TEST_PRINT_NAMESPACE_OPEN \
|
#define BOOST_TEST_PRINT_NAMESPACE_OPEN \
|
||||||
namespace boost \
|
boost \
|
||||||
{ \
|
{ \
|
||||||
namespace test_tools
|
namespace test_tools
|
||||||
#define BOOST_TEST_PRINT_NAMESPACE_CLOSE }
|
#define BOOST_TEST_PRINT_NAMESPACE_CLOSE }
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
*/
|
*/
|
||||||
#if BOOST_VERSION < 106400
|
#if BOOST_VERSION < 106400
|
||||||
|
|
||||||
BOOST_TEST_PRINT_NAMESPACE_OPEN
|
namespace BOOST_TEST_PRINT_NAMESPACE_OPEN
|
||||||
{
|
{
|
||||||
template <>
|
template <>
|
||||||
struct print_log_value<std::nullptr_t>
|
struct print_log_value<std::nullptr_t>
|
||||||
|
@ -134,7 +134,7 @@ BOOST_TEST_PRINT_NAMESPACE_CLOSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
BOOST_TEST_PRINT_NAMESPACE_OPEN
|
namespace BOOST_TEST_PRINT_NAMESPACE_OPEN
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include <unit_test_utils/unit_test_utils.h>
|
#include <unit_test_utils/unit_test_utils.h>
|
||||||
|
|
||||||
BOOST_TEST_PRINT_NAMESPACE_OPEN
|
namespace BOOST_TEST_PRINT_NAMESPACE_OPEN
|
||||||
{
|
{
|
||||||
|
|
||||||
void print_log_value<wxPoint>::operator()( std::ostream& os, wxPoint const& aPt )
|
void print_log_value<wxPoint>::operator()( std::ostream& os, wxPoint const& aPt )
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
|
||||||
BOOST_TEST_PRINT_NAMESPACE_OPEN
|
namespace BOOST_TEST_PRINT_NAMESPACE_OPEN
|
||||||
{
|
{
|
||||||
template <>
|
template <>
|
||||||
struct print_log_value<DOUBLET>
|
struct print_log_value<DOUBLET>
|
||||||
|
|
Loading…
Reference in New Issue