From 6fd0da8780beefa3e553dfc29e15e89e2559b155 Mon Sep 17 00:00:00 2001 From: Jeff Trull Date: Mon, 15 Jun 2020 10:52:30 -0700 Subject: [PATCH 1/4] Rename include guard macros that don't begin with BOOST_ --- include/boost/wave.hpp | 6 +++--- include/boost/wave/cpp_context.hpp | 6 +++--- include/boost/wave/cpp_exceptions.hpp | 6 +++--- include/boost/wave/cpp_iteration_context.hpp | 6 +++--- include/boost/wave/cpplexer/convert_trigraphs.hpp | 6 +++--- include/boost/wave/cpplexer/cpp_lex_interface.hpp | 6 +++--- include/boost/wave/cpplexer/cpp_lex_iterator.hpp | 6 +++--- include/boost/wave/cpplexer/cpp_lex_token.hpp | 6 +++--- include/boost/wave/cpplexer/cpplexer_exceptions.hpp | 6 +++--- include/boost/wave/cpplexer/detect_include_guards.hpp | 6 +++--- include/boost/wave/cpplexer/re2clex/aq.hpp | 6 +++--- include/boost/wave/cpplexer/re2clex/cpp_re.hpp | 6 +++--- include/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp | 6 +++--- include/boost/wave/cpplexer/re2clex/scanner.hpp | 6 +++--- include/boost/wave/cpplexer/token_cache.hpp | 6 +++--- include/boost/wave/cpplexer/validate_universal_char.hpp | 6 +++--- include/boost/wave/grammars/cpp_chlit_grammar.hpp | 6 +++--- include/boost/wave/grammars/cpp_defined_grammar.hpp | 6 +++--- include/boost/wave/grammars/cpp_defined_grammar_gen.hpp | 6 +++--- include/boost/wave/grammars/cpp_expression_grammar.hpp | 6 +++--- include/boost/wave/grammars/cpp_expression_grammar_gen.hpp | 6 +++--- include/boost/wave/grammars/cpp_expression_value.hpp | 6 +++--- include/boost/wave/grammars/cpp_grammar.hpp | 6 +++--- include/boost/wave/grammars/cpp_grammar_gen.hpp | 6 +++--- include/boost/wave/grammars/cpp_intlit_grammar.hpp | 6 +++--- include/boost/wave/grammars/cpp_literal_grammar_gen.hpp | 6 +++--- include/boost/wave/grammars/cpp_predef_macros_gen.hpp | 6 +++--- include/boost/wave/grammars/cpp_predef_macros_grammar.hpp | 6 +++--- include/boost/wave/language_support.hpp | 6 +++--- include/boost/wave/preprocessing_hooks.hpp | 6 +++--- include/boost/wave/token_ids.hpp | 6 +++--- include/boost/wave/util/cpp_ifblock.hpp | 6 +++--- include/boost/wave/util/cpp_include_paths.hpp | 6 +++--- include/boost/wave/util/cpp_iterator.hpp | 6 +++--- include/boost/wave/util/cpp_macromap.hpp | 6 +++--- include/boost/wave/util/cpp_macromap_predef.hpp | 6 +++--- include/boost/wave/util/cpp_macromap_utils.hpp | 6 +++--- include/boost/wave/util/file_position.hpp | 6 +++--- include/boost/wave/util/flex_string.hpp | 6 +++--- include/boost/wave/util/functor_input.hpp | 6 +++--- include/boost/wave/util/insert_whitespace_detection.hpp | 6 +++--- include/boost/wave/util/interpret_pragma.hpp | 6 +++--- include/boost/wave/util/iteration_context.hpp | 6 +++--- include/boost/wave/util/macro_definition.hpp | 6 +++--- include/boost/wave/util/macro_helpers.hpp | 6 +++--- include/boost/wave/util/symbol_table.hpp | 6 +++--- include/boost/wave/util/time_conversion_helper.hpp | 6 +++--- include/boost/wave/util/transform_iterator.hpp | 6 +++--- include/boost/wave/util/unput_queue_iterator.hpp | 6 +++--- include/boost/wave/wave_config.hpp | 6 +++--- include/boost/wave/wave_version.hpp | 6 +++--- include/boost/wave/whitespace_handling.hpp | 6 +++--- samples/cpp_tokens/cpp_tokens.hpp | 6 +++--- samples/cpp_tokens/cpp_tokens_config.hpp | 6 +++--- samples/cpp_tokens/slex/cpp_slex_lexer.hpp | 6 +++--- samples/cpp_tokens/slex_interface.hpp | 6 +++--- samples/cpp_tokens/slex_token.hpp | 6 +++--- samples/hannibal/translation_unit_parser.h | 6 +++--- samples/hannibal/translation_unit_skipper.h | 6 +++--- samples/list_includes/list_includes.hpp | 6 +++--- samples/list_includes/list_includes_config.hpp | 6 +++--- samples/list_includes/list_includes_version.hpp | 6 +++--- samples/real_positions/correct_token_positions.hpp | 4 ++-- samples/real_positions/real_position_token.hpp | 6 +++--- samples/token_statistics/collect_token_statistics.hpp | 6 +++--- samples/token_statistics/token_statistics.hpp | 6 +++--- samples/token_statistics/token_statistics_version.hpp | 6 +++--- samples/token_statistics/xlex/xlex_lexer.hpp | 6 +++--- samples/token_statistics/xlex/xpressive_lexer.hpp | 6 +++--- samples/token_statistics/xlex_interface.hpp | 6 +++--- samples/waveidl/idl.hpp | 6 +++--- samples/waveidl/idl_config.hpp | 6 +++--- samples/waveidl/idl_version.hpp | 6 +++--- samples/waveidl/idllexer/idl_lex_interface.hpp | 6 +++--- samples/waveidl/idllexer/idl_re.hpp | 6 +++--- samples/waveidl/idllexer/idl_re2c_lexer.hpp | 6 +++--- tool/cpp.hpp | 6 +++--- tool/cpp_config.hpp | 6 +++--- tool/cpp_version.hpp | 6 +++--- tool/stop_watch.hpp | 6 +++--- tool/trace_macro_expansion.hpp | 6 +++--- 81 files changed, 242 insertions(+), 242 deletions(-) diff --git a/include/boost/wave.hpp b/include/boost/wave.hpp index f2b3bc20f..ad7e2b4ff 100644 --- a/include/boost/wave.hpp +++ b/include/boost/wave.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(WAVE_HPP_DCA0EA51_EF5B_4BF1_88A8_461DBC5F292B_INCLUDED) -#define WAVE_HPP_DCA0EA51_EF5B_4BF1_88A8_461DBC5F292B_INCLUDED +#if !defined(BOOST_WAVE_HPP_DCA0EA51_EF5B_4BF1_88A8_461DBC5F292B_INCLUDED) +#define BOOST_WAVE_HPP_DCA0EA51_EF5B_4BF1_88A8_461DBC5F292B_INCLUDED #include #include @@ -20,4 +20,4 @@ #include #include -#endif // !defined(WAVE_HPP_DCA0EA51_EF5B_4BF1_88A8_461DBC5F292B_INCLUDED) +#endif // !defined(BOOST_WAVE_HPP_DCA0EA51_EF5B_4BF1_88A8_461DBC5F292B_INCLUDED) diff --git a/include/boost/wave/cpp_context.hpp b/include/boost/wave/cpp_context.hpp index 0804d2af1..f5f16462a 100644 --- a/include/boost/wave/cpp_context.hpp +++ b/include/boost/wave/cpp_context.hpp @@ -9,8 +9,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_CONTEXT_HPP_907485E2_6649_4A87_911B_7F7225F3E5B8_INCLUDED) -#define CPP_CONTEXT_HPP_907485E2_6649_4A87_911B_7F7225F3E5B8_INCLUDED +#if !defined(BOOST_CPP_CONTEXT_HPP_907485E2_6649_4A87_911B_7F7225F3E5B8_INCLUDED) +#define BOOST_CPP_CONTEXT_HPP_907485E2_6649_4A87_911B_7F7225F3E5B8_INCLUDED #include #include @@ -568,4 +568,4 @@ struct version > #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_CONTEXT_HPP_907485E2_6649_4A87_911B_7F7225F3E5B8_INCLUDED) +#endif // !defined(BOOST_CPP_CONTEXT_HPP_907485E2_6649_4A87_911B_7F7225F3E5B8_INCLUDED) diff --git a/include/boost/wave/cpp_exceptions.hpp b/include/boost/wave/cpp_exceptions.hpp index dd3296f6b..4ecd21fcf 100644 --- a/include/boost/wave/cpp_exceptions.hpp +++ b/include/boost/wave/cpp_exceptions.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_EXCEPTIONS_HPP_5190E447_A781_4521_A275_5134FF9917D7_INCLUDED) -#define CPP_EXCEPTIONS_HPP_5190E447_A781_4521_A275_5134FF9917D7_INCLUDED +#if !defined(BOOST_CPP_EXCEPTIONS_HPP_5190E447_A781_4521_A275_5134FF9917D7_INCLUDED) +#define BOOST_CPP_EXCEPTIONS_HPP_5190E447_A781_4521_A275_5134FF9917D7_INCLUDED #include #include @@ -432,4 +432,4 @@ is_recoverable(cpp_exception const& e) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_EXCEPTIONS_HPP_5190E447_A781_4521_A275_5134FF9917D7_INCLUDED) +#endif // !defined(BOOST_CPP_EXCEPTIONS_HPP_5190E447_A781_4521_A275_5134FF9917D7_INCLUDED) diff --git a/include/boost/wave/cpp_iteration_context.hpp b/include/boost/wave/cpp_iteration_context.hpp index 4dd4be483..74b448555 100644 --- a/include/boost/wave/cpp_iteration_context.hpp +++ b/include/boost/wave/cpp_iteration_context.hpp @@ -9,8 +9,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_ITERATION_CONTEXT_HPP_00312288_9DDB_4668_AFE5_25D3994FD095_INCLUDED) -#define CPP_ITERATION_CONTEXT_HPP_00312288_9DDB_4668_AFE5_25D3994FD095_INCLUDED +#if !defined(BOOST_CPP_ITERATION_CONTEXT_HPP_00312288_9DDB_4668_AFE5_25D3994FD095_INCLUDED) +#define BOOST_CPP_ITERATION_CONTEXT_HPP_00312288_9DDB_4668_AFE5_25D3994FD095_INCLUDED #include #include @@ -168,4 +168,4 @@ struct iteration_context #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_ITERATION_CONTEXT_HPP_00312288_9DDB_4668_AFE5_25D3994FD095_INCLUDED) +#endif // !defined(BOOST_CPP_ITERATION_CONTEXT_HPP_00312288_9DDB_4668_AFE5_25D3994FD095_INCLUDED) diff --git a/include/boost/wave/cpplexer/convert_trigraphs.hpp b/include/boost/wave/cpplexer/convert_trigraphs.hpp index 3a6a6db38..59205e8a8 100644 --- a/include/boost/wave/cpplexer/convert_trigraphs.hpp +++ b/include/boost/wave/cpplexer/convert_trigraphs.hpp @@ -9,8 +9,8 @@ Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CONVERT_TRIGRAPHS_HK050403_INCLUDED) -#define CONVERT_TRIGRAPHS_HK050403_INCLUDED +#if !defined(BOOST_CONVERT_TRIGRAPHS_HK050403_INCLUDED) +#define BOOST_CONVERT_TRIGRAPHS_HK050403_INCLUDED #include #include @@ -134,6 +134,6 @@ convert_trigraphs(StringT const &value) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CONVERT_TRIGRAPHS_HK050403_INCLUDED) +#endif // !defined(BOOST_CONVERT_TRIGRAPHS_HK050403_INCLUDED) diff --git a/include/boost/wave/cpplexer/cpp_lex_interface.hpp b/include/boost/wave/cpplexer/cpp_lex_interface.hpp index 477d00179..986a644b6 100644 --- a/include/boost/wave/cpplexer/cpp_lex_interface.hpp +++ b/include/boost/wave/cpplexer/cpp_lex_interface.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) -#define CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED +#if !defined(BOOST_CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) +#define BOOST_CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED #include #include @@ -70,4 +70,4 @@ struct lex_input_interface #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) +#endif // !defined(BOOST_CPP_LEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) diff --git a/include/boost/wave/cpplexer/cpp_lex_iterator.hpp b/include/boost/wave/cpplexer/cpp_lex_iterator.hpp index a18902038..66e9ce307 100644 --- a/include/boost/wave/cpplexer/cpp_lex_iterator.hpp +++ b/include/boost/wave/cpplexer/cpp_lex_iterator.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_LEX_ITERATOR_HPP_AF0C37E3_CBD8_4F33_A225_51CF576FA61F_INCLUDED) -#define CPP_LEX_ITERATOR_HPP_AF0C37E3_CBD8_4F33_A225_51CF576FA61F_INCLUDED +#if !defined(BOOST_CPP_LEX_ITERATOR_HPP_AF0C37E3_CBD8_4F33_A225_51CF576FA61F_INCLUDED) +#define BOOST_CPP_LEX_ITERATOR_HPP_AF0C37E3_CBD8_4F33_A225_51CF576FA61F_INCLUDED #include @@ -240,4 +240,4 @@ class lex_iterator #undef BOOST_WAVE_EOF_PREFIX -#endif // !defined(CPP_LEX_ITERATOR_HPP_AF0C37E3_CBD8_4F33_A225_51CF576FA61F_INCLUDED) +#endif // !defined(BOOST_CPP_LEX_ITERATOR_HPP_AF0C37E3_CBD8_4F33_A225_51CF576FA61F_INCLUDED) diff --git a/include/boost/wave/cpplexer/cpp_lex_token.hpp b/include/boost/wave/cpplexer/cpp_lex_token.hpp index 6d82273df..41d05bd61 100644 --- a/include/boost/wave/cpplexer/cpp_lex_token.hpp +++ b/include/boost/wave/cpplexer/cpp_lex_token.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) -#define CPP_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED +#if !defined(BOOST_CPP_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) +#define BOOST_CPP_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED #include #if BOOST_WAVE_SERIALIZATION != 0 @@ -332,4 +332,4 @@ operator<< (std::ostream &stream, lex_token const &object) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) +#endif // !defined(BOOST_CPP_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) diff --git a/include/boost/wave/cpplexer/cpplexer_exceptions.hpp b/include/boost/wave/cpplexer/cpplexer_exceptions.hpp index 9e1df87a4..983318480 100644 --- a/include/boost/wave/cpplexer/cpplexer_exceptions.hpp +++ b/include/boost/wave/cpplexer/cpplexer_exceptions.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPPLEXER_EXCEPTIONS_HPP_1A09DE1A_6D1F_4091_AF7F_5F13AB0D31AB_INCLUDED) -#define CPPLEXER_EXCEPTIONS_HPP_1A09DE1A_6D1F_4091_AF7F_5F13AB0D31AB_INCLUDED +#if !defined(BOOST_CPPLEXER_EXCEPTIONS_HPP_1A09DE1A_6D1F_4091_AF7F_5F13AB0D31AB_INCLUDED) +#define BOOST_CPPLEXER_EXCEPTIONS_HPP_1A09DE1A_6D1F_4091_AF7F_5F13AB0D31AB_INCLUDED #include #include @@ -287,4 +287,4 @@ is_recoverable(lexing_exception const& e) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPPLEXER_EXCEPTIONS_HPP_1A09DE1A_6D1F_4091_AF7F_5F13AB0D31AB_INCLUDED) +#endif // !defined(BOOST_CPPLEXER_EXCEPTIONS_HPP_1A09DE1A_6D1F_4091_AF7F_5F13AB0D31AB_INCLUDED) diff --git a/include/boost/wave/cpplexer/detect_include_guards.hpp b/include/boost/wave/cpplexer/detect_include_guards.hpp index a3f0ccb99..ab83ec507 100644 --- a/include/boost/wave/cpplexer/detect_include_guards.hpp +++ b/include/boost/wave/cpplexer/detect_include_guards.hpp @@ -26,8 +26,8 @@ Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(DETECT_INCLUDE_GUARDS_HK060304_INCLUDED) -#define DETECT_INCLUDE_GUARDS_HK060304_INCLUDED +#if !defined(BOOST_DETECT_INCLUDE_GUARDS_HK060304_INCLUDED) +#define BOOST_DETECT_INCLUDE_GUARDS_HK060304_INCLUDED #include #include @@ -260,4 +260,4 @@ include_guards::state_5(Token& t) #include BOOST_ABI_SUFFIX #endif -#endif // !DETECT_INCLUDE_GUARDS_HK060304_INCLUDED +#endif // !BOOST_DETECT_INCLUDE_GUARDS_HK060304_INCLUDED diff --git a/include/boost/wave/cpplexer/re2clex/aq.hpp b/include/boost/wave/cpplexer/re2clex/aq.hpp index fbafd8602..f7a4859c9 100644 --- a/include/boost/wave/cpplexer/re2clex/aq.hpp +++ b/include/boost/wave/cpplexer/re2clex/aq.hpp @@ -9,8 +9,8 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED) -#define AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED +#if !defined(BOOST_AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED) +#define BOOST_AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED #include #include @@ -61,4 +61,4 @@ BOOST_WAVE_DECL void aq_terminate(aq_queue q); #include BOOST_ABI_SUFFIX #endif -#endif // !defined(AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED) +#endif // !defined(BOOST_AQ_HPP_A21D9145_B643_44C0_81E7_DB346DD67EE1_INCLUDED) diff --git a/include/boost/wave/cpplexer/re2clex/cpp_re.hpp b/include/boost/wave/cpplexer/re2clex/cpp_re.hpp index 08fd739be..2f828439b 100644 --- a/include/boost/wave/cpplexer/re2clex/cpp_re.hpp +++ b/include/boost/wave/cpplexer/re2clex/cpp_re.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED) -#define CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED +#if !defined(BOOST_CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED) +#define BOOST_CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED #include @@ -407,4 +407,4 @@ boost::wave::token_id scan(Scanner *s) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED) +#endif // !defined(BOOST_CPP_RE_HPP_B76C4F5E_63E9_4B8A_9975_EC32FA6BF027_INCLUDED) diff --git a/include/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp b/include/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp index 78c50f25e..aefe73e51 100644 --- a/include/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp +++ b/include/boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) -#define CPP_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED +#if !defined(BOOST_CPP_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) +#define BOOST_CPP_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED #include #include @@ -420,4 +420,4 @@ new_lexer_gen::new_lexer(IteratorT const &first, #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) +#endif // !defined(BOOST_CPP_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) diff --git a/include/boost/wave/cpplexer/re2clex/scanner.hpp b/include/boost/wave/cpplexer/re2clex/scanner.hpp index b3b310932..d2cb2f669 100644 --- a/include/boost/wave/cpplexer/re2clex/scanner.hpp +++ b/include/boost/wave/cpplexer/re2clex/scanner.hpp @@ -9,8 +9,8 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED) -#define SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED +#if !defined(BOOST_SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED) +#define BOOST_SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED #include #include @@ -87,4 +87,4 @@ struct Scanner { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED) +#endif // !defined(BOOST_SCANNER_HPP_F4FB01EB_E75C_4537_A146_D34B9895EF37_INCLUDED) diff --git a/include/boost/wave/cpplexer/token_cache.hpp b/include/boost/wave/cpplexer/token_cache.hpp index 1af66733c..c6d12551f 100644 --- a/include/boost/wave/cpplexer/token_cache.hpp +++ b/include/boost/wave/cpplexer/token_cache.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(TOKEN_CACHE_HPP_4D2320B7_1D56_4113_A114_397E70FA438C_INCLUDED) -#define TOKEN_CACHE_HPP_4D2320B7_1D56_4113_A114_397E70FA438C_INCLUDED +#if !defined(BOOST_TOKEN_CACHE_HPP_4D2320B7_1D56_4113_A114_397E70FA438C_INCLUDED) +#define BOOST_TOKEN_CACHE_HPP_4D2320B7_1D56_4113_A114_397E70FA438C_INCLUDED #include @@ -69,4 +69,4 @@ class token_cache #include BOOST_ABI_SUFFIX #endif -#endif // !defined(TOKEN_CACHE_HPP_4D2320B7_1D56_4113_A114_397E70FA438C_INCLUDED) +#endif // !defined(BOOST_TOKEN_CACHE_HPP_4D2320B7_1D56_4113_A114_397E70FA438C_INCLUDED) diff --git a/include/boost/wave/cpplexer/validate_universal_char.hpp b/include/boost/wave/cpplexer/validate_universal_char.hpp index 255919048..5341a4526 100644 --- a/include/boost/wave/cpplexer/validate_universal_char.hpp +++ b/include/boost/wave/cpplexer/validate_universal_char.hpp @@ -9,8 +9,8 @@ Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(VALIDATE_UNIVERSAL_CHAR_HPP_55F1B811_CD76_4C72_8344_CBC69CF3B339_INCLUDED) -#define VALIDATE_UNIVERSAL_CHAR_HPP_55F1B811_CD76_4C72_8344_CBC69CF3B339_INCLUDED +#if !defined(BOOST_VALIDATE_UNIVERSAL_CHAR_HPP_55F1B811_CD76_4C72_8344_CBC69CF3B339_INCLUDED) +#define BOOST_VALIDATE_UNIVERSAL_CHAR_HPP_55F1B811_CD76_4C72_8344_CBC69CF3B339_INCLUDED #include @@ -319,4 +319,4 @@ typename StringT::size_type pos = name.find_first_of('\\'); #include BOOST_ABI_SUFFIX #endif -#endif // !defined(VALIDATE_UNIVERSAL_CHAR_HPP_55F1B811_CD76_4C72_8344_CBC69CF3B339_INCLUDED) +#endif // !defined(BOOST_VALIDATE_UNIVERSAL_CHAR_HPP_55F1B811_CD76_4C72_8344_CBC69CF3B339_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_chlit_grammar.hpp b/include/boost/wave/grammars/cpp_chlit_grammar.hpp index 77fcfd1eb..76fc179ba 100644 --- a/include/boost/wave/grammars/cpp_chlit_grammar.hpp +++ b/include/boost/wave/grammars/cpp_chlit_grammar.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_CHLIT_GRAMMAR_HPP_9527D349_6592_449A_A409_42A001E6C64C_INCLUDED) -#define CPP_CHLIT_GRAMMAR_HPP_9527D349_6592_449A_A409_42A001E6C64C_INCLUDED +#if !defined(BOOST_CPP_CHLIT_GRAMMAR_HPP_9527D349_6592_449A_A409_42A001E6C64C_INCLUDED) +#define BOOST_CPP_CHLIT_GRAMMAR_HPP_9527D349_6592_449A_A409_42A001E6C64C_INCLUDED #include // std::numeric_limits #include // CHAR_BIT @@ -351,4 +351,4 @@ parse_info hit = #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_CHLIT_GRAMMAR_HPP_9527D349_6592_449A_A409_42A001E6C64C_INCLUDED) +#endif // !defined(BOOST_CPP_CHLIT_GRAMMAR_HPP_9527D349_6592_449A_A409_42A001E6C64C_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_defined_grammar.hpp b/include/boost/wave/grammars/cpp_defined_grammar.hpp index b9d006bd6..fdb2feebf 100644 --- a/include/boost/wave/grammars/cpp_defined_grammar.hpp +++ b/include/boost/wave/grammars/cpp_defined_grammar.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_DEFINED_GRAMMAR_HPP_F48287B2_DC67_40A8_B4A1_800EFBD67869_INCLUDED) -#define CPP_DEFINED_GRAMMAR_HPP_F48287B2_DC67_40A8_B4A1_800EFBD67869_INCLUDED +#if !defined(BOOST_CPP_DEFINED_GRAMMAR_HPP_F48287B2_DC67_40A8_B4A1_800EFBD67869_INCLUDED) +#define BOOST_CPP_DEFINED_GRAMMAR_HPP_F48287B2_DC67_40A8_B4A1_800EFBD67869_INCLUDED #include @@ -182,4 +182,4 @@ defined_grammar_gen::parse_operator_defined ( #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_DEFINED_GRAMMAR_HPP_F48287B2_DC67_40A8_B4A1_800EFBD67869_INCLUDED) +#endif // !defined(BOOST_CPP_DEFINED_GRAMMAR_HPP_F48287B2_DC67_40A8_B4A1_800EFBD67869_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_defined_grammar_gen.hpp b/include/boost/wave/grammars/cpp_defined_grammar_gen.hpp index 2b454a328..f98774481 100644 --- a/include/boost/wave/grammars/cpp_defined_grammar_gen.hpp +++ b/include/boost/wave/grammars/cpp_defined_grammar_gen.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_DEFINED_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED) -#define CPP_DEFINED_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED +#if !defined(BOOST_CPP_DEFINED_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED) +#define BOOST_CPP_DEFINED_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED #include @@ -82,4 +82,4 @@ struct BOOST_WAVE_DECL defined_grammar_gen #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_DEFINED_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED) +#endif // !defined(BOOST_CPP_DEFINED_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_expression_grammar.hpp b/include/boost/wave/grammars/cpp_expression_grammar.hpp index fbb2139ae..68184be53 100644 --- a/include/boost/wave/grammars/cpp_expression_grammar.hpp +++ b/include/boost/wave/grammars/cpp_expression_grammar.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_EXPRESSION_GRAMMAR_HPP_099CD1A4_A6C0_44BE_8F24_0B00F5BE5674_INCLUDED) -#define CPP_EXPRESSION_GRAMMAR_HPP_099CD1A4_A6C0_44BE_8F24_0B00F5BE5674_INCLUDED +#if !defined(BOOST_CPP_EXPRESSION_GRAMMAR_HPP_099CD1A4_A6C0_44BE_8F24_0B00F5BE5674_INCLUDED) +#define BOOST_CPP_EXPRESSION_GRAMMAR_HPP_099CD1A4_A6C0_44BE_8F24_0B00F5BE5674_INCLUDED #include @@ -867,4 +867,4 @@ expression_grammar_gen::evaluate( #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_EXPRESSION_GRAMMAR_HPP_099CD1A4_A6C0_44BE_8F24_0B00F5BE5674_INCLUDED) +#endif // !defined(BOOST_CPP_EXPRESSION_GRAMMAR_HPP_099CD1A4_A6C0_44BE_8F24_0B00F5BE5674_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_expression_grammar_gen.hpp b/include/boost/wave/grammars/cpp_expression_grammar_gen.hpp index 1c519db17..41fb985df 100644 --- a/include/boost/wave/grammars/cpp_expression_grammar_gen.hpp +++ b/include/boost/wave/grammars/cpp_expression_grammar_gen.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED) -#define CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED +#if !defined(BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED) +#define BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED #include #include @@ -72,4 +72,4 @@ struct BOOST_WAVE_DECL expression_grammar_gen { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED) +#endif // !defined(BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_expression_value.hpp b/include/boost/wave/grammars/cpp_expression_value.hpp index 26feb67d0..7a6060352 100644 --- a/include/boost/wave/grammars/cpp_expression_value.hpp +++ b/include/boost/wave/grammars/cpp_expression_value.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_EXPRESSION_VALUE_HPP_452FE66D_8754_4107_AF1E_E42255A0C18A_INCLUDED) -#define CPP_EXPRESSION_VALUE_HPP_452FE66D_8754_4107_AF1E_E42255A0C18A_INCLUDED +#if !defined(BOOST_CPP_EXPRESSION_VALUE_HPP_452FE66D_8754_4107_AF1E_E42255A0C18A_INCLUDED) +#define BOOST_CPP_EXPRESSION_VALUE_HPP_452FE66D_8754_4107_AF1E_E42255A0C18A_INCLUDED #if defined (BOOST_SPIRIT_DEBUG) #include @@ -880,4 +880,4 @@ class closure_value { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_EXPRESSION_VALUE_HPP_452FE66D_8754_4107_AF1E_E42255A0C18A_INCLUDED) +#endif // !defined(BOOST_CPP_EXPRESSION_VALUE_HPP_452FE66D_8754_4107_AF1E_E42255A0C18A_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_grammar.hpp b/include/boost/wave/grammars/cpp_grammar.hpp index c660669dd..e085f9e7b 100644 --- a/include/boost/wave/grammars/cpp_grammar.hpp +++ b/include/boost/wave/grammars/cpp_grammar.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_GRAMMAR_HPP_FEAEBC2E_2734_428B_A7CA_85E5A415E23E_INCLUDED) -#define CPP_GRAMMAR_HPP_FEAEBC2E_2734_428B_A7CA_85E5A415E23E_INCLUDED +#if !defined(BOOST_CPP_GRAMMAR_HPP_FEAEBC2E_2734_428B_A7CA_85E5A415E23E_INCLUDED) +#define BOOST_CPP_GRAMMAR_HPP_FEAEBC2E_2734_428B_A7CA_85E5A415E23E_INCLUDED #include #include @@ -762,4 +762,4 @@ cpp_grammar_gen::parse_cpp_grammar ( #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_GRAMMAR_HPP_FEAEBC2E_2734_428B_A7CA_85E5A415E23E_INCLUDED) +#endif // !defined(BOOST_CPP_GRAMMAR_HPP_FEAEBC2E_2734_428B_A7CA_85E5A415E23E_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_grammar_gen.hpp b/include/boost/wave/grammars/cpp_grammar_gen.hpp index 79fc2d7d8..e68164bfb 100644 --- a/include/boost/wave/grammars/cpp_grammar_gen.hpp +++ b/include/boost/wave/grammars/cpp_grammar_gen.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_GRAMMAR_GEN_HPP_80CB8A59_5411_4E45_B406_62531A12FB99_INCLUDED) -#define CPP_GRAMMAR_GEN_HPP_80CB8A59_5411_4E45_B406_62531A12FB99_INCLUDED +#if !defined(BOOST_CPP_GRAMMAR_GEN_HPP_80CB8A59_5411_4E45_B406_62531A12FB99_INCLUDED) +#define BOOST_CPP_GRAMMAR_GEN_HPP_80CB8A59_5411_4E45_B406_62531A12FB99_INCLUDED #include #include @@ -107,4 +107,4 @@ struct BOOST_WAVE_DECL cpp_grammar_gen #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_GRAMMAR_GEN_HPP_80CB8A59_5411_4E45_B406_62531A12FB99_INCLUDED) +#endif // !defined(BOOST_CPP_GRAMMAR_GEN_HPP_80CB8A59_5411_4E45_B406_62531A12FB99_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_intlit_grammar.hpp b/include/boost/wave/grammars/cpp_intlit_grammar.hpp index 9259c4dc5..6f0cf9bbd 100644 --- a/include/boost/wave/grammars/cpp_intlit_grammar.hpp +++ b/include/boost/wave/grammars/cpp_intlit_grammar.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_INTLIT_GRAMMAR_HPP_2E1E70B1_F15C_4132_8554_10A231B0D91C_INCLUDED) -#define CPP_INTLIT_GRAMMAR_HPP_2E1E70B1_F15C_4132_8554_10A231B0D91C_INCLUDED +#if !defined(BOOST_CPP_INTLIT_GRAMMAR_HPP_2E1E70B1_F15C_4132_8554_10A231B0D91C_INCLUDED) +#define BOOST_CPP_INTLIT_GRAMMAR_HPP_2E1E70B1_F15C_4132_8554_10A231B0D91C_INCLUDED #include @@ -185,4 +185,4 @@ parse_info hit = #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_INTLIT_GRAMMAR_HPP_2E1E70B1_F15C_4132_8554_10A231B0D91C_INCLUDED) +#endif // !defined(BOOST_CPP_INTLIT_GRAMMAR_HPP_2E1E70B1_F15C_4132_8554_10A231B0D91C_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_literal_grammar_gen.hpp b/include/boost/wave/grammars/cpp_literal_grammar_gen.hpp index c9918b8af..7d5616b1c 100644 --- a/include/boost/wave/grammars/cpp_literal_grammar_gen.hpp +++ b/include/boost/wave/grammars/cpp_literal_grammar_gen.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_LITERAL_GRAMMAR_GEN_HPP_67794A6C_468A_4AAB_A757_DEDDB182F5A0_INCLUDED) -#define CPP_LITERAL_GRAMMAR_GEN_HPP_67794A6C_468A_4AAB_A757_DEDDB182F5A0_INCLUDED +#if !defined(BOOST_CPP_LITERAL_GRAMMAR_GEN_HPP_67794A6C_468A_4AAB_A757_DEDDB182F5A0_INCLUDED) +#define BOOST_CPP_LITERAL_GRAMMAR_GEN_HPP_67794A6C_468A_4AAB_A757_DEDDB182F5A0_INCLUDED #include #include @@ -74,4 +74,4 @@ struct BOOST_WAVE_DECL chlit_grammar_gen { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_LITERAL_GRAMMAR_GEN_HPP_67794A6C_468A_4AAB_A757_DEDDB182F5A0_INCLUDED) +#endif // !defined(BOOST_CPP_LITERAL_GRAMMAR_GEN_HPP_67794A6C_468A_4AAB_A757_DEDDB182F5A0_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_predef_macros_gen.hpp b/include/boost/wave/grammars/cpp_predef_macros_gen.hpp index 01d4e21cb..b8561e44c 100644 --- a/include/boost/wave/grammars/cpp_predef_macros_gen.hpp +++ b/include/boost/wave/grammars/cpp_predef_macros_gen.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED) -#define CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED +#if !defined(BOOST_CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED) +#define BOOST_CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED #include @@ -77,4 +77,4 @@ struct BOOST_WAVE_DECL predefined_macros_grammar_gen #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED) +#endif // !defined(BOOST_CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED) diff --git a/include/boost/wave/grammars/cpp_predef_macros_grammar.hpp b/include/boost/wave/grammars/cpp_predef_macros_grammar.hpp index cc9edc221..5f48bd126 100644 --- a/include/boost/wave/grammars/cpp_predef_macros_grammar.hpp +++ b/include/boost/wave/grammars/cpp_predef_macros_grammar.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_PREDEF_MACROS_GRAMMAR_HPP_53858C9A_C202_4D60_AD92_DC9CAE4DBB43_INCLUDED) -#define CPP_PREDEF_MACROS_GRAMMAR_HPP_53858C9A_C202_4D60_AD92_DC9CAE4DBB43_INCLUDED +#if !defined(BOOST_CPP_PREDEF_MACROS_GRAMMAR_HPP_53858C9A_C202_4D60_AD92_DC9CAE4DBB43_INCLUDED) +#define BOOST_CPP_PREDEF_MACROS_GRAMMAR_HPP_53858C9A_C202_4D60_AD92_DC9CAE4DBB43_INCLUDED #include #include @@ -175,4 +175,4 @@ predefined_macros_grammar_gen::parse_predefined_macro ( #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_PREDEF_MACROS_GRAMMAR_HPP_53858C9A_C202_4D60_AD92_DC9CAE4DBB43_INCLUDED) +#endif // !defined(BOOST_CPP_PREDEF_MACROS_GRAMMAR_HPP_53858C9A_C202_4D60_AD92_DC9CAE4DBB43_INCLUDED) diff --git a/include/boost/wave/language_support.hpp b/include/boost/wave/language_support.hpp index d9b826cb1..8e956d60d 100644 --- a/include/boost/wave/language_support.hpp +++ b/include/boost/wave/language_support.hpp @@ -8,8 +8,8 @@ Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(LANGUAGE_SUPPORT_HPP_93EDD057_2DEF_44BC_BC9F_FDABB9F51AFA_INCLUDED) -#define LANGUAGE_SUPPORT_HPP_93EDD057_2DEF_44BC_BC9F_FDABB9F51AFA_INCLUDED +#if !defined(BOOST_LANGUAGE_SUPPORT_HPP_93EDD057_2DEF_44BC_BC9F_FDABB9F51AFA_INCLUDED) +#define BOOST_LANGUAGE_SUPPORT_HPP_93EDD057_2DEF_44BC_BC9F_FDABB9F51AFA_INCLUDED #include @@ -256,4 +256,4 @@ BOOST_WAVE_OPTION(no_newline_at_end_of_file) // support_no_newline_at_end_of_fil #include BOOST_ABI_SUFFIX #endif -#endif // !defined(LANGUAGE_SUPPORT_HPP_93EDD057_2DEF_44BC_BC9F_FDABB9F51AFA_INCLUDED) +#endif // !defined(BOOST_LANGUAGE_SUPPORT_HPP_93EDD057_2DEF_44BC_BC9F_FDABB9F51AFA_INCLUDED) diff --git a/include/boost/wave/preprocessing_hooks.hpp b/include/boost/wave/preprocessing_hooks.hpp index 81bd21787..9da057238 100644 --- a/include/boost/wave/preprocessing_hooks.hpp +++ b/include/boost/wave/preprocessing_hooks.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED) -#define DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED +#if !defined(BOOST_DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED) +#define BOOST_DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED #include #include @@ -816,4 +816,4 @@ struct default_preprocessing_hooks #include BOOST_ABI_SUFFIX #endif -#endif // !defined(DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED) +#endif // !defined(BOOST_DEFAULT_PREPROCESSING_HOOKS_HPP_INCLUDED) diff --git a/include/boost/wave/token_ids.hpp b/include/boost/wave/token_ids.hpp index f8afb9d4b..4a0f05604 100644 --- a/include/boost/wave/token_ids.hpp +++ b/include/boost/wave/token_ids.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(TOKEN_IDS_HPP_414E9A58_F079_4789_8AFF_513815CE475B_INCLUDED) -#define TOKEN_IDS_HPP_414E9A58_F079_4789_8AFF_513815CE475B_INCLUDED +#if !defined(BOOST_TOKEN_IDS_HPP_414E9A58_F079_4789_8AFF_513815CE475B_INCLUDED) +#define BOOST_TOKEN_IDS_HPP_414E9A58_F079_4789_8AFF_513815CE475B_INCLUDED #include @@ -378,5 +378,5 @@ char const *get_token_value(token_id tokid); #include BOOST_ABI_SUFFIX #endif -#endif // !defined(TOKEN_IDS_HPP_414E9A58_F079_4789_8AFF_513815CE475B_INCLUDED) +#endif // !defined(BOOST_TOKEN_IDS_HPP_414E9A58_F079_4789_8AFF_513815CE475B_INCLUDED) diff --git a/include/boost/wave/util/cpp_ifblock.hpp b/include/boost/wave/util/cpp_ifblock.hpp index 975ac5156..cdc7d3ac9 100644 --- a/include/boost/wave/util/cpp_ifblock.hpp +++ b/include/boost/wave/util/cpp_ifblock.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_IFBLOCK_HPP_D4676B36_00C5_41F4_BC9F_9CBBAE3B8006_INCLUDED) -#define CPP_IFBLOCK_HPP_D4676B36_00C5_41F4_BC9F_9CBBAE3B8006_INCLUDED +#if !defined(BOOST_CPP_IFBLOCK_HPP_D4676B36_00C5_41F4_BC9F_9CBBAE3B8006_INCLUDED) +#define BOOST_CPP_IFBLOCK_HPP_D4676B36_00C5_41F4_BC9F_9CBBAE3B8006_INCLUDED #include #include @@ -158,4 +158,4 @@ class if_block_stack #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_IFBLOCK_HPP_D4676B36_00C5_41F4_BC9F_9CBBAE3B8006_INCLUDED) +#endif // !defined(BOOST_CPP_IFBLOCK_HPP_D4676B36_00C5_41F4_BC9F_9CBBAE3B8006_INCLUDED) diff --git a/include/boost/wave/util/cpp_include_paths.hpp b/include/boost/wave/util/cpp_include_paths.hpp index 888964cc9..221ccee8c 100644 --- a/include/boost/wave/util/cpp_include_paths.hpp +++ b/include/boost/wave/util/cpp_include_paths.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_INCLUDE_PATHS_HPP_AF620DA4_B3D2_4221_AD91_8A1ABFFB6944_INCLUDED) -#define CPP_INCLUDE_PATHS_HPP_AF620DA4_B3D2_4221_AD91_8A1ABFFB6944_INCLUDED +#if !defined(BOOST_CPP_INCLUDE_PATHS_HPP_AF620DA4_B3D2_4221_AD91_8A1ABFFB6944_INCLUDED) +#define BOOST_CPP_INCLUDE_PATHS_HPP_AF620DA4_B3D2_4221_AD91_8A1ABFFB6944_INCLUDED #include #include @@ -545,4 +545,4 @@ BOOST_CLASS_VERSION(boost::wave::util::include_paths, #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_INCLUDE_PATHS_HPP_AF620DA4_B3D2_4221_AD91_8A1ABFFB6944_INCLUDED) +#endif // !defined(BOOST_CPP_INCLUDE_PATHS_HPP_AF620DA4_B3D2_4221_AD91_8A1ABFFB6944_INCLUDED) diff --git a/include/boost/wave/util/cpp_iterator.hpp b/include/boost/wave/util/cpp_iterator.hpp index d7d0c1cd7..9a8b2c0dc 100644 --- a/include/boost/wave/util/cpp_iterator.hpp +++ b/include/boost/wave/util/cpp_iterator.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_ITERATOR_HPP_175CA88F_7273_43FA_9039_BCF7459E1F29_INCLUDED) -#define CPP_ITERATOR_HPP_175CA88F_7273_43FA_9039_BCF7459E1F29_INCLUDED +#if !defined(BOOST_CPP_ITERATOR_HPP_175CA88F_7273_43FA_9039_BCF7459E1F29_INCLUDED) +#define BOOST_CPP_ITERATOR_HPP_175CA88F_7273_43FA_9039_BCF7459E1F29_INCLUDED #include #include @@ -2635,4 +2635,4 @@ class pp_iterator #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_ITERATOR_HPP_175CA88F_7273_43FA_9039_BCF7459E1F29_INCLUDED) +#endif // !defined(BOOST_CPP_ITERATOR_HPP_175CA88F_7273_43FA_9039_BCF7459E1F29_INCLUDED) diff --git a/include/boost/wave/util/cpp_macromap.hpp b/include/boost/wave/util/cpp_macromap.hpp index 8bf5f4219..f7c490784 100644 --- a/include/boost/wave/util/cpp_macromap.hpp +++ b/include/boost/wave/util/cpp_macromap.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_MACROMAP_HPP_CB8F51B0_A3F0_411C_AEF4_6FF631B8B414_INCLUDED) -#define CPP_MACROMAP_HPP_CB8F51B0_A3F0_411C_AEF4_6FF631B8B414_INCLUDED +#if !defined(BOOST_CPP_MACROMAP_HPP_CB8F51B0_A3F0_411C_AEF4_6FF631B8B414_INCLUDED) +#define BOOST_CPP_MACROMAP_HPP_CB8F51B0_A3F0_411C_AEF4_6FF631B8B414_INCLUDED #include #include @@ -2166,4 +2166,4 @@ struct version > #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_MACROMAP_HPP_CB8F51B0_A3F0_411C_AEF4_6FF631B8B414_INCLUDED) +#endif // !defined(BOOST_CPP_MACROMAP_HPP_CB8F51B0_A3F0_411C_AEF4_6FF631B8B414_INCLUDED) diff --git a/include/boost/wave/util/cpp_macromap_predef.hpp b/include/boost/wave/util/cpp_macromap_predef.hpp index f2a095dd9..02c74a348 100644 --- a/include/boost/wave/util/cpp_macromap_predef.hpp +++ b/include/boost/wave/util/cpp_macromap_predef.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_MACROMAP_PREDEF_HPP_HK041119) -#define CPP_MACROMAP_PREDEF_HPP_HK041119 +#if !defined(BOOST_CPP_MACROMAP_PREDEF_HPP_HK041119) +#define BOOST_CPP_MACROMAP_PREDEF_HPP_HK041119 #include #include @@ -302,4 +302,4 @@ namespace util { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_MACROMAP_PREDEF_HPP_HK041119) +#endif // !defined(BOOST_CPP_MACROMAP_PREDEF_HPP_HK041119) diff --git a/include/boost/wave/util/cpp_macromap_utils.hpp b/include/boost/wave/util/cpp_macromap_utils.hpp index eb9ac8e3f..4fc20f380 100644 --- a/include/boost/wave/util/cpp_macromap_utils.hpp +++ b/include/boost/wave/util/cpp_macromap_utils.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_MACROMAP_UTIL_HPP_HK041119) -#define CPP_MACROMAP_UTIL_HPP_HK041119 +#if !defined(BOOST_CPP_MACROMAP_UTIL_HPP_HK041119) +#define BOOST_CPP_MACROMAP_UTIL_HPP_HK041119 #include @@ -593,4 +593,4 @@ to_string(Src const& src) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(CPP_MACROMAP_UTIL_HPP_HK041119) +#endif // !defined(BOOST_CPP_MACROMAP_UTIL_HPP_HK041119) diff --git a/include/boost/wave/util/file_position.hpp b/include/boost/wave/util/file_position.hpp index 840e7cdcb..c0ecc0f56 100644 --- a/include/boost/wave/util/file_position.hpp +++ b/include/boost/wave/util/file_position.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(FILE_POSITION_H_52BDEDF7_DAD3_4F24_802F_E66BB8098F68_INCLUDED) -#define FILE_POSITION_H_52BDEDF7_DAD3_4F24_802F_E66BB8098F68_INCLUDED +#if !defined(BOOST_FILE_POSITION_H_52BDEDF7_DAD3_4F24_802F_E66BB8098F68_INCLUDED) +#define BOOST_FILE_POSITION_H_52BDEDF7_DAD3_4F24_802F_E66BB8098F68_INCLUDED #include #include @@ -192,4 +192,4 @@ namespace spirit { namespace classic { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(FILE_POSITION_H_52BDEDF7_DAD3_4F24_802F_E66BB8098F68_INCLUDED) +#endif // !defined(BOOST_FILE_POSITION_H_52BDEDF7_DAD3_4F24_802F_E66BB8098F68_INCLUDED) diff --git a/include/boost/wave/util/flex_string.hpp b/include/boost/wave/util/flex_string.hpp index 3faa77868..3b5aa653e 100644 --- a/include/boost/wave/util/flex_string.hpp +++ b/include/boost/wave/util/flex_string.hpp @@ -35,8 +35,8 @@ // - Removed the getline implementation which was borrowed from the SGI // STL as the license for this code is not compatible with Boost. -#ifndef FLEX_STRING_INC_ -#define FLEX_STRING_INC_ +#ifndef BOOST_FLEX_STRING_INC_ +#define BOOST_FLEX_STRING_INC_ /* //////////////////////////////////////////////////////////////////////////////// @@ -2577,4 +2577,4 @@ inline void serialize(Archive & ar, boost::wave::util::flex_string & #include BOOST_ABI_SUFFIX #endif -#endif // FLEX_STRING_INC_ +#endif // BOOST_FLEX_STRING_INC_ diff --git a/include/boost/wave/util/functor_input.hpp b/include/boost/wave/util/functor_input.hpp index 183676ef1..11a8a955a 100644 --- a/include/boost/wave/util/functor_input.hpp +++ b/include/boost/wave/util/functor_input.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(FUNCTOR_INPUT_HPP_ED3A4C21_8F8A_453F_B438_08214FAC106A_INCLUDED) -#define FUNCTOR_INPUT_HPP_ED3A4C21_8F8A_453F_B438_08214FAC106A_INCLUDED +#if !defined(BOOST_FUNCTOR_INPUT_HPP_ED3A4C21_8F8A_453F_B438_08214FAC106A_INCLUDED) +#define BOOST_FUNCTOR_INPUT_HPP_ED3A4C21_8F8A_453F_B438_08214FAC106A_INCLUDED #include #include @@ -152,4 +152,4 @@ struct functor_input { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(FUNCTOR_INPUT_HPP_ED3A4C21_8F8A_453F_B438_08214FAC106A_INCLUDED) +#endif // !defined(BOOST_FUNCTOR_INPUT_HPP_ED3A4C21_8F8A_453F_B438_08214FAC106A_INCLUDED) diff --git a/include/boost/wave/util/insert_whitespace_detection.hpp b/include/boost/wave/util/insert_whitespace_detection.hpp index 0bc7b2412..d6e4f4630 100644 --- a/include/boost/wave/util/insert_whitespace_detection.hpp +++ b/include/boost/wave/util/insert_whitespace_detection.hpp @@ -9,8 +9,8 @@ Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(INSERT_WHITESPACE_DETECTION_HPP_765EF77B_0513_4967_BDD6_6A38148C4C96_INCLUDED) -#define INSERT_WHITESPACE_DETECTION_HPP_765EF77B_0513_4967_BDD6_6A38148C4C96_INCLUDED +#if !defined(BOOST_INSERT_WHITESPACE_DETECTION_HPP_765EF77B_0513_4967_BDD6_6A38148C4C96_INCLUDED) +#define BOOST_INSERT_WHITESPACE_DETECTION_HPP_765EF77B_0513_4967_BDD6_6A38148C4C96_INCLUDED #include #include @@ -545,4 +545,4 @@ class insert_whitespace_detection #include BOOST_ABI_SUFFIX #endif -#endif // !defined(INSERT_WHITESPACE_DETECTION_HPP_765EF77B_0513_4967_BDD6_6A38148C4C96_INCLUDED) +#endif // !defined(BOOST_INSERT_WHITESPACE_DETECTION_HPP_765EF77B_0513_4967_BDD6_6A38148C4C96_INCLUDED) diff --git a/include/boost/wave/util/interpret_pragma.hpp b/include/boost/wave/util/interpret_pragma.hpp index 5a68a5e00..34c7e89ea 100644 --- a/include/boost/wave/util/interpret_pragma.hpp +++ b/include/boost/wave/util/interpret_pragma.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(INTERPRET_PRAGMA_HPP_B1F2315E_C5CE_4ED1_A343_0EF548B7942A_INCLUDED) -#define INTERPRET_PRAGMA_HPP_B1F2315E_C5CE_4ED1_A343_0EF548B7942A_INCLUDED +#if !defined(BOOST_INTERPRET_PRAGMA_HPP_B1F2315E_C5CE_4ED1_A343_0EF548B7942A_INCLUDED) +#define BOOST_INTERPRET_PRAGMA_HPP_B1F2315E_C5CE_4ED1_A343_0EF548B7942A_INCLUDED #include #include @@ -207,4 +207,4 @@ interpret_pragma(ContextT &ctx, typename ContextT::token_type const &act_token, #include BOOST_ABI_SUFFIX #endif -#endif // !defined(INTERPRET_PRAGMA_HPP_B1F2315E_C5CE_4ED1_A343_0EF548B7942A_INCLUDED) +#endif // !defined(BOOST_INTERPRET_PRAGMA_HPP_B1F2315E_C5CE_4ED1_A343_0EF548B7942A_INCLUDED) diff --git a/include/boost/wave/util/iteration_context.hpp b/include/boost/wave/util/iteration_context.hpp index 1ea027c88..bea16815b 100644 --- a/include/boost/wave/util/iteration_context.hpp +++ b/include/boost/wave/util/iteration_context.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(ITERATION_CONTEXT_HPP_9556CD16_F11E_4ADC_AC8B_FB9A174BE664_INCLUDED) -#define ITERATION_CONTEXT_HPP_9556CD16_F11E_4ADC_AC8B_FB9A174BE664_INCLUDED +#if !defined(BOOST_ITERATION_CONTEXT_HPP_9556CD16_F11E_4ADC_AC8B_FB9A174BE664_INCLUDED) +#define BOOST_ITERATION_CONTEXT_HPP_9556CD16_F11E_4ADC_AC8B_FB9A174BE664_INCLUDED #include #include @@ -80,4 +80,4 @@ class iteration_context_stack #include BOOST_ABI_SUFFIX #endif -#endif // !defined(ITERATION_CONTEXT_HPP_9556CD16_F11E_4ADC_AC8B_FB9A174BE664_INCLUDED) +#endif // !defined(BOOST_ITERATION_CONTEXT_HPP_9556CD16_F11E_4ADC_AC8B_FB9A174BE664_INCLUDED) diff --git a/include/boost/wave/util/macro_definition.hpp b/include/boost/wave/util/macro_definition.hpp index a180317e0..4911b61a4 100644 --- a/include/boost/wave/util/macro_definition.hpp +++ b/include/boost/wave/util/macro_definition.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(MACRO_DEFINITION_HPP_D68A639E_2DA5_4E9C_8ACD_CFE6B903831E_INCLUDED) -#define MACRO_DEFINITION_HPP_D68A639E_2DA5_4E9C_8ACD_CFE6B903831E_INCLUDED +#if !defined(BOOST_MACRO_DEFINITION_HPP_D68A639E_2DA5_4E9C_8ACD_CFE6B903831E_INCLUDED) +#define BOOST_MACRO_DEFINITION_HPP_D68A639E_2DA5_4E9C_8ACD_CFE6B903831E_INCLUDED #include #include @@ -209,4 +209,4 @@ intrusive_ptr_release(macro_definition* p) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(MACRO_DEFINITION_HPP_D68A639E_2DA5_4E9C_8ACD_CFE6B903831E_INCLUDED) +#endif // !defined(BOOST_MACRO_DEFINITION_HPP_D68A639E_2DA5_4E9C_8ACD_CFE6B903831E_INCLUDED) diff --git a/include/boost/wave/util/macro_helpers.hpp b/include/boost/wave/util/macro_helpers.hpp index 7849e5c33..0e1c69f5c 100644 --- a/include/boost/wave/util/macro_helpers.hpp +++ b/include/boost/wave/util/macro_helpers.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(MACRO_HELPERS_HPP_931BBC99_EBFA_4692_8FBE_B555998C2C39_INCLUDED) -#define MACRO_HELPERS_HPP_931BBC99_EBFA_4692_8FBE_B555998C2C39_INCLUDED +#if !defined(BOOST_MACRO_HELPERS_HPP_931BBC99_EBFA_4692_8FBE_B555998C2C39_INCLUDED) +#define BOOST_MACRO_HELPERS_HPP_931BBC99_EBFA_4692_8FBE_B555998C2C39_INCLUDED #include @@ -342,4 +342,4 @@ namespace impl { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(MACRO_HELPERS_HPP_931BBC99_EBFA_4692_8FBE_B555998C2C39_INCLUDED) +#endif // !defined(BOOST_MACRO_HELPERS_HPP_931BBC99_EBFA_4692_8FBE_B555998C2C39_INCLUDED) diff --git a/include/boost/wave/util/symbol_table.hpp b/include/boost/wave/util/symbol_table.hpp index 414bd9926..40d7905f0 100644 --- a/include/boost/wave/util/symbol_table.hpp +++ b/include/boost/wave/util/symbol_table.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(SYMBOL_TABLE_HPP_32B0F7C6_3DD6_4113_95A5_E16516C6F45A_INCLUDED) -#define SYMBOL_TABLE_HPP_32B0F7C6_3DD6_4113_95A5_E16516C6F45A_INCLUDED +#if !defined(BOOST_SYMBOL_TABLE_HPP_32B0F7C6_3DD6_4113_95A5_E16516C6F45A_INCLUDED) +#define BOOST_SYMBOL_TABLE_HPP_32B0F7C6_3DD6_4113_95A5_E16516C6F45A_INCLUDED #include @@ -117,4 +117,4 @@ struct symbol_table #include BOOST_ABI_SUFFIX #endif -#endif // !defined(SYMBOL_TABLE_HPP_32B0F7C6_3DD6_4113_95A5_E16516C6F45A_INCLUDED) +#endif // !defined(BOOST_SYMBOL_TABLE_HPP_32B0F7C6_3DD6_4113_95A5_E16516C6F45A_INCLUDED) diff --git a/include/boost/wave/util/time_conversion_helper.hpp b/include/boost/wave/util/time_conversion_helper.hpp index 643930eed..c0d8eeba1 100644 --- a/include/boost/wave/util/time_conversion_helper.hpp +++ b/include/boost/wave/util/time_conversion_helper.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(TIME_CONVERSION_HELPER_HPP_DA97E389_1797_43BA_82AE_B071064B3EF4_INCLUDED) -#define TIME_CONVERSION_HELPER_HPP_DA97E389_1797_43BA_82AE_B071064B3EF4_INCLUDED +#if !defined(BOOST_TIME_CONVERSION_HELPER_HPP_DA97E389_1797_43BA_82AE_B071064B3EF4_INCLUDED) +#define BOOST_TIME_CONVERSION_HELPER_HPP_DA97E389_1797_43BA_82AE_B071064B3EF4_INCLUDED #include #include @@ -150,4 +150,4 @@ using namespace time_conversion; #include BOOST_ABI_SUFFIX #endif -#endif // !defined(TIME_CONVERSION_HELPER_HPP_DA97E389_1797_43BA_82AE_B071064B3EF4_INCLUDED) +#endif // !defined(BOOST_TIME_CONVERSION_HELPER_HPP_DA97E389_1797_43BA_82AE_B071064B3EF4_INCLUDED) diff --git a/include/boost/wave/util/transform_iterator.hpp b/include/boost/wave/util/transform_iterator.hpp index a9cdd6784..fc874bd91 100644 --- a/include/boost/wave/util/transform_iterator.hpp +++ b/include/boost/wave/util/transform_iterator.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(TRANSFORM_ITERATOR_HPP_D492C659_88C7_4258_8C42_192F9AE80EC0_INCLUDED) -#define TRANSFORM_ITERATOR_HPP_D492C659_88C7_4258_8C42_192F9AE80EC0_INCLUDED +#if !defined(BOOST_TRANSFORM_ITERATOR_HPP_D492C659_88C7_4258_8C42_192F9AE80EC0_INCLUDED) +#define BOOST_TRANSFORM_ITERATOR_HPP_D492C659_88C7_4258_8C42_192F9AE80EC0_INCLUDED #include #include @@ -86,4 +86,4 @@ namespace impl { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(TRANSFORM_ITERATOR_HPP_D492C659_88C7_4258_8C42_192F9AE80EC0_INCLUDED) +#endif // !defined(BOOST_TRANSFORM_ITERATOR_HPP_D492C659_88C7_4258_8C42_192F9AE80EC0_INCLUDED) diff --git a/include/boost/wave/util/unput_queue_iterator.hpp b/include/boost/wave/util/unput_queue_iterator.hpp index 7ec14a8de..37df9f66b 100644 --- a/include/boost/wave/util/unput_queue_iterator.hpp +++ b/include/boost/wave/util/unput_queue_iterator.hpp @@ -9,8 +9,8 @@ Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(UNPUT_QUEUE_ITERATOR_HPP_76DA23D0_4893_4AD5_ABCC_6CED7CFB89BC_INCLUDED) -#define UNPUT_QUEUE_ITERATOR_HPP_76DA23D0_4893_4AD5_ABCC_6CED7CFB89BC_INCLUDED +#if !defined(BOOST_UNPUT_QUEUE_ITERATOR_HPP_76DA23D0_4893_4AD5_ABCC_6CED7CFB89BC_INCLUDED) +#define BOOST_UNPUT_QUEUE_ITERATOR_HPP_76DA23D0_4893_4AD5_ABCC_6CED7CFB89BC_INCLUDED #include @@ -292,4 +292,4 @@ namespace impl { #include BOOST_ABI_SUFFIX #endif -#endif // !defined(UNPUT_QUEUE_ITERATOR_HPP_76DA23D0_4893_4AD5_ABCC_6CED7CFB89BC_INCLUDED) +#endif // !defined(BOOST_UNPUT_QUEUE_ITERATOR_HPP_76DA23D0_4893_4AD5_ABCC_6CED7CFB89BC_INCLUDED) diff --git a/include/boost/wave/wave_config.hpp b/include/boost/wave/wave_config.hpp index 9c345c85d..943e762ea 100644 --- a/include/boost/wave/wave_config.hpp +++ b/include/boost/wave/wave_config.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) -#define WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED +#if !defined(BOOST_WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) +#define BOOST_WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED #include #include @@ -516,4 +516,4 @@ namespace boost { namespace wave #endif #endif -#endif // !defined(WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) +#endif // !defined(BOOST_WAVE_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) diff --git a/include/boost/wave/wave_version.hpp b/include/boost/wave/wave_version.hpp index 7b143ca76..8e6e4efe2 100644 --- a/include/boost/wave/wave_version.hpp +++ b/include/boost/wave/wave_version.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(WAVE_VERSION_H_9D79ABDB_AC54_4C0A_89B1_F70A2DCFE21E_INCLUDED) -#define WAVE_VERSION_H_9D79ABDB_AC54_4C0A_89B1_F70A2DCFE21E_INCLUDED +#if !defined(BOOST_WAVE_VERSION_H_9D79ABDB_AC54_4C0A_89B1_F70A2DCFE21E_INCLUDED) +#define BOOST_WAVE_VERSION_H_9D79ABDB_AC54_4C0A_89B1_F70A2DCFE21E_INCLUDED // BOOST_WAVE_VERSION & 0x0000FF is the sub-minor version // BOOST_WAVE_VERSION & 0x00FF00 is the minor version @@ -23,4 +23,4 @@ #define BOOST_WAVE_VERSION_MINOR 3 #define BOOST_WAVE_VERSION_SUBMINOR 2 -#endif // !defined(WAVE_VERSION_H_9D79ABDB_AC54_4C0A_89B1_F70A2DCFE21E_INCLUDED) +#endif // !defined(BOOST_WAVE_VERSION_H_9D79ABDB_AC54_4C0A_89B1_F70A2DCFE21E_INCLUDED) diff --git a/include/boost/wave/whitespace_handling.hpp b/include/boost/wave/whitespace_handling.hpp index f80785f88..42dba42be 100644 --- a/include/boost/wave/whitespace_handling.hpp +++ b/include/boost/wave/whitespace_handling.hpp @@ -10,8 +10,8 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(WHITESPACE_HANDLING_HPP_INCLUDED) -#define WHITESPACE_HANDLING_HPP_INCLUDED +#if !defined(BOOST_WHITESPACE_HANDLING_HPP_INCLUDED) +#define BOOST_WHITESPACE_HANDLING_HPP_INCLUDED #include #include @@ -292,5 +292,5 @@ eat_whitespace::whitespace(TokenT &token, bool &skipped_newline) #include BOOST_ABI_SUFFIX #endif -#endif // !defined(WHITESPACE_HANDLING_HPP_INCLUDED) +#endif // !defined(BOOST_WHITESPACE_HANDLING_HPP_INCLUDED) diff --git a/samples/cpp_tokens/cpp_tokens.hpp b/samples/cpp_tokens/cpp_tokens.hpp index a4903696b..0ace0a91f 100644 --- a/samples/cpp_tokens/cpp_tokens.hpp +++ b/samples/cpp_tokens/cpp_tokens.hpp @@ -13,8 +13,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_TOKENS_HPP_D6A31137_CE14_4869_9779_6357E2C43187_INCLUDED) -#define CPP_TOKENS_HPP_D6A31137_CE14_4869_9779_6357E2C43187_INCLUDED +#if !defined(BOOST_CPP_TOKENS_HPP_D6A31137_CE14_4869_9779_6357E2C43187_INCLUDED) +#define BOOST_CPP_TOKENS_HPP_D6A31137_CE14_4869_9779_6357E2C43187_INCLUDED /////////////////////////////////////////////////////////////////////////////// // include often used files from the stdlib @@ -35,4 +35,4 @@ #include #include -#endif // !defined(CPP_TOKENS_HPP_D6A31137_CE14_4869_9779_6357E2C43187_INCLUDED) +#endif // !defined(BOOST_CPP_TOKENS_HPP_D6A31137_CE14_4869_9779_6357E2C43187_INCLUDED) diff --git a/samples/cpp_tokens/cpp_tokens_config.hpp b/samples/cpp_tokens/cpp_tokens_config.hpp index 80fa5ac24..8359a1ef8 100644 --- a/samples/cpp_tokens/cpp_tokens_config.hpp +++ b/samples/cpp_tokens/cpp_tokens_config.hpp @@ -11,8 +11,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_TOKENS_HPP_7C0F1F14_6ACA_4439_A073_32C61C0DB6C5_INCLUDED) -#define CPP_TOKENS_HPP_7C0F1F14_6ACA_4439_A073_32C61C0DB6C5_INCLUDED +#if !defined(BOOST_CPP_TOKENS_HPP_7C0F1F14_6ACA_4439_A073_32C61C0DB6C5_INCLUDED) +#define BOOST_CPP_TOKENS_HPP_7C0F1F14_6ACA_4439_A073_32C61C0DB6C5_INCLUDED /////////////////////////////////////////////////////////////////////////////// // Uncomment the following, if you need debug output, the @@ -52,4 +52,4 @@ #pragma inline_recursion(on) #endif // defined(BOOST_MSVC) -#endif // !defined(CPP_TOKENS_HPP_7C0F1F14_6ACA_4439_A073_32C61C0DB6C5_INCLUDED) +#endif // !defined(BOOST_CPP_TOKENS_HPP_7C0F1F14_6ACA_4439_A073_32C61C0DB6C5_INCLUDED) diff --git a/samples/cpp_tokens/slex/cpp_slex_lexer.hpp b/samples/cpp_tokens/slex/cpp_slex_lexer.hpp index 945ac496a..108ac996c 100644 --- a/samples/cpp_tokens/slex/cpp_slex_lexer.hpp +++ b/samples/cpp_tokens/slex/cpp_slex_lexer.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(SLEX_LEXER_HPP_5E8E1DF0_BB41_4938_B7E5_A4BB68222FF6_INCLUDED) -#define SLEX_LEXER_HPP_5E8E1DF0_BB41_4938_B7E5_A4BB68222FF6_INCLUDED +#if !defined(BOOST_SLEX_LEXER_HPP_5E8E1DF0_BB41_4938_B7E5_A4BB68222FF6_INCLUDED) +#define BOOST_SLEX_LEXER_HPP_5E8E1DF0_BB41_4938_B7E5_A4BB68222FF6_INCLUDED #include #if defined(BOOST_SPIRIT_DEBUG) @@ -824,4 +824,4 @@ new_lexer_gen::new_lexer(IteratorT const &first, } // namespace wave } // namespace boost -#endif // !defined(SLEX_LEXER_HPP_5E8E1DF0_BB41_4938_B7E5_A4BB68222FF6_INCLUDED) +#endif // !defined(BOOST_SLEX_LEXER_HPP_5E8E1DF0_BB41_4938_B7E5_A4BB68222FF6_INCLUDED) diff --git a/samples/cpp_tokens/slex_interface.hpp b/samples/cpp_tokens/slex_interface.hpp index c89c2e9ac..345625345 100644 --- a/samples/cpp_tokens/slex_interface.hpp +++ b/samples/cpp_tokens/slex_interface.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(SLEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) -#define SLEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED +#if !defined(BOOST_SLEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) +#define BOOST_SLEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED #include #include @@ -85,4 +85,4 @@ struct slex_input_interface } // namespace wave } // namespace boost -#endif // !defined(SLEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) +#endif // !defined(BOOST_SLEX_INTERFACE_HPP_E83F52A4_90AC_4FBE_A9A7_B65F7F94C497_INCLUDED) diff --git a/samples/cpp_tokens/slex_token.hpp b/samples/cpp_tokens/slex_token.hpp index 8a54776d7..223441619 100644 --- a/samples/cpp_tokens/slex_token.hpp +++ b/samples/cpp_tokens/slex_token.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(SLEX_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) -#define SLEX_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED +#if !defined(BOOST_SLEX_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) +#define BOOST_SLEX_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED #include #include @@ -142,4 +142,4 @@ token_is_valid(slex_token const& t) } // namespace wave } // namespace boost -#endif // !defined(SLEX_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) +#endif // !defined(BOOST_SLEX_TOKEN_HPP_53A13BD2_FBAA_444B_9B8B_FCB225C2BBA8_INCLUDED) diff --git a/samples/hannibal/translation_unit_parser.h b/samples/hannibal/translation_unit_parser.h index 5ff64f1b8..7751283ff 100644 --- a/samples/hannibal/translation_unit_parser.h +++ b/samples/hannibal/translation_unit_parser.h @@ -9,8 +9,8 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#if !defined(HANNIBAL_TRANSLATION_UNIT_GRAMMAR_H_INCLUDED) -#define HANNIBAL_TRANSLATION_UNIT_GRAMMAR_H_INCLUDED +#if !defined(BOOST_HANNIBAL_TRANSLATION_UNIT_GRAMMAR_H_INCLUDED) +#define BOOST_HANNIBAL_TRANSLATION_UNIT_GRAMMAR_H_INCLUDED #include #if defined(HANNIBAL_TRACE_DECLARATIONS) @@ -1345,4 +1345,4 @@ struct translation_unit_grammar #undef HANNIBAL_REGISTER_RULE #undef HANNIBAL_TRACE_TRANSLATION_UNIT_GRAMMAR -#endif // HANNIBAL_TRANSLATION_UNIT_GRAMMAR_H_INCLUDED +#endif // BOOST_HANNIBAL_TRANSLATION_UNIT_GRAMMAR_H_INCLUDED diff --git a/samples/hannibal/translation_unit_skipper.h b/samples/hannibal/translation_unit_skipper.h index 4dc2e2737..03d50af8d 100644 --- a/samples/hannibal/translation_unit_skipper.h +++ b/samples/hannibal/translation_unit_skipper.h @@ -9,8 +9,8 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#if !defined(HANNIBAL_TRANSLATION_UNIT_SKIPPER_H_INCLUDED) -#define HANNIBAL_TRANSLATION_UNIT_SKIPPER_H_INCLUDED +#if !defined(BOOST_HANNIBAL_TRANSLATION_UNIT_SKIPPER_H_INCLUDED) +#define BOOST_HANNIBAL_TRANSLATION_UNIT_SKIPPER_H_INCLUDED #include #include @@ -48,4 +48,4 @@ struct translation_unit_skipper }; }; -#endif // HANNIBAL_TRANSLATION_UNIT_SKIPPER_H_INCLUDED +#endif // BOOST_HANNIBAL_TRANSLATION_UNIT_SKIPPER_H_INCLUDED diff --git a/samples/list_includes/list_includes.hpp b/samples/list_includes/list_includes.hpp index 5b8d9f146..71f04c090 100644 --- a/samples/list_includes/list_includes.hpp +++ b/samples/list_includes/list_includes.hpp @@ -11,8 +11,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(LIST_INCLUDES_HPP_843DB412_3AA8_4BCF_8081_AA4A5FDE0BE7_INCLUDED) -#define LIST_INCLUDES_HPP_843DB412_3AA8_4BCF_8081_AA4A5FDE0BE7_INCLUDED +#if !defined(BOOST_LIST_INCLUDES_HPP_843DB412_3AA8_4BCF_8081_AA4A5FDE0BE7_INCLUDED) +#define BOOST_LIST_INCLUDES_HPP_843DB412_3AA8_4BCF_8081_AA4A5FDE0BE7_INCLUDED /////////////////////////////////////////////////////////////////////////////// // include often used files from the stdlib @@ -39,4 +39,4 @@ #include #include -#endif // !defined(LIST_INCLUDES_HPP_843DB412_3AA8_4BCF_8081_AA4A5FDE0BE7_INCLUDED) +#endif // !defined(BOOST_LIST_INCLUDES_HPP_843DB412_3AA8_4BCF_8081_AA4A5FDE0BE7_INCLUDED) diff --git a/samples/list_includes/list_includes_config.hpp b/samples/list_includes/list_includes_config.hpp index 59556af09..f6380feb8 100644 --- a/samples/list_includes/list_includes_config.hpp +++ b/samples/list_includes/list_includes_config.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(LIST_INCLUDES_CONFIG_HPP_0DE80E47_8D50_4DFA_9C1C_0EECAA8A934A_INCLUDED) -#define LIST_INCLUDES_CONFIG_HPP_0DE80E47_8D50_4DFA_9C1C_0EECAA8A934A_INCLUDED +#if !defined(BOOST_LIST_INCLUDES_CONFIG_HPP_0DE80E47_8D50_4DFA_9C1C_0EECAA8A934A_INCLUDED) +#define BOOST_LIST_INCLUDES_CONFIG_HPP_0DE80E47_8D50_4DFA_9C1C_0EECAA8A934A_INCLUDED /////////////////////////////////////////////////////////////////////////////// // Uncomment the following, if you need debug output, the @@ -61,4 +61,4 @@ #pragma inline_recursion(on) #endif // defined(BOOST_MSVC) -#endif // !defined(LIST_INCLUDES_CONFIG_HPP_0DE80E47_8D50_4DFA_9C1C_0EECAA8A934A_INCLUDED) +#endif // !defined(BOOST_LIST_INCLUDES_CONFIG_HPP_0DE80E47_8D50_4DFA_9C1C_0EECAA8A934A_INCLUDED) diff --git a/samples/list_includes/list_includes_version.hpp b/samples/list_includes/list_includes_version.hpp index 8f517e080..f7772e87f 100644 --- a/samples/list_includes/list_includes_version.hpp +++ b/samples/list_includes/list_includes_version.hpp @@ -10,11 +10,11 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(LIST_INCLUDES_VERSION_HPP_FF662D6C_C3E6_4BEC_A062_5D9BD7415EBF_INCLUDED) -#define LIST_INCLUDES_VERSION_HPP_FF662D6C_C3E6_4BEC_A062_5D9BD7415EBF_INCLUDED +#if !defined(BOOST_LIST_INCLUDES_VERSION_HPP_FF662D6C_C3E6_4BEC_A062_5D9BD7415EBF_INCLUDED) +#define BOOST_LIST_INCLUDES_VERSION_HPP_FF662D6C_C3E6_4BEC_A062_5D9BD7415EBF_INCLUDED #define LIST_INCLUDES_VERSION_MAJOR 0 #define LIST_INCLUDES_VERSION_MINOR 4 #define LIST_INCLUDES_VERSION_SUBMINOR 0 -#endif // !defined(LIST_INCLUDES_VERSION_HPP_FF662D6C_C3E6_4BEC_A062_5D9BD7415EBF_INCLUDED) +#endif // !defined(BOOST_LIST_INCLUDES_VERSION_HPP_FF662D6C_C3E6_4BEC_A062_5D9BD7415EBF_INCLUDED) diff --git a/samples/real_positions/correct_token_positions.hpp b/samples/real_positions/correct_token_positions.hpp index e42fd08c9..b29a4b768 100644 --- a/samples/real_positions/correct_token_positions.hpp +++ b/samples/real_positions/correct_token_positions.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CORRECT_TOKEN_POSITIONS_HK_061106_INCLUDED) -#define CORRECT_TOKEN_POSITIONS_HK_061106_INCLUDED +#if !defined(BOOST_CORRECT_TOKEN_POSITIONS_HK_061106_INCLUDED) +#define BOOST_CORRECT_TOKEN_POSITIONS_HK_061106_INCLUDED #include diff --git a/samples/real_positions/real_position_token.hpp b/samples/real_positions/real_position_token.hpp index 413cf81c2..4d386a284 100644 --- a/samples/real_positions/real_position_token.hpp +++ b/samples/real_positions/real_position_token.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(REAL_POSITION_TOKEN_HPP_HK_061109_INCLUDED) -#define REAL_POSITION_TOKEN_HPP_HK_061109_INCLUDED +#if !defined(BOOST_REAL_POSITION_TOKEN_HPP_HK_061109_INCLUDED) +#define BOOST_REAL_POSITION_TOKEN_HPP_HK_061109_INCLUDED #include #include @@ -215,4 +215,4 @@ token_is_valid(lex_token const& t) return t.is_valid(); } -#endif // !defined(REAL_POSITION_TOKEN_HPP_HK_061109_INCLUDED) +#endif // !defined(BOOST_REAL_POSITION_TOKEN_HPP_HK_061109_INCLUDED) diff --git a/samples/token_statistics/collect_token_statistics.hpp b/samples/token_statistics/collect_token_statistics.hpp index 971eb4955..aca26b87f 100644 --- a/samples/token_statistics/collect_token_statistics.hpp +++ b/samples/token_statistics/collect_token_statistics.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(COLLECT_TOKEN_STATISTICS_VERSION_HPP) -#define COLLECT_TOKEN_STATISTICS_VERSION_HPP +#if !defined(BOOST_COLLECT_TOKEN_STATISTICS_VERSION_HPP) +#define BOOST_COLLECT_TOKEN_STATISTICS_VERSION_HPP #include #include @@ -69,4 +69,4 @@ class collect_token_statistics int token_count[count]; }; -#endif // !defined(COLLECT_TOKEN_STATISTICS_VERSION_HPP) +#endif // !defined(BOOST_COLLECT_TOKEN_STATISTICS_VERSION_HPP) diff --git a/samples/token_statistics/token_statistics.hpp b/samples/token_statistics/token_statistics.hpp index 8c7fff328..30a640d2c 100644 --- a/samples/token_statistics/token_statistics.hpp +++ b/samples/token_statistics/token_statistics.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(TOKEN_STATISTICS_HPP) -#define TOKEN_STATISTICS_HPP +#if !defined(BOOST_TOKEN_STATISTICS_HPP) +#define BOOST_TOKEN_STATISTICS_HPP /////////////////////////////////////////////////////////////////////////////// // include often used files from the stdlib @@ -46,4 +46,4 @@ // include required boost libraries #include -#endif // !defined(TOKEN_STATISTICS_HPP) +#endif // !defined(BOOST_TOKEN_STATISTICS_HPP) diff --git a/samples/token_statistics/token_statistics_version.hpp b/samples/token_statistics/token_statistics_version.hpp index 5092a9e6e..f9d4a39fd 100644 --- a/samples/token_statistics/token_statistics_version.hpp +++ b/samples/token_statistics/token_statistics_version.hpp @@ -10,11 +10,11 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(TOKEN_STATISTICS_VERSION_HPP) -#define TOKEN_STATISTICS_VERSION_HPP +#if !defined(BOOST_TOKEN_STATISTICS_VERSION_HPP) +#define BOOST_TOKEN_STATISTICS_VERSION_HPP #define TOKEN_STATISTICS_VERSION_MAJOR 0 #define TOKEN_STATISTICS_VERSION_MINOR 1 #define TOKEN_STATISTICS_VERSION_SUBMINOR 0 -#endif // !defined(TOKEN_STATISTICS_VERSION_HPP) +#endif // !defined(BOOST_TOKEN_STATISTICS_VERSION_HPP) diff --git a/samples/token_statistics/xlex/xlex_lexer.hpp b/samples/token_statistics/xlex/xlex_lexer.hpp index a55250e0c..d9fe0ce33 100644 --- a/samples/token_statistics/xlex/xlex_lexer.hpp +++ b/samples/token_statistics/xlex/xlex_lexer.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(XLEX_LEXER_HPP) -#define XLEX_LEXER_HPP +#if !defined(BOOST_XLEX_LEXER_HPP) +#define BOOST_XLEX_LEXER_HPP #include #include @@ -592,4 +592,4 @@ new_lexer_gen::new_lexer(Iterator const &first, } // namespace wave } // namespace boost -#endif // !defined(XLEX_LEXER_HPP) +#endif // !defined(BOOST_XLEX_LEXER_HPP) diff --git a/samples/token_statistics/xlex/xpressive_lexer.hpp b/samples/token_statistics/xlex/xpressive_lexer.hpp index 0e62ccc46..99b06a438 100644 --- a/samples/token_statistics/xlex/xpressive_lexer.hpp +++ b/samples/token_statistics/xlex/xpressive_lexer.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(XPRESSIVE_LEXER_HPP) -#define XPRESSIVE_LEXER_HPP +#if !defined(BOOST_XPRESSIVE_LEXER_HPP) +#define BOOST_XPRESSIVE_LEXER_HPP #include #include @@ -130,6 +130,6 @@ xpressive_lexer::next_token( /////////////////////////////////////////////////////////////////////////////// }}}} // boost::wave::cpplexer::xlex -#endif // !defined(XPRESSIVE_LEXER_HPP) +#endif // !defined(BOOST_XPRESSIVE_LEXER_HPP) diff --git a/samples/token_statistics/xlex_interface.hpp b/samples/token_statistics/xlex_interface.hpp index a1edabd89..92887e52d 100644 --- a/samples/token_statistics/xlex_interface.hpp +++ b/samples/token_statistics/xlex_interface.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(XLEX_INTERFACE_HPP) -#define XLEX_INTERFACE_HPP +#if !defined(BOOST_XLEX_INTERFACE_HPP) +#define BOOST_XLEX_INTERFACE_HPP #include #include @@ -86,4 +86,4 @@ struct xlex_input_interface } // namespace wave } // namespace boost -#endif // !defined(XLEX_INTERFACE_HPP) +#endif // !defined(BOOST_XLEX_INTERFACE_HPP) diff --git a/samples/waveidl/idl.hpp b/samples/waveidl/idl.hpp index ee565f7af..6dda508e5 100644 --- a/samples/waveidl/idl.hpp +++ b/samples/waveidl/idl.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(IDL_HPP_FC7EE131_5CE9_43F2_A713_8D9BBC3C8477_INCLUDED) -#define IDL_HPP_FC7EE131_5CE9_43F2_A713_8D9BBC3C8477_INCLUDED +#if !defined(BOOST_IDL_HPP_FC7EE131_5CE9_43F2_A713_8D9BBC3C8477_INCLUDED) +#define BOOST_IDL_HPP_FC7EE131_5CE9_43F2_A713_8D9BBC3C8477_INCLUDED /////////////////////////////////////////////////////////////////////////////// // This file may be used as a precompiled header (if applicable) @@ -42,4 +42,4 @@ #include #include -#endif // !defined(IDL_HPP_FC7EE131_5CE9_43F2_A713_8D9BBC3C8477_INCLUDED) +#endif // !defined(BOOST_IDL_HPP_FC7EE131_5CE9_43F2_A713_8D9BBC3C8477_INCLUDED) diff --git a/samples/waveidl/idl_config.hpp b/samples/waveidl/idl_config.hpp index a7314fb35..29de82b56 100644 --- a/samples/waveidl/idl_config.hpp +++ b/samples/waveidl/idl_config.hpp @@ -11,8 +11,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED) -#define IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED +#if !defined(BOOST_IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED) +#define BOOST_IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED /////////////////////////////////////////////////////////////////////////////// // Uncomment the following, if you need debug output, the @@ -62,4 +62,4 @@ #pragma inline_recursion(on) #endif // defined(BOOST_MSVC) -#endif // !defined(IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED) +#endif // !defined(BOOST_IDL_CONFIG_HPP_012D7524_FF3F_482F_9123_91966C72F4EA_INCLUDED) diff --git a/samples/waveidl/idl_version.hpp b/samples/waveidl/idl_version.hpp index 3ab6ade36..86960ef2c 100644 --- a/samples/waveidl/idl_version.hpp +++ b/samples/waveidl/idl_version.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(IDL_VERSION_HPP_780C1190_3107_440B_B303_B687A449749B_INCLUDED) -#define IDL_VERSION_HPP_780C1190_3107_440B_B303_B687A449749B_INCLUDED +#if !defined(BOOST_IDL_VERSION_HPP_780C1190_3107_440B_B303_B687A449749B_INCLUDED) +#define BOOST_IDL_VERSION_HPP_780C1190_3107_440B_B303_B687A449749B_INCLUDED #include @@ -20,4 +20,4 @@ #define IDL_VERSION_SUBMINOR BOOST_WAVE_VERSION_SUBMINOR #define IDL_VERSION_DATE 20050117L -#endif // !defined(IDL_VERSION_HPP_780C1190_3107_440B_B303_B687A449749B_INCLUDED) +#endif // !defined(BOOST_IDL_VERSION_HPP_780C1190_3107_440B_B303_B687A449749B_INCLUDED) diff --git a/samples/waveidl/idllexer/idl_lex_interface.hpp b/samples/waveidl/idllexer/idl_lex_interface.hpp index 3ee295d87..ac89e0c1f 100644 --- a/samples/waveidl/idllexer/idl_lex_interface.hpp +++ b/samples/waveidl/idllexer/idl_lex_interface.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(IDL_LEX_INTERFACE_HPP_INCLUDED) -#define IDL_LEX_INTERFACE_HPP_INCLUDED +#if !defined(BOOST_IDL_LEX_INTERFACE_HPP_INCLUDED) +#define BOOST_IDL_LEX_INTERFACE_HPP_INCLUDED #include #include @@ -75,4 +75,4 @@ struct lex_input_interface_generator } // namespace wave } // namespace boost -#endif // !defined(IDL_LEX_INTERFACE_HPP_INCLUDED) +#endif // !defined(BOOST_IDL_LEX_INTERFACE_HPP_INCLUDED) diff --git a/samples/waveidl/idllexer/idl_re.hpp b/samples/waveidl/idllexer/idl_re.hpp index 3b4f1ebd7..719b39d53 100644 --- a/samples/waveidl/idllexer/idl_re.hpp +++ b/samples/waveidl/idllexer/idl_re.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(IDL_RE_HPP_BD62775D_1659_4684_872C_03C02543C9A5_INCLUDED) -#define IDL_RE_HPP_BD62775D_1659_4684_872C_03C02543C9A5_INCLUDED +#if !defined(BOOST_IDL_RE_HPP_BD62775D_1659_4684_872C_03C02543C9A5_INCLUDED) +#define BOOST_IDL_RE_HPP_BD62775D_1659_4684_872C_03C02543C9A5_INCLUDED #include @@ -361,4 +361,4 @@ BOOST_WAVE_DECL boost::wave::token_id scan( #undef RE2C_ASSERT -#endif // !defined(IDL_RE_HPP_BD62775D_1659_4684_872C_03C02543C9A5_INCLUDED) +#endif // !defined(BOOST_IDL_RE_HPP_BD62775D_1659_4684_872C_03C02543C9A5_INCLUDED) diff --git a/samples/waveidl/idllexer/idl_re2c_lexer.hpp b/samples/waveidl/idllexer/idl_re2c_lexer.hpp index e5d9a3a03..8fb224065 100644 --- a/samples/waveidl/idllexer/idl_re2c_lexer.hpp +++ b/samples/waveidl/idllexer/idl_re2c_lexer.hpp @@ -10,8 +10,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(IDL_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) -#define IDL_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED +#if !defined(BOOST_IDL_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) +#define BOOST_IDL_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED #include #include @@ -268,4 +268,4 @@ new_lexer_gen::new_lexer(IteratorT const &first, } // namespace wave } // namespace boost -#endif // !defined(IDL_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) +#endif // !defined(BOOST_IDL_RE2C_LEXER_HPP_B81A2629_D5B1_4944_A97D_60254182B9A8_INCLUDED) diff --git a/tool/cpp.hpp b/tool/cpp.hpp index 856175043..7dd7001da 100644 --- a/tool/cpp.hpp +++ b/tool/cpp.hpp @@ -8,8 +8,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_HPP_920D0370_741F_44AF_BF86_F6104BDACF75_INCLUDED) -#define CPP_HPP_920D0370_741F_44AF_BF86_F6104BDACF75_INCLUDED +#if !defined(BOOST_CPP_HPP_920D0370_741F_44AF_BF86_F6104BDACF75_INCLUDED) +#define BOOST_CPP_HPP_920D0370_741F_44AF_BF86_F6104BDACF75_INCLUDED /////////////////////////////////////////////////////////////////////////////// // This file may be used as a precompiled header (if applicable) @@ -39,4 +39,4 @@ #include #include -#endif // !defined(CPP_HPP_920D0370_741F_44AF_BF86_F6104BDACF75_INCLUDED) +#endif // !defined(BOOST_CPP_HPP_920D0370_741F_44AF_BF86_F6104BDACF75_INCLUDED) diff --git a/tool/cpp_config.hpp b/tool/cpp_config.hpp index e6e4f63e2..ad573f1ae 100644 --- a/tool/cpp_config.hpp +++ b/tool/cpp_config.hpp @@ -9,8 +9,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) -#define CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED +#if !defined(BOOST_CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) +#define BOOST_CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED /////////////////////////////////////////////////////////////////////////////// // Uncomment the following, if you need debug output, the @@ -60,4 +60,4 @@ #pragma inline_recursion(on) #endif // defined(BOOST_MSVC) -#endif // !defined(CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) +#endif // !defined(BOOST_CPP_CONFIG_HPP_F143F90A_A63F_4B27_AC41_9CA4F14F538D_INCLUDED) diff --git a/tool/cpp_version.hpp b/tool/cpp_version.hpp index 43330c2c9..c9b75f8b2 100644 --- a/tool/cpp_version.hpp +++ b/tool/cpp_version.hpp @@ -7,8 +7,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(CPP_VERSION_HPP_CE4FE67F_63F9_468D_8364_C855F89D3C5D_INCLUDED) -#define CPP_VERSION_HPP_CE4FE67F_63F9_468D_8364_C855F89D3C5D_INCLUDED +#if !defined(BOOST_CPP_VERSION_HPP_CE4FE67F_63F9_468D_8364_C855F89D3C5D_INCLUDED) +#define BOOST_CPP_VERSION_HPP_CE4FE67F_63F9_468D_8364_C855F89D3C5D_INCLUDED #include @@ -22,4 +22,4 @@ #define CPP_VERSION_DATE 20120523L #define CPP_VERSION_DATE_STR "20120523" -#endif // !defined(CPP_VERSION_HPP_CE4FE67F_63F9_468D_8364_C855F89D3C5D_INCLUDED) +#endif // !defined(BOOST_CPP_VERSION_HPP_CE4FE67F_63F9_468D_8364_C855F89D3C5D_INCLUDED) diff --git a/tool/stop_watch.hpp b/tool/stop_watch.hpp index bdbc9334e..6a35fce2d 100644 --- a/tool/stop_watch.hpp +++ b/tool/stop_watch.hpp @@ -7,8 +7,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(STOP_WATCH_HPP_HK040911_INCLUDED) -#define STOP_WATCH_HPP_HK040911_INCLUDED +#if !defined(BOOST_STOP_WATCH_HPP_HK040911_INCLUDED) +#define BOOST_STOP_WATCH_HPP_HK040911_INCLUDED #include #include @@ -50,4 +50,4 @@ class stop_watch : public boost::timer::cpu_timer { }; -#endif // !defined(STOP_WATCH_HPP_HK040911_INCLUDED) +#endif // !defined(BOOST_STOP_WATCH_HPP_HK040911_INCLUDED) diff --git a/tool/trace_macro_expansion.hpp b/tool/trace_macro_expansion.hpp index 837b2cd35..c38e80f9b 100644 --- a/tool/trace_macro_expansion.hpp +++ b/tool/trace_macro_expansion.hpp @@ -7,8 +7,8 @@ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =============================================================================*/ -#if !defined(TRACE_MACRO_EXPANSION_HPP_D8469318_8407_4B9D_A19F_13CA60C1661F_INCLUDED) -#define TRACE_MACRO_EXPANSION_HPP_D8469318_8407_4B9D_A19F_13CA60C1661F_INCLUDED +#if !defined(BOOST_TRACE_MACRO_EXPANSION_HPP_D8469318_8407_4B9D_A19F_13CA60C1661F_INCLUDED) +#define BOOST_TRACE_MACRO_EXPANSION_HPP_D8469318_8407_4B9D_A19F_13CA60C1661F_INCLUDED #include #include @@ -1489,4 +1489,4 @@ class trace_macro_expansion #undef BOOST_WAVE_GETSTRING #undef BOOST_WAVE_OSSTREAM -#endif // !defined(TRACE_MACRO_EXPANSION_HPP_D8469318_8407_4B9D_A19F_13CA60C1661F_INCLUDED) +#endif // !defined(BOOST_TRACE_MACRO_EXPANSION_HPP_D8469318_8407_4B9D_A19F_13CA60C1661F_INCLUDED) From 8504d24bf878322efd31ee17b6b1770964c4e737 Mon Sep 17 00:00:00 2001 From: Jeff Trull Date: Mon, 15 Jun 2020 13:22:21 -0700 Subject: [PATCH 2/4] Introduce a new sample that checks macro naming conventions (#97) * Introduce a new sample that checks macro naming conventions This has a direct use in Boost's own QA checks and demonstrates the use of macro definition and include guard callbacks, as well as Boost.Filesystem. --- doc/samples.html | 19 ++ samples/Jamfile.v2 | 1 + samples/check_macro_naming/build/Jamfile.v2 | 20 ++ .../check_macro_naming/check_macro_naming.cpp | 178 ++++++++++++++++++ .../check_macro_naming/check_macro_naming.hpp | 122 ++++++++++++ 5 files changed, 340 insertions(+) create mode 100644 samples/check_macro_naming/build/Jamfile.v2 create mode 100644 samples/check_macro_naming/check_macro_naming.cpp create mode 100644 samples/check_macro_naming/check_macro_naming.hpp diff --git a/doc/samples.html b/doc/samples.html index f5dd1594b..380f56822 100644 --- a/doc/samples.html +++ b/doc/samples.html @@ -94,6 +94,25 @@

The hannibal sample

The hannibal sample shows how to base a spirit grammar on the Wave library. It was initially written and contributed to the Wave library by Danny Havenith (see his related web page here). The grammar of this example uses Wave as its preprocessor. It implements around 120 of the approximately 250 grammar rules as they can be found in The C++ Programming Language, Third Edition. The 120 rules allow a C++ source file to be parsed for all type information and declarations. In fact this grammar parses as good as anything, it parses C++ declarations, including class and template definitions, but skips function bodies. If so configured, the program will output an xml dump of the generated parse tree.

It may be a good starting point for a grammar that can be used for things like reverse engineering as some UML modelling tools do. Or whatever use you may find for a grammar that gives you a list of all templates and classes in a file and their members.

+

The check_macro_naming sample

+

The check_macro_naming sample demonstrates the use of context hooks to understand how macros are defined within a codebase. Some projects (such as Boost itself) have conventions on the names of macros. This sample will recursively search a directory, looking for header files and searching each for macro definitions. Any that do not match the supplied convention (which defaults to ^BOOST_.*) are reported, along with an annotation if they are used as an include guard. The user can also specify any number of directories to ignore in the process.

+

Command line syntax:

+
+Usage: check_macro_naming [options] directory:
+  -h [ --help ]            print out options
+  --match arg (=^BOOST_.*) pattern defined macros must match
+  --exclude arg            subdirectory to skip
+
+

Example usage:

+
+$ check_macro_naming --exclude ./test/testwave/testfiles include
+CPP_CONTEXT_HPP_907485E2_6649_4A87_911B_7F7225F3E5B8_INCLUDED include/boost/wave/cpp_context.hpp (guard)
+WHITESPACE_HANDLING_HPP_INCLUDED include/boost/wave/whitespace_handling.hpp (guard)
+...
+TRACE_CPP_TIME_CONVERSION include/boost/wave/util/time_conversion_helper.hpp
+spirit_append_actor include/boost/wave/util/time_conversion_helper.hpp
+spirit_assign_actor include/boost/wave/util/time_conversion_helper.hpp
+
diff --git a/samples/Jamfile.v2 b/samples/Jamfile.v2 index 2df785dc2..108d08978 100644 --- a/samples/Jamfile.v2 +++ b/samples/Jamfile.v2 @@ -19,3 +19,4 @@ build-project token_statistics/build ; build-project preprocess_pragma_output/build ; build-project custom_directives/build ; build-project emit_custom_line_directives/build ; +build-project check_macro_naming/build ; diff --git a/samples/check_macro_naming/build/Jamfile.v2 b/samples/check_macro_naming/build/Jamfile.v2 new file mode 100644 index 000000000..e400fadfc --- /dev/null +++ b/samples/check_macro_naming/build/Jamfile.v2 @@ -0,0 +1,20 @@ +# Boost.Wave: A Standard compliant C++ preprocessor library +# +# Boost Wave Library Sample Build Jamfile (check_macro_naming) +# +# http://www.boost.org/ +# +# Copyright (c) 2001-2010 Hartmut Kaiser. +# Copyright (c) 2020 Jeff Trull. Distributed under the Boost +# Software License, Version 1.0. (See accompanying file +# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +exe check_macro_naming + : ../check_macro_naming.cpp + /boost/wave//boost_wave + /boost/filesystem//boost_filesystem + /boost/thread//boost_thread + /boost/regex//boost_regex + /boost/program_options//boost_program_options + ; + diff --git a/samples/check_macro_naming/check_macro_naming.cpp b/samples/check_macro_naming/check_macro_naming.cpp new file mode 100644 index 000000000..1e0132980 --- /dev/null +++ b/samples/check_macro_naming/check_macro_naming.cpp @@ -0,0 +1,178 @@ +/*============================================================================= + Boost.Wave: A Standard compliant C++ preprocessor library + Sample demonstrating the usage of advanced preprocessor hooks. + + http://www.boost.org/ + + Copyright (c) 2001-2010 Hartmut Kaiser. + Copyright (c) 2020 Jeff Trull. Distributed under the Boost + Software License, Version 1.0. (See accompanying file + LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#include "check_macro_naming.hpp" +#include "libs/filesystem/include/boost/filesystem/file_status.hpp" + +/////////////////////////////////////////////////////////////////////////////// +// Utilities from the rest of Boost +#include +#include +#include +#include + +/////////////////////////////////////////////////////////////////////////////// +// Wave itself +#include + +/////////////////////////////////////////////////////////////////////////////// +// Include the lexer stuff +#include // token class +#include // lexer class + +#include +#include +#include +#include + +void process_header(std::string const & filename, + boost::regex const & re) { + using namespace boost::wave; + + // data to collect + std::string include_guard; // macro that protects this file, if any + std::set bad_macros; // misnamed macros in this file + + try { + // create a fake main program in memory to include our header from + std::string fake_main("#include \""); + fake_main += filename; + fake_main += "\"\n"; + + typedef cpplexer::lex_token<> token_type; + typedef cpplexer::lex_iterator lex_iterator_type; + typedef context + context_type; + + context_type ctx (fake_main.begin(), fake_main.end(), "in-memory.cpp", + macroname_preprocessing_hooks(re, bad_macros, + include_guard)); + + // consume input, letting the hooks do the work + context_type::iterator_type last = ctx.end(); + for (context_type::iterator_type it = ctx.begin(); it != last; ++it); + + std::set::const_iterator beg = bad_macros.begin(); + std::set::const_iterator end = bad_macros.end(); + if (beg != end) { + // we have some macros that don't follow convention + for (std::set::const_iterator it = beg; + it != end; ++it) { + std::cout << *it << " " << filename; + if (*it == include_guard) + std::cout << " (guard)\n"; + else + std::cout << "\n"; + } + } + } catch (preprocess_exception const& e) { + // some preprocessing error + std::cerr + << e.file_name() << "(" << e.line_no() << "): " + << e.description() << std::endl; + } catch (cpplexer::lexing_exception const& e) { + std::cerr + << e.file_name() << "(" << e.line_no() << "): " + << e.description() << std::endl; + } +} + +/////////////////////////////////////////////////////////////////////////////// +// Main entry point +// +// This sample shows how to check macros defined in header files to ensure +// they conform to a standard naming convention. It uses hooks for +// macro definition and include guard events to collect and report results. + +int main(int argc, char *argv[]) +{ + + // argument processing + namespace po = boost::program_options; + po::options_description visible("Usage: check_macro_naming [options] directory"); + // named arguments + visible.add_options() + ("help,h", "print out options") + ("match", po::value()->default_value("^BOOST_.*"), + "pattern defined macros must match") + ("exclude", po::value >(), "subdirectory to skip"); + + // positional arguments + po::positional_options_description p; + p.add("dirname", 1); + // this positional option should not be displayed as a named, so we separate it: + po::options_description hidden; + hidden.add_options()("dirname", po::value()); + + // combine visible and hidden for parsing: + po::options_description desc; + desc.add(visible).add(hidden); + + po::variables_map vm; + po::store(po::command_line_parser(argc, argv) + .options(desc) + .positional(p) + .run(), + vm); + po::notify(vm); + + if (vm.count("help") || (vm.count("dirname") == 0)) { + std::cerr << visible << "\n"; + std::cerr << "recursively traverse directory, reporting macro definitions "; + std::cerr << "that do not conform to the supplied pattern\n"; + return 1; + } + + // get named parameters + boost::regex macro_regex(vm["match"].as()); + std::vector exclude_dirnames; + if (vm.count("exclude")) + exclude_dirnames = vm["exclude"].as >(); + + // get our single positional parameter - the directory to process + std::string dirname = vm["dirname"].as(); + + // directory traversal logic + static const boost::regex header_regex(".*\\.(hh|hpp|h)$"); + namespace fs = boost::filesystem; + std::vector exclude_dirs(exclude_dirnames.begin(), + exclude_dirnames.end()); + // canonicalize exclude directories for comparison vs. + // search directories - either may be relative + typedef fs::path (*canonicalizer)(fs::path const&, fs::path const&); + using namespace boost::placeholders; + std::transform(exclude_dirs.begin(), exclude_dirs.end(), + exclude_dirs.begin(), + boost::bind(static_cast(&fs::canonical), + _1, fs::current_path())); + + fs::recursive_directory_iterator dir_end; + fs::recursive_directory_iterator dir_beg(dirname); + for (fs::recursive_directory_iterator it = dir_beg; it != dir_end; ++it) { + if (it->status().type() == fs::regular_file) { + std::string fn = it->path().native(); + if (regex_match(fn, header_regex)) + process_header(fn, macro_regex); + } + if ((it->status().type() == fs::directory_file) && + (std::find(exclude_dirs.begin(), + exclude_dirs.end(), + fs::canonical(it->path())) != exclude_dirs.end())) { + // skip recursion here + it.no_push(); + } + } + + return 0; +} diff --git a/samples/check_macro_naming/check_macro_naming.hpp b/samples/check_macro_naming/check_macro_naming.hpp new file mode 100644 index 000000000..7ff1c4e5b --- /dev/null +++ b/samples/check_macro_naming/check_macro_naming.hpp @@ -0,0 +1,122 @@ +/*============================================================================= + Boost.Wave: A Standard compliant C++ preprocessor library + http://www.boost.org/ + + Copyright (c) 2001-2010 Hartmut Kaiser. + Copyrigth (c) 2020 Jeff Trull. Distributed under the Boost + Software License, Version 1.0. (See accompanying file + LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +=============================================================================*/ + +#if !defined(BOOST_WAVE_CHECK_MACRO_NAMING_INCLUDED) +#define BOOST_WAVE_CHECK_MACRO_NAMING_INCLUDED + +#include +#include +#include + +#include +#include + +/////////////////////////////////////////////////////////////////////////////// +// +// The macroname_preprocessing_hooks policy class is used to record the +// use of macros within a header file. +// +// This policy type is used as a template parameter to the +// boost::wave::context<> object. +// +/////////////////////////////////////////////////////////////////////////////// +class macroname_preprocessing_hooks +: public boost::wave::context_policies::default_preprocessing_hooks +{ +public: + macroname_preprocessing_hooks(boost::regex const & macro_regex, + std::set& bad_macros, + std::string& include_guard) + : macro_regex_(macro_regex), + bad_macros_(bad_macros), + include_guard_(include_guard), + suppress_includes_(false) + {} + + /////////////////////////////////////////////////////////////////////////// + // + // Monitor macro definitions to verify they follow the required convention + // by overriding the defined_macro hook + // + /////////////////////////////////////////////////////////////////////////// + + template + void defined_macro(ContextT const & /* ctx */, TokenT const &name, + bool /* is_functionlike */, ParametersT const & /* parameters */, + DefinitionT const & /* definition */, bool is_predefined) + { + using namespace boost::wave; + if (!is_predefined && + !regex_match(name.get_value().c_str(), macro_regex_)) + bad_macros_.insert(name.get_value().c_str()); + } + + // Wave only reports include guards in files that were actually included + // as a result we have to mock up the inclusion process. This means + // constructing a fake "includer" file in memory, and only permitting one + // level of includes (as we only want to analyze the header itself) + + /////////////////////////////////////////////////////////////////////////// + // + // Suppress includes of files other than the one we are analyzing + // using found_include_directive + // + /////////////////////////////////////////////////////////////////////////// + + template + bool found_include_directive(ContextT const& /* ctx */, + std::string const & filename, + bool /* include_next */) + { + return suppress_includes_; + } + + /////////////////////////////////////////////////////////////////////////// + // + // Suppress includes beyond the first level by setting our flag + // from opened_include_file + // + /////////////////////////////////////////////////////////////////////////// + + template + void opened_include_file(ContextT const& /* ctx */, + std::string const & /* rel_filename */, + std::string const & /* abs_filename */, + bool /* is_system_include */) + { + suppress_includes_ = true; + } + + // we only study one file, so no need to restore the ability to include + + /////////////////////////////////////////////////////////////////////////// + // + // Record detected include guard macros + // + /////////////////////////////////////////////////////////////////////////// + + template + void detected_include_guard(ContextT const& /* ctx */, + std::string filename, + std::string const& include_guard) + { + include_guard_ = include_guard; + } + + +private: + boost::regex const & macro_regex_; + std::set& bad_macros_; + std::string& include_guard_; + bool suppress_includes_; +}; + +#endif // !defined(BOOST_WAVE_CHECK_MACRO_NAMING_INCLUDED) From 4e6c4fbd2e942267b2bcd1053d768fe802f597e1 Mon Sep 17 00:00:00 2001 From: Jeff Trull Date: Wed, 17 Jun 2020 22:36:46 -0700 Subject: [PATCH 3/4] Correct various minor typos (#99) --- doc/class_ref_ctxpolicy_depr.html | 4 ++-- doc/class_reference_context.html | 18 +++++++++--------- doc/class_reference_ctxpolicy.html | 14 +++++++------- doc/class_reference_inptpolcy.html | 2 +- doc/class_reference_lexer.html | 4 ++-- doc/class_reference_tokentype.html | 2 +- doc/compiletime_config.html | 10 +++++----- doc/preface.html | 2 +- doc/quickstart.html | 2 +- doc/samples.html | 2 +- doc/supported_pragmas.html | 12 ++++++------ doc/tracing_facility.html | 4 ++-- 12 files changed, 38 insertions(+), 38 deletions(-) diff --git a/doc/class_ref_ctxpolicy_depr.html b/doc/class_ref_ctxpolicy_depr.html index 0c9a5ac2b..e8df187ae 100644 --- a/doc/class_ref_ctxpolicy_depr.html +++ b/doc/class_ref_ctxpolicy_depr.html @@ -92,7 +92,7 @@

Header void returning_from_include_file(); - // interpretation of #pragma's of the form + // interpretation of #pragmas of the form // 'wave option[(value)]' template <typename ContextT, typename ContainerT> bool interpret_pragma(ContextT const &ctx, ContainerT &pending, @@ -264,7 +264,7 @@

Include file tracing functions

The function returning_from_include_file is called whenever an included file is about to be closed after it's processing is complete.

-

Interpretation of #pragma's

+

Interpretation of #pragmas

interpret_pragma

    template <typename ContextT, typename ContainerT>
     bool interpret_pragma(ContextT const &ctx, ContainerT &pending, 
diff --git a/doc/class_reference_context.html b/doc/class_reference_context.html
index 219056056..28d6e1b63 100644
--- a/doc/class_reference_context.html
+++ b/doc/class_reference_context.html
@@ -118,7 +118,7 @@ 

Public

+ typedefs defined by the boost::wave::context class @@ -185,7 +185,7 @@

Iterator interface

Initializes and returns the starting iterator for the preprocessed token stream. The iterator pair given by the parameters  [first, last) specifies the input sequence to preprocess. The first version of this - function uses the iinput stream as specified by the constructor. 

+ function uses the input stream as specified by the constructor. 

end

    iterator_type end() const;
@@ -249,7 +249,7 @@

Maintain include paths

    size_t get_iteration_depth() const;

Returns the actual include iteration depth, i.e. the current - number of include levels to be poped from the include iteration + number of include levels to be popped from the include iteration context, before the main (topmost) iteration context is reached.

Maintain defined macros

@@ -392,7 +392,7 @@

Control extended options

  • If the support_option_insert_whitespace flag is set, the Wave library  inserts additional whitespace between tokens where the concatenated string representation of the two tokens would form another valid C++ token. - This is very importatnt to avoid mis-interpretations of the generated + This is very important to avoid mis-interpretations of the generated output if it is going to be processed by a C++ compiler afterwards.  
  • If the support_option_preserve_comments flag is set, the Wave library preserves almost @@ -406,7 +406,7 @@

    Control extended options

  • If the support_option_convert_trigraphs flag is set, the Wave library replaces all occurrences of trigraph characters with their non-trigraph character sequence (i.e. '??=' is replaced by '#' etc.) . By default no replacement is performed.
  • -
  • If the support_option_single_line flag is set, the Wave library will now reprot an +
  • If the support_option_single_line flag is set, the Wave library will now report an error if the last line of the processed input is not terminated by a new line. This flag is merely used for internal purposes by the testing framework and will be rarely used by a user of the library.
  • @@ -417,7 +417,7 @@

    Control extended options

    internal purposes and will be rarely reset by a user of the library.
  • If the support_option_emit_line_directives flag is set, the Wave library will emit #line directives in the generated token stream, if appropriate. This flag is set by default, to - prevent the library from generating #line directives it must be reset explicitely.
  • + prevent the library from generating #line directives it must be reset explicitly.
  • If the support_option_include_guard_detection flag is set, the Wave library will try to automatically identify include guards during the processing of a included file. Files which contained include guards are handled as if @@ -435,12 +435,12 @@

    Control extended options

    final #endif for the include guard to be recognized.

    This flag is on by default, so if you do not want the - library to automatically reconize include guards you will need to reset - this explicitely.

    + library to automatically recognize include guards you will need to reset + this explicitly.

    • If the support_option_emit_pragma_directives flag is set, the Wave library will emit all - unknown #pragma directives to the output. This suport option will be recognized only if + unknown #pragma directives to the output. This support option will be recognized only if the BOOST_WAVE_EMIT_PRAGMA_DIRECTIVES is defined during compilation to a value not equal to zero (see here for more information).
    • diff --git a/doc/class_reference_ctxpolicy.html b/doc/class_reference_ctxpolicy.html index 76346d32a..a07005fbd 100644 --- a/doc/class_reference_ctxpolicy.html +++ b/doc/class_reference_ctxpolicy.html @@ -47,7 +47,7 @@

      Introduction

      • a preprocessor directive has been recognized,
      • a token is about to be returned from the preprocessor,
      • -
      • a macro get's defined or undefined,
      • +
      • a macro gets defined or undefined,
      • a macro has been expanded or rescanned,
      • an include file has been opened or closed,
      • a conditional expression was evaluated,
      • @@ -74,7 +74,7 @@

        Header template <typename ContextT, typename TokenT>
        void
        detected_pragma_once(ContextT const &ctx, TokenT const& pragma_token, std::string const& filename);

        - // interpretation of #pragma's of the form + // interpretation of #pragmas of the form // 'wave option[(value)]' template <typename ContextT, typename ContainerT>
        bool interpret_pragma(ContextT const &ctx, ContainerT &pending,
        typename ContextT::token_type const &option,
        ContainerT const &values,
        typename ContextT::token_type const &pragma_token);

        // macro definition hooks @@ -326,7 +326,7 @@

        Include file tracing functions

        (this is relative to the directory of the currently processed file or a absolute path depending on the paths given as the include search paths).

        -

        Interpretation of #pragma's

        +

        Interpretation of #pragmas

        interpret_pragma

            template <typename ContextT, typename ContextT, typename ContainerT>
        bool interpret_pragma(ContextT const &ctx, ContainerT &pending,
        typename ContextT::token_type const &option,
        ContainerT const &values,
        typename ContextT::token_type const &pragma_token);
        @@ -378,7 +378,7 @@

        Macro definition

        The parameter name holds the token of the macro which definition was removed.

        -

        found_warning_drective

        +

        found_warning_directive

            template <typename ContextT, typename ContainerT>
        bool found_warning_directive(ContextT const& ctx,
        ContainerT const &message);
        @@ -390,7 +390,7 @@

        Macro definition

        If the return value is false, the library throws a preprocessor exception of the type warning_directive (normal execution continues), if the return value is true the execution continues as if no #warning directive has been found and the overall directive is replaced by a single newline.

        -

        found_error_drective

        +

        found_error_directive

            template <typename ContextT, typename ContainerT>
        bool found_error_directive(ContextT const& ctx,
        ContainerT const &message);
        @@ -400,8 +400,8 @@

        Macro definition

        If the return value is false, the library throws a preprocessor exception of the type error_directive (normal execution continues), if the return value is true the execution continues as if no #error directive has been found and the overall directive is replaced by a single newline.

        -

        found_line_drective

        -
            template <typename ContextT, typename ContainerT>
        void found_line_drective(ContextT const& ctx,
        ContainerT const &arguments, unsigned int line,
        std::string const& filename); +

        found_line_directive

        +
            template <typename ContextT, typename ContainerT>
        void found_line_directive(ContextT const& ctx,
        ContainerT const &arguments, unsigned int line,
        std::string const& filename);

        The function found_line_directive is called whenever a #line directive has been encountered. Note, this function was added for the Boost V1.35.0 release.

        diff --git a/doc/class_reference_inptpolcy.html b/doc/class_reference_inptpolcy.html index 7722828fe..df98b62c7 100644 --- a/doc/class_reference_inptpolcy.html +++ b/doc/class_reference_inptpolcy.html @@ -99,7 +99,7 @@

        Template Parameters

        which is used to access the underlying input stream has to be derived through a typedef as shown. The iterator pair to initialize (which is accessible as iter_ctx.first and iter_ctx.last) has to initialized from - an abritrary iterator type, representing the actual input stream.

        + an arbitrary iterator type, representing the actual input stream.

        Member Functions

        init_iterators

            template <typename Position>
        diff --git a/doc/class_reference_lexer.html b/doc/class_reference_lexer.html
        index 19437edd3..16e29f198 100644
        --- a/doc/class_reference_lexer.html
        +++ b/doc/class_reference_lexer.html
        @@ -59,7 +59,7 @@ 

        Public Typedefs

        Besides the typedefs mandated for a forward_iterator by the C++ standard every lexer to be used with the Wave library should define the following typedefs:

  • Public - typedef's defined by the boost::wave::context class
    iterator_type
    - + @@ -82,7 +82,7 @@

    Member functions

    The second constructor should construct a lexer iterator, which may be used as a iterator traversing over the token sequence, generated by the lexer class.

    The pair of iterators first and last should represent the input stream to be tokenized by the given lexer class.

    The parameter pos contains the initial position information to be used for token generation.

    -

    The parameter language controls the reuqired mode with which the lexer should be initialised.

    +

    The parameter language controls the required mode with which the lexer should be initialised.

    Public typedef's defined by the boost::wave::context class Public typedefs defined by the boost::wave::context class
    token_type
    diff --git a/doc/class_reference_tokentype.html b/doc/class_reference_tokentype.html index eb5069658..4f604f46f 100644 --- a/doc/class_reference_tokentype.html +++ b/doc/class_reference_tokentype.html @@ -36,7 +36,7 @@

    Introduction

    by dereferencing the iterators exposed by the lexing component and the iterator exposed by the preprocessor component. The tokens are originally generated by the lexer ("An entity that lexically transforms the subject of parsing to a sequence of objects (called tokens) more suitable for subsequent parsing."). - The Wave library contains two different, interchangable C++ lexers, which may + The Wave library contains two different, interchangeable C++ lexers, which may be used as a starting point during developing your own application. The lexer generated tokens are transformed by the preprocessing engine (macro expansion, include file processing etc.) and after this returned to the user of the Wave diff --git a/doc/compiletime_config.html b/doc/compiletime_config.html index 74cf7dbcc..616532648 100644 --- a/doc/compiletime_config.html +++ b/doc/compiletime_config.html @@ -119,7 +119,7 @@ - @@ -147,7 +147,7 @@

    This preprocessor constant allows to configer whether the Wave library will be built with threading support enabled or not. This value (if defined) should be set to zero ('0') if threading needs to be disabled and to a numerical value not equal - to zero, if threading should be enabled explicitely. + to zero, if threading should be enabled explicitly.

    If this constant is not defined, the Wave library will be built using the threading @@ -157,7 +157,7 @@

    BOOST_WAVE_PRAGMA_KEYWORD

    If this is defined to a string literal it will be used as the pragma keyword recogniyed by the library as specific Wave pragma's. This constant defaults to "wave", i.e. the library recognizes all #pragma wave option [(argument)] directives and dispatches the handling to the interpret_pragma() preprocessing hook function (see: Preprocessing Hooks). The arguments part of the pragma is optional.
    +

    If this is defined to a string literal it will be used as the pragma keyword recogniyed by the library as specific Wave pragmas. This constant defaults to "wave", i.e. the library recognizes all #pragma wave option [(argument)] directives and dispatches the handling to the interpret_pragma() preprocessing hook function (see: Preprocessing Hooks). The arguments part of the pragma is optional.

    Using a different token type or lexer type in conjunction with Wave

    -

    It is possible to use the Wave library while using your own token and/or lexer types. This may be achieved by providing your lexer type as the second template parameter while instantiating the boost::wave::context<> object. The token type used by the library is derived from the token_type typedef to be provided by the lexer type. If you want to provide your own token type only, you may use the boost::wave::lex_iterator<> type contained with the library. This type needs to be parametrized with the token type to use.

    +

    It is possible to use the Wave library while using your own token and/or lexer types. This may be achieved by providing your lexer type as the second template parameter while instantiating the boost::wave::context<> object. The token type used by the library is derived from the token_type typedef to be provided by the lexer type. If you want to provide your own token type only, you may use the boost::wave::lex_iterator<> type contained with the library. This type needs to be parameterized with the token type to use.

    The Wave library contains several samples illustrating these possibilities. The cpp_tokens sample shows the usage of a custom lexer and a custom token types. The lexer type used is functionally fully compatible to the re2c [3] based lexer used by default. It is implemented based on the SLex [5] lexer example written by Dan Nuffer. The token type used therein is functionally equivalent to the default token type except for an additional operator<< used for dumping the information carried by the token.

    Separation and inclusion compilation models

    @@ -179,7 +179,7 @@ the compilation of the C++ lexer and the separation of the compilation of the different Spirit grammars used. To use these separations you will have to define two preprocessor constants while compiling the whole application and you will - have to explicitely instantiate some helper templates. The following tables + have to explicitly instantiate some helper templates. The following tables shows these constants in detail.

    @@ -237,7 +237,7 @@ included as an acompanion sample to the C++ preprocessor iterator library. The corresponding files are named obviously "instantiate_...something.cpp", where the '...somthing' is a hint, which grammars - are explicitely instantiated inside. By using the separation model the compilation + are explicitly instantiated inside. By using the separation model the compilation times required to build the Wave example are dropped by up to 90%.

    diff --git a/doc/preface.html b/doc/preface.html index a6bfe955d..170950f5d 100644 --- a/doc/preface.html +++ b/doc/preface.html @@ -139,7 +139,7 @@

    libraries as the Boost Preprocessor library [7] et.al. Nevertheless recent work has lead to surprising performance enhancements (if compared with earlier versions). Wave is still somewhat slower as for instance EDG based preprocessors (Intel, Comeau) on simple input files, however, as - complexity increases, time dilates expontentially on EDG. Preprocessing time + complexity increases, time dilates exponentially on EDG. Preprocessing time dilates linearly under Wave, which causes it to easily outperform EDG based preprocessors when complexity increases.

    diff --git a/doc/quickstart.html b/doc/quickstart.html index 3bcd4dcf9..fe4b9366f 100644 --- a/doc/quickstart.html +++ b/doc/quickstart.html @@ -61,7 +61,7 @@ // from the iterators. // The template boost::wave::cpplexer::lex_iterator<> is // the lexer iterator to use as the token source for the - // preprocessing engine. In this case this is parametrized + // preprocessing engine. In this case this is parameterized // with the token type.typedefboost::wave::cpplexer::lex_iterator<boost::wave::cpplexer::lex_token<> > diff --git a/doc/samples.html b/doc/samples.html index 380f56822..3f7d65aa2 100644 --- a/doc/samples.html +++ b/doc/samples.html @@ -30,7 +30,7 @@

    The quick_start sample

    The lexed_tokens sample

    The lexed_tokens sample shows a minimal way to use the C++ lexing component of Wave without using the preprocessor. It opens the file specified as the first command line argument and prints out the contents of the tokens returned from the lexer.

    The cpp_tokens sample

    -

    The cpp_tokens sample dumps out the information contained within the tokens returned from the iterator supplied by the Wave library. It shows, how to use the Wave library in conjunction with custom lexer and custom token types. The lexer used within this sample is SLex [5] based, i.e. it is feeded during runtime (at startup) with the token definitions (regular expressions) and generates a resulting DFA table. This table is used for token identification and is saved to disc afterwards to avoid the table generation process at the next program startup. The name of the file to which the DFA table is saved is wave_slex_lexer.dfa.

    +

    The cpp_tokens sample dumps out the information contained within the tokens returned from the iterator supplied by the Wave library. It shows, how to use the Wave library in conjunction with custom lexer and custom token types. The lexer used within this sample is SLex [5] based, i.e. it is fed during runtime (at startup) with the token definitions (regular expressions) and generates a resulting DFA table. This table is used for token identification and is saved to disc afterwards to avoid the table generation process at the next program startup. The name of the file to which the DFA table is saved is wave_slex_lexer.dfa.

    The main advantage of this SLex based lexer if compared to the default Re2C [3] generated lexer is, that it provides not only the line information, where a particular token was recognized, but also the related column position. Otherwise the SLex based lexer is functionally fully compatible to the Re2C based one, i.e. you always may switch your application to use it, if you additionally need to get the column information back from the preprocessing.

    Since no additional command line parameters are supported by this sample, it won't work well with include files, which aren't located in the same directory as the inspected input file. The command line syntax is straight forward:

        cpp_tokens input_file
    diff --git a/doc/supported_pragmas.html b/doc/supported_pragmas.html index ce44faa49..e6aff1b7f 100644 --- a/doc/supported_pragmas.html +++ b/doc/supported_pragmas.html @@ -42,14 +42,14 @@

    Pragma directives supported by the Wave tool

        #pragma wave trace(enable)  

    and

        _Pragma("wave trace(enable)")
    -

    All Wave specific pragma's must have the general form 'wave option[(value)]', +

    All Wave specific pragmas must have the general form 'wave option[(value)]', where 'wave' is the specific keyword (which may be configured through the BOOST_WAVE_PRAGMA_KEYWORD compile time constant, see here for more information), 'option' is the concrete pragma functionality to trigger and 'value' is an optional value to be supplied to the 'option' functionality. The following table lists - all possible pragma functions supported by the Wave library. For all recognised pragmas of this general form the interpret_pragma hook function from inside the preprocessing_hooks policy are called, so that the user of the library is responsible for the correct interpretation of these pragma's.

    + all possible pragma functions supported by the Wave library. For all recognised pragmas of this general form the interpret_pragma hook function from inside the preprocessing_hooks policy are called, so that the user of the library is responsible for the correct interpretation of these pragmas.

    - + @@ -110,8 +110,8 @@

    Pragma directives supported by the Wave tool

    The pragma values push and pop may be used for all of the options (line, preserve and output) to store and restore the current value of the corresponding option.

    Supported pragma's

    Supported pragmas

    pragma option

    -

    All pragma's not listed here but flagged as 'wave' are currently reported as - errors. The handling of all remaining pragma's depends on the compilation constant +

    All pragmas not listed here but flagged as 'wave' are currently reported as + errors. The handling of all remaining pragmas depends on the compilation constant BOOST_WAVE_RETURN_PRAGMA_DIRECTIVES, which allows to specify, if those pragmas are left unchanged in the output stream or not. Please note, that the operator _Pragma variant is always subject to full preprocessing, before @@ -119,7 +119,7 @@

    Pragma directives supported by the Wave tool

    only, if the BOOST_WAVE_PREPROCESS_PRAGMA_BODY compilation constant was specified during compilation. For more information about the possible compilation constants look here.

    -

    It is fairly easy to implement your own #pragma wave ... directives. All you have to do is to implement your own interpret_pragma preprocessing hook function (see here) which should handle the additional directives. For an example of how to do it, you may have a look at the Wave driver application, which implements all of the pragma's listed above with the help of a supplied interpret_pragma function (for instance the #pragma wave timer() directive).

    +

    It is fairly easy to implement your own #pragma wave ... directives. All you have to do is to implement your own interpret_pragma preprocessing hook function (see here) which should handle the additional directives. For an example of how to do it, you may have a look at the Wave driver application, which implements all of the pragmas listed above with the help of a supplied interpret_pragma function (for instance the #pragma wave timer() directive).

    diff --git a/doc/tracing_facility.html b/doc/tracing_facility.html index c6dbbbe4a..cdcb6b942 100644 --- a/doc/tracing_facility.html +++ b/doc/tracing_facility.html @@ -29,7 +29,7 @@ the Wave library has a tracing facility, which allows to get selectively some information about the expansion of a certain macro or several macros.

    The tracing of macro expansions generates a possibly huge amount of information, - so it is recommended, that you explicitely enable/disable the tracing for the + so it is recommended, that you explicitly enable/disable the tracing for the macro in question only. This may be done with the help of a special, Wave specific #pragma:

        #pragma wave trace(enable)    // enable the tracing
    @@ -120,7 +120,7 @@
         the corresponding formal and actual parameters are listed.
       
  • The expansion of the given arguments (if any and if these are defined as macros). This repeats the full tracing information for the argument macro - expansion, only indended by one level. Note though, that the macro expansion + expansion, only indented by one level. Note though, that the macro expansion of the actual arguments is traced, regardless of the fact, whether this argument is really to be inserted into the replacement list after its expansion or as it was initially supplied (see C++ Standard [16.3.1.1]: "A parameter From bacb94f394943f61517406ad0136093bebdc8158 Mon Sep 17 00:00:00 2001 From: Jeff Trull Date: Tue, 23 Jun 2020 10:10:54 -0700 Subject: [PATCH 4/4] Log initial set of changes for 1.74 (#100) Also clean up some typos found automatically --- ChangeLog | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 42e2c5413..9fdcd1645 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,12 @@ TODO (known issues): CHANGELOG +Boost V1.74: + - Fixed TRAC #10733: Hooks not called for expanding specific predefined macros + - Fixed #58: C++11 long long literals must use consistent case + - Repaired two samples and added a new one for macro naming enforcement + - Implemented C++20 changes for variadic macros, including __VA_OPT__ + Boost V1.73: - Fixed TRAC #7822: waveidl sample does not use the IDL lexer - Fixed TRAC #9874: Turning off 'include_next' support breaks include @@ -31,11 +37,11 @@ Boost V1.55: - Fixed #9098: Wave driver option --c++0x invalid Boost V1.54: - - Fixed #8478: Make Boost.wave compatible with Clang's -Wimplicit-fallthrough + - Fixed #8478: Make Boost.wave compatible with Clang's -Wimplicit-fallthrough diagnostic. Boost V1.53: - - Fixed a problem with context<>::add_macro_definition which sometimes + - Fixed a problem with context<>::add_macro_definition which sometimes appended a superfluous T_EOF to the macro replacement list. Boost V1.52.0: @@ -340,7 +346,7 @@ Boost V1.35.0 - Switched to Re2C V0.11.2 - Added const specifiers to some of the context member functions. - Fixed a problem in the SLex C++ lexer (cpp_tokens example). -- Fixed a runtime problem in the Re2C generated lexers when feeded with +- Fixed a runtime problem in the Re2C generated lexers when fed with empty input files (thanks to Leo Davis for reporting and providing a patch). - Added the is_eoi() function to token classes, returning true if the token has been initialized to be the end of input token (T_EOI) (thanks to Ovanes @@ -397,7 +403,7 @@ Boost V1.35.0 - Fixed a bug in the pp hook expanding_function_like_macro(), where the seqend parameter was set to the first token after the closing parenthesis instead of pointing at it. -- Added the BOOST_WAVE_SUPPORT_THREADING allowing to explicitely control +- Added the BOOST_WAVE_SUPPORT_THREADING allowing to explicitly control whether the Wave library is built with threading support enabled. If not defined the build settings will be picked up from the Boost build environment (BOOST_HAS_THREADS). @@ -651,7 +657,7 @@ Sat Dec 24 13:33:53 CST 2005 - Added the possibility to configure the command keyword for the wave specific #pragma directives. It is now possible to define a string literal via BOOST_WAVE_PRAGMA_COMMAND, which will be recognized and all corresponding - #pragma's are dispatched to the interpret_pragma() preprocessing hook. + #pragmas are dispatched to the interpret_pragma() preprocessing hook. The default value for BOOST_WAVE_PRAGMA_COMMAND is "wave", just to ensure complete backward compatibility. - Added missing #pragma warning(pop) directives. @@ -1184,7 +1190,7 @@ Tue Aug 5 10:04:00 2003 on the line. - Added the #pragma wave timer() directive to allow rough timings during processing. This is done on top of a new callback hook for unrecognized - #pragma's, which allows to easily add new pragma commands without changing + #pragmas, which allows to easily add new pragma commands without changing the Wave library. - Fixed a bug in the whitespace insertion engine, which prevented the insertion of a whitespace token in between two consecutive identifier tokens or a @@ -1425,7 +1431,7 @@ Sun May 4 10:48:53 2003 - Remove one specialization of the macro expansion engine. It gets instantiated only twice now (for the main input iterator and for list<>'s of tokens. - Simplified the required explicit specialization of the defined_grammar - template. It has to be explicitely instantiated by providing the token type + template. It has to be explicitly instantiated by providing the token type only (just as for the explicit instantiations of the other grammars). Fri May 2 22:44:27 2003 @@ -1524,7 +1530,7 @@ Sun Mar 30 20:40:17 2003 Sun Mar 30 08:30:12 2003 - Changed the tracing format to be more readable. -- Changed the tracing #pragma's to +- Changed the tracing #pragmas to enable tracing: #pragma wave trace(enable) disable tracing: #pragma wave trace(disable) or @@ -1901,7 +1907,7 @@ complete rewrite of the existing code base. The main differences are: - The preprocessing of include files isn't implemented through recursion anymore. This follows directly from the first change. As a result of this change the internal error handling is simplified. -- The C preprocessor iterator itself is feeded by a new unified C++ lexer +- The C preprocessor iterator itself is fed by a new unified C++ lexer iterator. BTW, this C++ lexer iterator could be used standalone and is not tied to the C preprocessor. There are two different C++ lexers implemented now, which are functionally completely identical. These expose a similar