annotate DEPENDENCIES/generic/include/boost/wave/grammars/cpp_predef_macros_gen.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 A Standard compliant C++ preprocessor
Chris@16 3
Chris@16 4 http://www.boost.org/
Chris@16 5
Chris@16 6 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
Chris@16 7 Software License, Version 1.0. (See accompanying file
Chris@16 8 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 9 =============================================================================*/
Chris@16 10
Chris@16 11 #if !defined(CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED)
Chris@16 12 #define CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED
Chris@16 13
Chris@16 14 #include <boost/spirit/include/classic_parse_tree.hpp>
Chris@16 15
Chris@16 16 #include <boost/wave/wave_config.hpp>
Chris@16 17
Chris@16 18 // this must occur after all of the includes and before any code appears
Chris@16 19 #ifdef BOOST_HAS_ABI_HEADERS
Chris@16 20 #include BOOST_ABI_PREFIX
Chris@16 21 #endif
Chris@16 22
Chris@16 23 // suppress warnings about dependent classes not being exported from the dll
Chris@16 24 #ifdef BOOST_MSVC
Chris@16 25 #pragma warning(push)
Chris@16 26 #pragma warning(disable : 4251 4231 4660)
Chris@16 27 #endif
Chris@16 28
Chris@16 29 ///////////////////////////////////////////////////////////////////////////////
Chris@16 30 namespace boost {
Chris@16 31 namespace wave {
Chris@16 32 namespace grammars {
Chris@16 33
Chris@16 34 ///////////////////////////////////////////////////////////////////////////////
Chris@16 35 //
Chris@16 36 // Here are the node id's of the different node of the cpp_grammar
Chris@16 37 //
Chris@16 38 ///////////////////////////////////////////////////////////////////////////////
Chris@16 39 #define BOOST_WAVE_PLAIN_DEFINE_ID 5
Chris@16 40 #define BOOST_WAVE_MACRO_PARAMETERS_ID 6
Chris@16 41 #define BOOST_WAVE_MACRO_DEFINITION_ID 7
Chris@16 42
Chris@16 43 ///////////////////////////////////////////////////////////////////////////////
Chris@16 44 //
Chris@16 45 // predefined_macros_grammar_gen template class
Chris@16 46 //
Chris@16 47 // This template helps separating the compilation of the
Chris@16 48 // predefined_macros_grammar class from the compilation of the
Chris@16 49 // main pp_iterator. This is done to safe compilation time.
Chris@16 50 //
Chris@16 51 // This class helps parsing command line given macro definitions in a
Chris@16 52 // similar way, as macros are parsed by the cpp_grammar class.
Chris@16 53 //
Chris@16 54 ///////////////////////////////////////////////////////////////////////////////
Chris@16 55
Chris@16 56 template <typename LexIteratorT>
Chris@16 57 struct BOOST_WAVE_DECL predefined_macros_grammar_gen
Chris@16 58 {
Chris@16 59 typedef LexIteratorT iterator_type;
Chris@16 60
Chris@16 61 // parse the cpp_grammar and return the resulting parse tree
Chris@16 62 static boost::spirit::classic::tree_parse_info<iterator_type>
Chris@16 63 parse_predefined_macro (iterator_type const &first, iterator_type const &last);
Chris@16 64 };
Chris@16 65
Chris@16 66 ///////////////////////////////////////////////////////////////////////////////
Chris@16 67 } // namespace grammars
Chris@16 68 } // namespace wave
Chris@16 69 } // namespace boost
Chris@16 70
Chris@16 71 #ifdef BOOST_MSVC
Chris@16 72 #pragma warning(pop)
Chris@16 73 #endif
Chris@16 74
Chris@16 75 // the suffix header occurs after all of the code
Chris@16 76 #ifdef BOOST_HAS_ABI_HEADERS
Chris@16 77 #include BOOST_ABI_SUFFIX
Chris@16 78 #endif
Chris@16 79
Chris@16 80 #endif // !defined(CPP_PREDEF_MACROS_GEN_HPP_CADB6D2C_76A4_4988_83E1_EFFC6902B9A2_INCLUDED)