Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78230 - in trunk: boost boost/local_function libs/local_function/test
From: lorcaminiti_at_[hidden]
Date: 2012-04-27 22:10:06


Author: lcaminiti
Date: 2012-04-27 22:10:05 EDT (Fri, 27 Apr 2012)
New Revision: 78230
URL: http://svn.boost.org/trac/boost/changeset/78230

Log:
Replaced all section name in lowercase and TPL_ID with ID_TPL.
Text files modified:
   trunk/boost/local_function.hpp | 58 ++++++++++++++++++++-------------------
   trunk/boost/local_function/config.hpp | 14 +++++----
   trunk/libs/local_function/test/same_line.cpp | 4 +-
   trunk/libs/local_function/test/same_line_seq.cpp | 4 +-
   4 files changed, 42 insertions(+), 38 deletions(-)

Modified: trunk/boost/local_function.hpp
==============================================================================
--- trunk/boost/local_function.hpp (original)
+++ trunk/boost/local_function.hpp 2012-04-27 22:10:05 EDT (Fri, 27 Apr 2012)
@@ -29,13 +29,13 @@
 # define BOOST_LOCAL_FUNCTION(declarations) \
         BOOST_LOCAL_FUNCTION_ID( \
                 BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER, declarations)
-# define BOOST_LOCAL_FUNCTION_TPL_ID(id, declarations) \
+# define BOOST_LOCAL_FUNCTION_ID_TPL(id, declarations) \
         BOOST_LOCAL_FUNCTION_AUX_DECL(id, 1 /* within template */, \
                 BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS( \
                         BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST( \
                                 declarations)))
 # define BOOST_LOCAL_FUNCTION_TPL(declarations) \
- BOOST_LOCAL_FUNCTION_TPL_ID( \
+ BOOST_LOCAL_FUNCTION_ID_TPL( \
                 BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER, declarations)
 #else // VARIADIC
 # define BOOST_LOCAL_FUNCTION_ID(id, ...) \
@@ -45,12 +45,12 @@
 # define BOOST_LOCAL_FUNCTION(...) \
         BOOST_LOCAL_FUNCTION_ID( \
                 BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER, __VA_ARGS__)
-# define BOOST_LOCAL_FUNCTION_TPL_ID(id, ...) \
+# define BOOST_LOCAL_FUNCTION_ID_TPL(id, ...) \
         BOOST_LOCAL_FUNCTION_AUX_DECL(id, 1 /* within template */, \
                 BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS( \
                         BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(__VA_ARGS__)))
 # define BOOST_LOCAL_FUNCTION_TPL(...) \
- BOOST_LOCAL_FUNCTION_TPL_ID( \
+ BOOST_LOCAL_FUNCTION_ID_TPL( \
                 BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER, __VA_ARGS__)
 #endif // VARIADIC
 
@@ -77,7 +77,8 @@
 This macro must be used within a declarative context, it must follow the local
 function result type, it must be followed by the local function body code, and
 then by the @RefMacro{BOOST_LOCAL_FUNCTION_NAME} macro (see the
-_at_RefSect{Tutorial} and @RefSectId{Advanced_Topics, Advanced Topics} sections):
+@RefSect{tutorial, Tutorial} and @RefSect{advanced_topics, Advanced Topics}
+sections):
 @code
 { // Some declarative context.
     ...
@@ -92,7 +93,7 @@
 macro and before the body code block <c>{ ... }</c> (but the exception
 specifications will only apply to the body code and not to the library code
 automatically generated by the macro expansion, see the
-_at_RefSectId{Advanced_Topics, Advanced Topics} section).
+@RefSect{advanced_topics, Advanced Topics} section).
 
 Within templates, the special macros @RefMacro{BOOST_LOCAL_FUNCTION_TPL}
 and @RefMacro{BOOST_LOCAL_FUNCTION_NAME_TPL} must be used.
@@ -165,9 +166,10 @@
 @Note Local functions are functors so they can be assigned to other functors
 like <c>boost::function</c> (see Boost.Function).
 
-_at_See @RefSect{Tutorial} section, @RefSectId{Advanced_Topics, Advanced Topics}
-section, @RefMacro{BOOST_LOCAL_FUNCTION_NAME},
-_at_RefMacro{BOOST_LOCAL_FUNCTION_TPL}, @RefMacro{BOOST_LOCAL_FUNCTION_NAME_TPL},
+@See @RefSect{tutorial, Tutorial} section,
+@RefSect{advanced_topics, Advanced Topics} section,
+@RefMacro{BOOST_LOCAL_FUNCTION_NAME}, @RefMacro{BOOST_LOCAL_FUNCTION_TPL},
+@RefMacro{BOOST_LOCAL_FUNCTION_NAME_TPL},
 @RefMacro{BOOST_LOCAL_FUNCTION_TYPEOF}, @RefMacro{BOOST_LOCAL_FUNCTION_ID},
 @RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX},
 @RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX},
@@ -198,7 +200,7 @@
 macro instead of @RefMacro{BOOST_LOCAL_FUNCTION_NAME}.
 
 This macro cannot be portably expanded multiple times on the same line.
-In these cases, use the @RefMacro{BOOST_LOCAL_FUNCTION_TPL_ID} macro instead.
+In these cases, use the @RefMacro{BOOST_LOCAL_FUNCTION_ID_TPL} macro instead.
 
 @Note C++03 does not allow to use <c>typename</c> outside templates.
 This library internally manipulates types, these operations require
@@ -206,8 +208,8 @@
 This macro is used to indicate to the library when the enclosing scope is a
 template so the library can correctly use <c>typename</c>.
 
-_at_See @RefSect{Tutorial} section, @RefMacro{BOOST_LOCAL_FUNCTION},
-_at_RefMacro{BOOST_LOCAL_FUNCTION_TPL_ID},
+@See @RefSect{tutorial, Tutorial} section, @RefMacro{BOOST_LOCAL_FUNCTION},
+@RefMacro{BOOST_LOCAL_FUNCTION_ID_TPL},
 @RefMacro{BOOST_LOCAL_FUNCTION_NAME_TPL}.
 */
 #define BOOST_LOCAL_FUNCTION_TPL(declarations)
@@ -218,7 +220,7 @@
 This macro is equivalent to @RefMacro{BOOST_LOCAL_FUNCTION} but it can be
 expanded multiple times on the same line if different identifiers <c>id</c> are
 provided for each expansion (see the
-_at_RefSectId{Advanced_Topics, Advanced Topics} section).
+@RefSect{advanced_topics, Advanced Topics} section).
 
 @Params
 @Param{id,
@@ -235,7 +237,7 @@
 of the multiple local function declarations as usual (and it will specify a
 unique name for each local function).
 
-Within templates, the special macros @RefMacro{BOOST_LOCAL_FUNCTION_TPL_ID}
+Within templates, the special macros @RefMacro{BOOST_LOCAL_FUNCTION_ID_TPL}
 must be used.
 
 @Note This macro can be useful when the local function macros are expanded
@@ -247,9 +249,9 @@
 can only portably use <c>__LINE__</c> to internally generate unique
 identifiers).
 
-_at_See @RefSectId{Advanced_Topics, Advanced Topics} section,
+@See @RefSect{advanced_topics, Advanced Topics} section,
 @RefMacro{BOOST_LOCAL_FUNCTION}, @RefMacro{BOOST_LOCAL_FUNCTION_NAME},
-_at_RefMacro{BOOST_LOCAL_FUNCTION_TPL_ID}.
+@RefMacro{BOOST_LOCAL_FUNCTION_ID_TPL}.
 */
 #define BOOST_LOCAL_FUNCTION_ID(id, declarations)
 
@@ -290,11 +292,11 @@
 can only portably use <c>__LINE__</c> to internally generate unique
 identifiers).
 
-_at_See @RefSectId{Advanced_Topics, Advanced Topics} section,
+@See @RefSect{advanced_topics, Advanced Topics} section,
 @RefMacro{BOOST_LOCAL_FUNCTION_TPL}, @RefMacro{BOOST_LOCAL_FUNCTION_NAME},
 @RefMacro{BOOST_LOCAL_FUNCTION_ID}.
 */
-#define BOOST_LOCAL_FUNCTION_TPL_ID(id, declarations)
+#define BOOST_LOCAL_FUNCTION_ID_TPL(id, declarations)
 
 /**
 @brief This macro is used to end a local function declaration specifying its
@@ -328,7 +330,7 @@
 @EndParams
 
 The local function name can be qualified by prefixing it with the keyword
-<c>inline</c> (see the @RefSectId{Advanced_Topics, Advanced Topics} section):
+<c>inline</c> (see the @RefSect{advanced_topics, Advanced Topics} section):
 @code
     BOOST_LOCAL_FUNCTION_NAME(inline local_function_name)
 @endcode
@@ -347,7 +349,7 @@
 
 The local function name can also be qualified by prefixing it with the
 "keyword" <c>recursive</c> (see the
-_at_RefSectId{Advanced_Topics, Advanced Topics} section):
+@RefSect{advanced_topics, Advanced Topics} section):
 @code
     BOOST_LOCAL_FUNCTION_NAME(recursive local_function_name)
 @endcode
@@ -367,10 +369,10 @@
 declared within the same enclosing scope (but <c>boost::overloaded_function</c>
 can be used to overload local functions, see
 Boost.Functional/OverloadedFunction and the
-_at_RefSectId{Advanced_Topics, Advanced Topics} section).
+@RefSect{advanced_topics, Advanced Topics} section).
 
-_at_See @RefSect{Tutorial} section,
-_at_RefSectId{Advanced_Topics, Advanced Topics} section,
+@See @RefSect{tutorial, Tutorial} section,
+@RefSect{advanced_topics, Advanced Topics} section,
 @RefMacro{BOOST_LOCAL_FUNCTION},
 @RefMacro{BOOST_LOCAL_FUNCTION_NAME_TPL}.
 */
@@ -404,8 +406,8 @@
 This macro is used to indicate to the library when the enclosing scope is a
 template so the library can correctly use <c>typename</c>.
 
-_at_See @RefSect{Tutorial} section, @RefMacro{BOOST_LOCAL_FUNCTION_NAME},
-_at_RefMacro{BOOST_LOCAL_FUNCTION_TPL}.
+@See @RefSect{tutorial, Tutorial} section,
+@RefMacro{BOOST_LOCAL_FUNCTION_NAME}, @RefMacro{BOOST_LOCAL_FUNCTION_TPL}.
 */
 #define BOOST_LOCAL_FUNCTION_NAME_TPL(name)
 
@@ -414,7 +416,7 @@
 
 This macro can be used within the local functions body to refer to the bound
 variable types so to declare local variables, check concepts (using
-Boost.ConceptCheck), etc (see the @RefSectId{Advanced_Topics, Advanced Topics}
+Boost.ConceptCheck), etc (see the @RefSect{advanced_topics, Advanced Topics}
 section).
 This way the local function can be programmed entirely without explicitly
 specifying the bound variable types thus facilitating maintenance (e.g., if
@@ -444,9 +446,9 @@
 
 @Note It is best to use this macro instead of Boost.Typeof so to reduce the
 number of times Boost.Typeof is used to deduce types (see the
-_at_RefSectId{Advanced_Topics, Advanced Topics} section).
+@RefSect{advanced_topics, Advanced Topics} section).
 
-_at_See @RefSectId{Advanced_Topics, Advanced Topics} section,
+@See @RefSect{advanced_topics, Advanced Topics} section,
 @RefMacro{BOOST_LOCAL_FUNCTION}.
 */
 #define BOOST_LOCAL_FUNCTION_TYPEOF(bound_variable_name)

Modified: trunk/boost/local_function/config.hpp
==============================================================================
--- trunk/boost/local_function/config.hpp (original)
+++ trunk/boost/local_function/config.hpp 2012-04-27 22:10:05 EDT (Fri, 27 Apr 2012)
@@ -49,8 +49,9 @@
 excluding bound variables (which are instead specified by
 @RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX}).
 
-_at_See @RefSect{Tutorial} section, @RefSectId{Getting_Started, Getting Started}
-section, @RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX}.
+@See @RefSect{tutorial, Tutorial} section,
+@RefSect{getting_started, Getting Started} section,
+@RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX}.
 */
 #define BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX
 
@@ -65,8 +66,9 @@
 local function parameters (which are instead specified by
 @RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX}).
 
-_at_See @RefSect{Tutorial} section, @RefSectId{Getting_Started, Getting Started}
-section, @RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX}.
+@See @RefSect{tutorial, Tutorial} section,
+@RefSect{getting_started, Getting Started} section,
+@RefMacro{BOOST_LOCAL_FUNCTION_CONFIG_ARITY_MAX}.
 */
 #define BOOST_LOCAL_FUNCTION_CONFIG_BIND_MAX
 
@@ -100,8 +102,8 @@
 the Boost.Config macro <c>BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS</c> is
 defined for the specific compiler, and to <c>1</c> otherwise.
 
-_at_See @RefSectId{Getting_Started, Getting Started} section,
-_at_RefSectId{Advanced_Topics, Advanced Topics} section,
+@See @RefSect{getting_started, Getting Started} section,
+@RefSect{advanced_topics, Advanced Topics} section,
 @RefMacro{BOOST_LOCAL_FUNCTION_NAME}.
 */
 #define BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS

Modified: trunk/libs/local_function/test/same_line.cpp
==============================================================================
--- trunk/libs/local_function/test/same_line.cpp (original)
+++ trunk/libs/local_function/test/same_line.cpp 2012-04-27 22:10:05 EDT (Fri, 27 Apr 2012)
@@ -28,12 +28,12 @@
     } BOOST_LOCAL_FUNCTION_NAME(dec)
 
 #define LOCAL_INC_DEC_TPL(offset) \
- T BOOST_LOCAL_FUNCTION_TPL_ID(BOOST_PP_CAT(inc, __LINE__), \
+ T BOOST_LOCAL_FUNCTION_ID_TPL(BOOST_PP_CAT(inc, __LINE__), \
             const bind offset, const T x) { \
         return x + offset; \
     } BOOST_LOCAL_FUNCTION_NAME_TPL(inc) \
     \
- T BOOST_LOCAL_FUNCTION_TPL_ID(BOOST_PP_CAT(dec, __LINE__), \
+ T BOOST_LOCAL_FUNCTION_ID_TPL(BOOST_PP_CAT(dec, __LINE__), \
             const bind offset, const T x) { \
         return x - offset; \
     } BOOST_LOCAL_FUNCTION_NAME_TPL(dec)

Modified: trunk/libs/local_function/test/same_line_seq.cpp
==============================================================================
--- trunk/libs/local_function/test/same_line_seq.cpp (original)
+++ trunk/libs/local_function/test/same_line_seq.cpp 2012-04-27 22:10:05 EDT (Fri, 27 Apr 2012)
@@ -22,12 +22,12 @@
     } BOOST_LOCAL_FUNCTION_NAME(dec)
 
 #define LOCAL_INC_DEC_TPL(offset) \
- T BOOST_LOCAL_FUNCTION_TPL_ID(BOOST_PP_CAT(inc, __LINE__), \
+ T BOOST_LOCAL_FUNCTION_ID_TPL(BOOST_PP_CAT(inc, __LINE__), \
             (const bind offset) (const T x) ) { \
         return x + offset; \
     } BOOST_LOCAL_FUNCTION_NAME_TPL(inc) \
     \
- T BOOST_LOCAL_FUNCTION_TPL_ID(BOOST_PP_CAT(dec, __LINE__), \
+ T BOOST_LOCAL_FUNCTION_ID_TPL(BOOST_PP_CAT(dec, __LINE__), \
             (const bind offset) (const T x) ) { \
         return x - offset; \
     } BOOST_LOCAL_FUNCTION_NAME_TPL(dec)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk