mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 14:54:30 +02:00
bind1st/bind2nd common name workaround
[SVN r18859]
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// boost mpl/aux_/config/preprocessor.hpp header file
|
||||
// See http://www.boost.org for updates, documentation, and revision history.
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Copyright (c) 2000-02
|
||||
|
||||
#ifndef BOOST_MPL_AUX_CONFIG_PREPROCESSOR_HPP_INCLUDED
|
||||
#define BOOST_MPL_AUX_CONFIG_PREPROCESSOR_HPP_INCLUDED
|
||||
|
||||
// + file: boost/mpl/aux_/config/preprocessor.hpp
|
||||
// + last modified: 23/jun/03
|
||||
|
||||
// Copyright (c) 2000-03
|
||||
// Aleksey Gurtovoy
|
||||
//
|
||||
// Permission to use, copy, modify, distribute and sell this software
|
||||
@@ -13,16 +15,19 @@
|
||||
// supporting documentation. No representations are made about the
|
||||
// suitability of this software for any purpose. It is provided "as is"
|
||||
// without express or implied warranty.
|
||||
//
|
||||
// See http://www.boost.org/libs/mpl for documentation.
|
||||
|
||||
#ifndef BOOST_MPL_AUX_CONFIG_PREPROCESSOR_HPP_INCLUDED
|
||||
#define BOOST_MPL_AUX_CONFIG_PREPROCESSOR_HPP_INCLUDED
|
||||
#include "boost/mpl/aux_/config/workaround.hpp"
|
||||
|
||||
#include "boost/config.hpp"
|
||||
#if !defined( BOOST_MPL_PREPROCESSING_MODE ) \
|
||||
&& ( BOOST_WORKAROUND( __MWERKS__, BOOST_TESTED_AT(0x3003) ) \
|
||||
|| BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x561) ) \
|
||||
|| BOOST_WORKAROUND( __IBMCPP__, BOOST_TESTED_AT(502) ) \
|
||||
)
|
||||
|
||||
#if defined(__MWERKS__) && (__MWERKS__ <= 0x3003 || !defined(BOOST_STRICT_CONFIG)) \
|
||||
|| defined(__BORLANDC__) && (__BORLANDC__ <= 0x561 || !defined(BOOST_STRICT_CONFIG)) \
|
||||
|| defined(__IBMCPP__) && (__IBMCPP__ <= 502 || !defined(BOOST_STRICT_CONFIG))
|
||||
# define BOOST_MPL_BROKEN_PP_MACRO_EXPANSION
|
||||
|
||||
#endif
|
||||
|
||||
//#define BOOST_MPL_NO_OWN_PP_PRIMITIVES
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -16,7 +19,6 @@ struct resolve_bind_arg
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
@@ -51,7 +53,6 @@ struct resolve_bind_arg< bind2nd<F,T>,U1,U2,U3,U4,U5 >
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -35,7 +38,6 @@ struct replace_unnamed_arg< arg<-1>,Arg >
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
@@ -70,7 +72,6 @@ struct resolve_bind_arg< bind2nd<F,T>,U1,U2,U3,U4,U5 >
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -16,7 +19,6 @@ struct resolve_bind_arg
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
@@ -51,7 +53,6 @@ struct resolve_bind_arg< bind2nd<F,T>,U1,U2,U3,U4,U5 >
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -35,7 +38,6 @@ struct replace_unnamed_arg< arg<-1>,Arg >
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
@@ -70,7 +72,6 @@ struct resolve_bind_arg< bind2nd<F,T>,U1,U2,U3,U4,U5 >
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -357,6 +360,7 @@ struct resolve_bind_arg<
|
||||
BOOST_MPL_AUX_ARITY_SPEC(6, bind5)
|
||||
|
||||
// primary template (not a specialization!)
|
||||
|
||||
template<
|
||||
typename F, typename T1, typename T2, typename T3, typename T4
|
||||
, typename T5
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -454,6 +457,7 @@ struct resolve_bind_arg<
|
||||
BOOST_MPL_AUX_ARITY_SPEC(6, bind5)
|
||||
|
||||
// primary template (not a specialization!)
|
||||
|
||||
template<
|
||||
typename F, typename T1, typename T2, typename T3, typename T4
|
||||
, typename T5
|
||||
|
@@ -4,8 +4,10 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
namespace aux {
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
template< bool >
|
||||
struct resolve_arg_impl
|
||||
{
|
||||
@@ -45,12 +47,10 @@ struct resolve_bind_arg
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
namespace aux {
|
||||
|
||||
template< nttp_int arity_ > struct bind_impl_chooser;
|
||||
|
||||
aux::no_tag is_bind_helper(...);
|
||||
@@ -80,6 +80,7 @@ struct is_bind_template_impl<false>
|
||||
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
|
||||
sizeof(aux::yes_tag)
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -90,7 +91,6 @@ template< typename T > struct is_bind_template
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,8 +4,10 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
namespace aux {
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
template< bool >
|
||||
struct resolve_arg_impl
|
||||
{
|
||||
@@ -71,12 +73,10 @@ struct replace_unnamed_arg
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
namespace aux {
|
||||
|
||||
template< nttp_int arity_ > struct bind_impl_chooser;
|
||||
|
||||
aux::no_tag is_bind_helper(...);
|
||||
@@ -106,6 +106,7 @@ struct is_bind_template_impl<false>
|
||||
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
|
||||
sizeof(aux::yes_tag)
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -116,7 +117,6 @@ template< typename T > struct is_bind_template
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,8 +4,10 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
namespace aux {
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
template< bool >
|
||||
struct resolve_arg_impl
|
||||
{
|
||||
@@ -45,12 +47,10 @@ struct resolve_bind_arg
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
namespace aux {
|
||||
|
||||
template< int arity_ > struct bind_impl_chooser;
|
||||
|
||||
aux::no_tag is_bind_helper(...);
|
||||
@@ -80,6 +80,7 @@ struct is_bind_template_impl<false>
|
||||
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
|
||||
sizeof(aux::yes_tag)
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -90,7 +91,6 @@ template< typename T > struct is_bind_template
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,8 +4,10 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
namespace aux {
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
template< bool >
|
||||
struct resolve_arg_impl
|
||||
{
|
||||
@@ -71,12 +73,10 @@ struct replace_unnamed_arg
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
namespace aux {
|
||||
|
||||
template< int arity_ > struct bind_impl_chooser;
|
||||
|
||||
aux::no_tag is_bind_helper(...);
|
||||
@@ -106,6 +106,7 @@ struct is_bind_template_impl<false>
|
||||
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
|
||||
sizeof(aux::yes_tag)
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -116,7 +117,6 @@ template< typename T > struct is_bind_template
|
||||
};
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind1st)
|
||||
BOOST_MPL_AUX_ARITY_SPEC(2, bind2nd)
|
||||
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -357,6 +360,7 @@ struct resolve_bind_arg<
|
||||
BOOST_MPL_AUX_ARITY_SPEC(6, bind5)
|
||||
|
||||
// primary template (not a specialization!)
|
||||
|
||||
template<
|
||||
typename F, typename T1, typename T2, typename T3, typename T4
|
||||
, typename T5
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
@@ -454,6 +457,7 @@ struct resolve_bind_arg<
|
||||
BOOST_MPL_AUX_ARITY_SPEC(6, bind5)
|
||||
|
||||
// primary template (not a specialization!)
|
||||
|
||||
template<
|
||||
typename F, typename T1, typename T2, typename T3, typename T4
|
||||
, typename T5
|
||||
|
@@ -4,8 +4,10 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
namespace aux {
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
template< bool >
|
||||
struct resolve_arg_impl
|
||||
{
|
||||
@@ -56,7 +58,6 @@ template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
namespace aux {
|
||||
|
||||
template< int arity_ > struct bind_impl_chooser;
|
||||
|
||||
aux::no_tag is_bind_helper(...);
|
||||
@@ -92,6 +93,7 @@ struct is_bind_template_impl<false>
|
||||
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
|
||||
sizeof(aux::yes_tag)
|
||||
;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -440,6 +442,7 @@ struct bind_count_args
|
||||
+ is_bind_arg<T3>::value + is_bind_arg<T4>::value
|
||||
+ is_bind_arg<T5>::value
|
||||
;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -4,8 +4,10 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
namespace aux {
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
template< bool >
|
||||
struct resolve_arg_impl
|
||||
{
|
||||
@@ -82,7 +84,6 @@ template< typename F, typename T > struct bind1st;
|
||||
template< typename F, typename T > struct bind2nd;
|
||||
|
||||
namespace aux {
|
||||
|
||||
template< int arity_ > struct bind_impl_chooser;
|
||||
|
||||
aux::no_tag is_bind_helper(...);
|
||||
@@ -118,6 +119,7 @@ struct is_bind_template_impl<false>
|
||||
sizeof(aux::is_bind_helper(static_cast<T*>(0))) ==
|
||||
sizeof(aux::yes_tag)
|
||||
;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -544,6 +546,7 @@ struct bind_count_args
|
||||
+ is_bind_arg<T3>::value + is_bind_arg<T4>::value
|
||||
+ is_bind_arg<T5>::value
|
||||
;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
|
@@ -4,6 +4,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
namespace aux {
|
||||
|
||||
template<
|
||||
|
@@ -35,6 +35,7 @@
|
||||
# include "boost/mpl/aux_/arity_spec.hpp"
|
||||
# include "boost/mpl/aux_/type_wrapper.hpp"
|
||||
# include "boost/mpl/aux_/yes_no.hpp"
|
||||
# include "boost/mpl/aux_/common_name_wknd.hpp"
|
||||
# if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||
# include "boost/type_traits/is_reference.hpp"
|
||||
# endif
|
||||
@@ -71,6 +72,9 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind1st)
|
||||
BOOST_MPL_AUX_COMMON_NAME_WKND(bind2nd)
|
||||
|
||||
// local macros, #undef-ined at the end of the header
|
||||
# define AUX_APPLY(args) \
|
||||
BOOST_MPL_AUX_APPLY(BOOST_MPL_METAFUNCTION_MAX_ARITY, args) \
|
||||
@@ -366,6 +370,7 @@ struct bind
|
||||
#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
|
||||
// bind1st/bind2nd, lightweight, for simple cases/backward compatibility
|
||||
|
||||
template< typename F, typename T >
|
||||
struct bind1st
|
||||
{
|
||||
|
@@ -2,6 +2,10 @@
|
||||
|
||||
#include "boost/preprocessor/config/config.hpp"
|
||||
|
||||
#define BOOST_NO_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES
|
||||
#define BOOST_NO_TEMPLATE_TEMPLATES
|
||||
#define __BORLANDC__ 0x561
|
||||
#define BOOST_MPL_NO_BIND_TEMPLATE
|
||||
#define BOOST_NO_NON_TYPE_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
#define BOOST_NO_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES
|
||||
#define BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES
|
||||
#define BOOST_MPL_BROKEN_OVERLOAD_RESOLUTION
|
||||
#define BOOST_EXTENDED_TEMPLATE_PARAMETERS_MATCHING
|
||||
|
@@ -2,6 +2,9 @@
|
||||
|
||||
#include "boost/preprocessor/config/config.hpp"
|
||||
|
||||
#define BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES
|
||||
#define BOOST_NO_TEMPLATE_TEMPLATES
|
||||
#define __BORLANDC__ 0x551
|
||||
#define BOOST_MPL_NO_BIND_TEMPLATE
|
||||
#define BOOST_NO_NON_TYPE_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
#define BOOST_BROKEN_DEFAULT_TEMPLATE_PARAMETERS_IN_NESTED_TEMPLATES
|
||||
#define BOOST_MPL_BROKEN_OVERLOAD_RESOLUTION
|
||||
#define BOOST_EXTENDED_TEMPLATE_PARAMETERS_MATCHING
|
||||
|
@@ -6,3 +6,4 @@
|
||||
#define BOOST_NO_CV_VOID_SPECIALIZATIONS
|
||||
#define BOOST_NO_INTRINSIC_WCHAR_T
|
||||
#define BOOST_NO_STD_ALLOCATOR
|
||||
#define BOOST_MPL_NO_BIND_TEMPLATE
|
||||
|
@@ -2,3 +2,4 @@
|
||||
#define BOOST_MSVC 1300
|
||||
#define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
#define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
#define BOOST_MPL_NO_BIND_TEMPLATE
|
||||
|
@@ -159,6 +159,7 @@ class pretty:
|
||||
self.re_typedefs = re.compile(r'(\s*)((\s*typedef\s*.*?;)+)\s*$')
|
||||
self.re_closing_curly_brace = re.compile(r'^(}|struct\s+\w+);\s*$')
|
||||
self.re_namespace_scope_templ = re.compile(r'^template\s*<\s*$')
|
||||
self.re_namespace = re.compile(r'^\n?namespace\s+\w+\s*{\s*\n?$')
|
||||
|
||||
def process(self, line):
|
||||
|
||||
@@ -184,7 +185,10 @@ class pretty:
|
||||
# restoring some empty lines
|
||||
if self.re_templ_decl.match(line) and self.re_typedef.match(self.prev_line) \
|
||||
or not self.re_empty_line.match(line) and self.re_closing_curly_brace.match(self.prev_line) \
|
||||
or self.re_namespace_scope_templ.match(line) and not self.re_empty_line.match(self.prev_line):
|
||||
or not self.re_empty_line.match(self.prev_line) \
|
||||
and ( self.re_namespace_scope_templ.match(line) \
|
||||
or self.re_namespace.match(line) and not self.re_namespace.match(self.prev_line) \
|
||||
):
|
||||
line = '\n%s' % line
|
||||
|
||||
# removing excessive empty lines
|
||||
|
Reference in New Issue
Block a user