/third_party/boost/boost/wave/cpplexer/ |
D | detect_include_guards.hpp | 77 bool is_skippable(token_id id) const in is_skippable() 91 token_id id = token_id(t); in state_0() 107 token_id id = token_id(t); in state_1() 123 token_id id = token_id(t); in state_1a() 137 token_id id = token_id(t); in state_1b() 151 token_id id = token_id(t); in state_1c() 169 token_id id = token_id(t); in state_1d() 185 token_id id = token_id(t); in state_1e() 199 token_id id = token_id(t); in state_2() 213 token_id id = token_id(t); in state_3() [all …]
|
D | cpp_lex_token.hpp | 57 token_data(token_id id_, string_type const &value_, position_type const &pos_) in token_data() 73 operator token_id() const { return id; } in operator token_id() 77 void set_token_id (token_id id_) { id = id_; } in set_token_id() 88 void init(token_id id_, string_type const &value_, position_type const &pos_) in init() 138 token_id id; // the token id 216 lex_token(token_id id_, string_type const &value_, PositionT const &pos_) in lex_token() 241 operator token_id() const { return 0 != data ? token_id(*data) : T_EOI; } in operator token_id() 244 bool is_eoi() const { return 0 == data || token_id(*data) == T_EOI; } in is_eoi() 245 bool is_valid() const { return 0 != data && token_id(*data) != T_UNKNOWN; } in is_valid() 247 void set_token_id (token_id id_) { make_unique(); data->set_token_id(id_); } in set_token_id() [all …]
|
/third_party/boost/boost/wave/util/ |
D | insert_whitespace_detection.hpp | 55 handle_identifier(boost::wave::token_id prev, in handle_identifier() 56 boost::wave::token_id before, StringT const &value) in handle_identifier() 90 handle_intlit(boost::wave::token_id prev, boost::wave::token_id /*before*/) in handle_intlit() argument 109 handle_floatlit(boost::wave::token_id prev, in handle_floatlit() argument 110 boost::wave::token_id /*before*/) in handle_floatlit() 129 handle_alt_leftbrace(boost::wave::token_id prev, in handle_alt_leftbrace() argument 130 boost::wave::token_id /*before*/) in handle_alt_leftbrace() 145 handle_alt_leftbracket(boost::wave::token_id prev, in handle_alt_leftbracket() argument 146 boost::wave::token_id /*before*/) in handle_alt_leftbracket() 161 handle_fixedpointlit(boost::wave::token_id prev, in handle_fixedpointlit() argument [all …]
|
D | cpp_macromap_utils.hpp | 184 token_id id = token_id(right); in token_equals() 194 return token_id(left) == token_id(right) && ( in token_equals() 220 token_id id1 = next_token<const_iterator_type>::peek(first1, last1, false); in definition_equals() 221 token_id id2 = next_token<const_iterator_type>::peek(first2, last2, false); in definition_equals() 267 if (token_id(*first1) != token_id(*first2) || in parameters_equal() 295 token_id id(*it); in trim_replacement_list() 320 token_id id(*it); in trim_replacement_list() 368 (T_PLACEMARKER != token_id(*it))) in is_blank_only() 391 token_id id(*it); in remove_placeholders() 482 token_id id, bool& seen_newline) in skip_to_token() [all …]
|
D | macro_helpers.hpp | 110 token_id id = token_id(*it); in as_stringlit() 167 token_id id = token_id(*it); in as_stringlit() 278 for (; (mdit != mdend) && !((scope == 1) && (T_RIGHTPAREN == token_id(*mdit))); in find_va_opt_args() 281 if (T_RIGHTPAREN == token_id(*mdit)) { in find_va_opt_args() 283 } else if (T_LEFTPAREN == token_id(*mdit)) { in find_va_opt_args() 287 if ((mdit == mdend) && ((scope != 1) || (T_RIGHTPAREN != token_id(*mdit)))) { in find_va_opt_args() 302 inline boost::wave::token_id 305 token_id id = util::impl::next_token<IteratorT>::peek(first, last, false); in skip_whitespace() 317 inline boost::wave::token_id 322 token_id id = util::impl::next_token<IteratorT>::peek(first, last, false); in skip_whitespace()
|
D | macro_definition.hpp | 86 token_id id = *it; in replace_parameters() 100 (*it).set_token_id(token_id(T_PARAMETERBASE+i)); in replace_parameters() 105 T_ELLIPSIS == token_id(*cit) && in replace_parameters() 109 (*it).set_token_id(token_id(T_EXTPARAMETERBASE+i)); in replace_parameters() 114 T_ELLIPSIS == token_id(*cit) && in replace_parameters() 118 (*it).set_token_id(token_id(T_OPTPARAMETERBASE+i)); in replace_parameters() 130 T_ELLIPSIS == token_id(macroparameters.back())) in replace_parameters()
|
D | unput_queue_iterator.hpp | 203 static boost::wave::token_id 210 T_NEWLINE != token_id(*it)) in peek() 220 return token_id(*it); in peek() 231 static boost::wave::token_id 246 T_NEWLINE != token_id(*cit)) in peek() 256 return token_id(*cit); in peek() 269 T_NEWLINE != token_id(*base_it)) in peek() 278 return token_id(*base_it); in peek()
|
D | cpp_iterator.hpp | 130 T_NEWLINE != token_id(macrodefinition.back()) && in retrieve_macrodefinition() 131 T_EOF != token_id(macrodefinition.back())) in retrieve_macrodefinition() 186 if (!hit.match || (!hit.full && T_EOF != token_id(*hit.stop))) { in add_macro_definition() 207 if (!macrodefinition.empty() && token_id(macrodefinition.back()) == T_EOF) in add_macro_definition() 469 bool consider_emitting_line_directive(ContextT const& ctx, token_id id) in consider_emitting_line_directive() 499 token_id id = T_UNKNOWN; in operator ()() 512 id = token_id(act_token); in operator ()() 544 id = token_id(act_token); in operator ()() 591 for (/**/; it != end && T_EOF != token_id(*it); ++it) in operator ()() 596 id = token_id(act_token); in operator ()() [all …]
|
D | cpp_macromap.hpp | 349 if (AltExtTokenType == (token_id(name) & ExtTokenOnlyMask)) { in add_macro() 414 (T_LEFTPAREN != token_id(*mdit))) { // not lparen in add_macro() 520 token_id id = token_id(*begin); in is_defined() 736 token_id id = token_id(*first); in expand_tokensequence_worker() 745 id = token_id(*first); in expand_tokensequence_worker() 885 token_id id = token_id(*next); in collect_arguments() 1107 token_id base_id = BASE_TOKEN(token_id(*cit)); in expand_replacement_list() 1140 i = token_id(*cit) - T_EXTPARAMETERBASE; in expand_replacement_list() 1148 i = token_id(*cit) - T_OPTPARAMETERBASE; in expand_replacement_list() 1155 i = token_id(*cit) - T_PARAMETERBASE; in expand_replacement_list() [all …]
|
D | cpp_macromap_predef.hpp | 53 boost::wave::token_id token_id; member 60 boost::wave::token_id token_id; member
|
/third_party/boost/boost/wave/ |
D | whitespace_handling.hpp | 40 if (T_CCOMMENT == token_id(token) && in ccomment_has_newline() 56 if (T_CCOMMENT == token_id(token)) { in ccomment_count_newlines() 77 if (T_RAWSTRINGLIT == token_id(token)) { in rawstring_count_newlines() 108 bool skip_cppcomment(boost::wave::token_id id) in skip_cppcomment() 159 token_id id = token_id(token); in general() 187 token_id id = token_id(token); in newline() 223 token_id id = token_id(token); in newline_2nd() 256 token_id id = token_id(token); in bol_whitespace() 269 token_id id = token_id(token); in whitespace()
|
D | token_ids.hpp | 81 enum token_id { enum 322 #define TOKEN_FROM_ID(id, cat) boost::wave::token_id((id) | (cat)) 326 boost::wave::token_id((tok) & \ 332 boost::wave::token_id((tok) & \ 336 boost::wave::token_id((tok) & boost::wave::MainTokenMask) \ 349 inline bool is_pp_token(boost::wave::token_id id) in is_pp_token() 357 return is_pp_token(boost::wave::token_id(tok)); in is_pp_token() 363 BOOST_WAVE_STRINGTYPE get_token_name(token_id tokid); 368 char const *get_token_value(token_id tokid);
|
/third_party/boost/boost/spirit/home/lex/lexer/ |
D | lexer.hpp | 122 , id_type token_id = id_type()) const in operator ()() 124 if (id_type() == token_id) in operator ()() 125 token_id = static_cast<id_type>(c); in operator ()() 126 def.def.add_token (def.state.c_str(), c, token_id in operator ()() 137 , id_type token_id = id_type()) const in operator ()() 139 if (id_type() == token_id) in operator ()() 140 token_id = def.def.get_next_id(); in operator ()() 141 def.def.add_token (def.state.c_str(), s, token_id in operator ()() 149 , id_type token_id = id_type()) const in operator ()() 152 if (id_type() == token_id) { in operator ()() [all …]
|
/third_party/boost/libs/wave/samples/real_positions/ |
D | real_position_token.hpp | 41 token_data(boost::wave::token_id id_, string_type const &value_, in token_data() 59 operator boost::wave::token_id() const { return id; } in operator boost::wave::token_id() 69 void set_token_id (boost::wave::token_id id_) { id = id_; } in set_token_id() 83 boost::wave::token_id id; // the token id 127 lex_token(boost::wave::token_id id_, string_type const &value_, in lex_token() 152 operator boost::wave::token_id() const in operator boost::wave::token_id() 153 { return boost::wave::token_id(*data); } in operator boost::wave::token_id() 163 return 0 != data && token_id(*data) != boost::wave::T_UNKNOWN; in is_valid() 166 void set_token_id (boost::wave::token_id id_) in set_token_id() 184 { return token_id(t); } in get_token_id()
|
/third_party/boost/libs/wave/samples/cpp_tokens/ |
D | slex_token.hpp | 56 slex_token(token_id id_, string_type const &value_, PositionT const &pos_) in slex_token() 61 operator token_id() const { return id; } in operator token_id() 67 void set_token_id (token_id id_) { id = id_; } in set_token_id() 82 { return ID_FROM_TOKEN(token_id(t)); } in get_token_id() 95 << "#" << token_id(BASEID_FROM_TOKEN(*this)) in print() 115 boost::wave::token_id id; // the token id
|
/third_party/boost/libs/wave/samples/advanced_hooks/ |
D | advanced_hooks.hpp | 65 token_id id = token_id(directive); in found_directive() 154 if (need_comment && token_id(token) != T_SPACE) { in skipped_token() 159 if (token_id(token) == T_NEWLINE || token_id(token) == T_CPPCOMMENT) in skipped_token()
|
/third_party/boost/libs/wave/test/testlexers/ |
D | test_lexertl_lexer.cpp | 61 if (data->id != boost::wave::token_id(*it)) { in main() 62 BOOST_TEST(data->id == boost::wave::token_id(*it)); in main() 66 << boost::wave::get_token_name(boost::wave::token_id(*it)) in main() 70 if (boost::wave::T_EOF != boost::wave::token_id(*it)) { in main() 71 BOOST_TEST(boost::wave::T_EOF == boost::wave::token_id(*it)); in main()
|
D | test_re2c_lexer.cpp | 67 if (data->id != boost::wave::token_id(*it)) { in main() 68 BOOST_TEST(data->id == boost::wave::token_id(*it)); in main() 72 << boost::wave::get_token_name(boost::wave::token_id(*it)) in main() 76 if (boost::wave::T_EOF != boost::wave::token_id(*it)) { in main() 77 BOOST_TEST(boost::wave::T_EOF == boost::wave::token_id(*it)); in main()
|
D | test_slex_lexer.cpp | 70 if (data->id != boost::wave::token_id(*it)) { in main() 71 BOOST_TEST(data->id == boost::wave::token_id(*it)); in main() 75 << boost::wave::get_token_name(boost::wave::token_id(*it)) in main() 79 if (boost::wave::T_EOF != boost::wave::token_id(*it)) { in main() 80 BOOST_TEST(boost::wave::T_EOF == boost::wave::token_id(*it)); in main()
|
D | test_xlex_lexer.cpp | 68 if (data->id != boost::wave::token_id(*it)) { in main() 69 BOOST_TEST(data->id == boost::wave::token_id(*it)); in main() 73 << boost::wave::get_token_name(boost::wave::token_id(*it)) in main() 77 BOOST_TEST(boost::wave::T_EOF == boost::wave::token_id(*it)); in main()
|
/third_party/boost/libs/spirit/test/lex/ |
D | id_type_enum.cpp | 32 enum token_id enum 39 file_iterator, boost::mpl::vector<>, boost::mpl::true_, token_id 47 typedef lex::token_def<lex::unused_type, char, token_id> toked_def; in lexer() 64 lex::token_def<lex::unused_type, char, token_id> word; 81 token_id test_data[] = { ID_EOL, ID_WORD, ID_EOL }; in main()
|
D | test.hpp | 51 test(Lexer& lex, Char const* input, std::size_t token_id = 0, in test() argument 74 if (token_id != 0) in test() 75 r = r && (*first).id() == token_id; in test()
|
/third_party/boost/libs/wave/samples/token_statistics/ |
D | collect_token_statistics.hpp | 40 using boost::wave::token_id; in operator ()() 51 typedef std::multimap<int, token_id> ids_type; in print() 57 token_count[i], token_id(i + T_FIRST_TOKEN))); in print()
|
/third_party/boost/boost/spirit/home/lex/lexer/lexertl/ |
D | lexer.hpp | 226 std::size_t token_id, char_type const* targetstate) in add_token() argument 231 return rules_.add(state, detail::escape(tokendef), token_id, rules_.dot()); in add_token() 237 return rules_.add(state, detail::escape(tokendef), token_id, targetstate); in add_token() 240 std::size_t token_id, char_type const* targetstate) in add_token() argument 245 return rules_.add(state, tokendef, token_id, rules_.dot()); in add_token() 251 return rules_.add(state, tokendef, token_id, targetstate); in add_token()
|
/third_party/boost/libs/wave/samples/cpp_tokens/slex/ |
D | cpp_slex_lexer.hpp | 86 token_id tokenid; // token data 395 { token_id(0) } // this should be the last entry 421 { token_id(0) } // this should be the last entry 431 { token_id(0) } // this should be the last entry 437 #define T_EXTCHARLIT token_id(T_CHARLIT|AltTokenType) 438 #define T_EXTSTRINGLIT token_id(T_STRINGLIT|AltTokenType) 439 #define T_EXTRAWSTRINGLIT token_id(T_RAWSTRINGLIT|AltTokenType) 463 { token_id(0) } // this should be the last entry 634 token_id id = token_id(lexer.next_token(first, last, &value)); in get() 636 if ((token_id)(-1) == id) in get() [all …]
|