|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49302 - trunk/boost/wave/cpplexer
From: hartmut.kaiser_at_[hidden]
Date: 2008-10-12 21:04:17
Author: hkaiser
Date: 2008-10-12 21:04:16 EDT (Sun, 12 Oct 2008)
New Revision: 49302
URL: http://svn.boost.org/trac/boost/changeset/49302
Log:
Wave: Minor adjustments...
Text files modified:
trunk/boost/wave/cpplexer/cpp_lex_iterator.hpp | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
Modified: trunk/boost/wave/cpplexer/cpp_lex_iterator.hpp
==============================================================================
--- trunk/boost/wave/cpplexer/cpp_lex_iterator.hpp (original)
+++ trunk/boost/wave/cpplexer/cpp_lex_iterator.hpp 2008-10-12 21:04:16 EDT (Sun, 12 Oct 2008)
@@ -99,7 +99,7 @@
{
return mp.shared->ftor->has_include_guards(guard_name);
}
-#endif
+#endif
};
///////////////////////////////////////////////////////////////////////////////
@@ -156,7 +156,7 @@
typedef boost::spirit::multi_pass_policies::no_check check_policy;
#endif
typedef boost::spirit::multi_pass_policies::split_std_deque storage_policy;
-
+
typedef boost::spirit::multi_pass_policies::default_policy<
ownership_policy, check_policy, input_policy, storage_policy>
policy_type;
@@ -169,20 +169,20 @@
: public make_multi_pass<impl::lex_iterator_functor_shim<TokenT> >::type
{
typedef impl::lex_iterator_functor_shim<TokenT> input_policy_type;
-
+
typedef typename make_multi_pass<input_policy_type>::type base_type;
typedef typename make_multi_pass<input_policy_type>::functor_data_type
functor_data_type;
typedef typename input_policy_type::unique unique_functor_type;
typedef typename input_policy_type::shared shared_functor_type;
-
+
public:
typedef TokenT token_type;
-
+
lex_iterator()
{}
-
+
template <typename IteratorT>
lex_iterator(IteratorT const &first, IteratorT const &last,
typename TokenT::position_type const &pos,
@@ -199,7 +199,7 @@
void set_position(typename TokenT::position_type const &pos)
{
typedef typename TokenT::position_type position_type;
-
+
// set the new position in the current token
token_type& currtoken = this->base_type::dereference(*this);
position_type currpos = currtoken.get_position();
@@ -207,7 +207,7 @@
currpos.set_file(pos.get_file());
currpos.set_line(pos.get_line());
currtoken.set_position(currpos);
-
+
// set the new position for future tokens as well
if (token_type::string_type::npos !=
currtoken.get_value().find_first_of('\n'))
@@ -216,7 +216,7 @@
}
unique_functor_type::set_position(*this, currpos);
}
-
+
#if BOOST_WAVE_SUPPORT_PRAGMA_ONCE != 0
// return, whether the current file has include guards
// this function returns meaningful results only if the file was scanned
@@ -225,7 +225,7 @@
{
return unique_functor_type::has_include_guards(*this, guard_name);
}
-#endif
+#endif
};
///////////////////////////////////////////////////////////////////////////////
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk