MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / get_keyword_token

Function get_keyword_token

erpcgen/src/cpptemplate/cpptempl.cpp:814–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812 { token_type_t::INVALID_TOKEN, NULL } };
813
814token_type_t get_keyword_token(const std::string &s)
815{
816 const KeywordDef *k = k_keywords;
817 for (; k->tok != token_type_t::INVALID_TOKEN; ++k)
818 {
819 if (s == k->keyword)
820 {
821 return k->tok;
822 }
823 }
824 return token_type_t::INVALID_TOKEN;
825}
826
827void create_id_token(token_vector &tokens, const std::string &s)
828{

Callers 1

create_id_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected