Lines Matching refs:tokens
95 static std::string buildTypeString(const std::vector<std::string>& tokens, in buildTypeString() argument
100 const std::string& token = tokens[n]; in buildTypeString()
111 std::vector<std::string> tokens; in normalizeTypeDeclaration() local
112 if (!parseTypeTokens(input, &tokens, NULL)) { in normalizeTypeDeclaration()
115 return buildTypeString(tokens, tokens.size()); in normalizeTypeDeclaration()
124 std::vector<std::string> tokens; in parseTypeDeclaration() local
126 if (!parseTypeTokens(input, &tokens, error)) { in parseTypeDeclaration()
132 for (size_t n = 0; n < tokens.size(); ++n) { in parseTypeDeclaration()
133 if (tokens[n] != "*" && tokens[n] != "const") { in parseTypeDeclaration()
142 *typeName = buildTypeString(tokens, tokens.size()); in parseTypeDeclaration()
151 std::vector<std::string> tokens; in parseParameterDeclaration() local
153 if (!parseTypeTokens(param, &tokens, error)) { in parseParameterDeclaration()
159 for (size_t n = 0; n < tokens.size(); ++n) { in parseParameterDeclaration()
160 if (tokens[n] != "*" && tokens[n] != "const") { in parseParameterDeclaration()
174 const std::string& lastToken = tokens[tokens.size() - 1U]; in parseParameterDeclaration()
189 *typeName = buildTypeString(tokens, tokens.size() - 1U); in parseParameterDeclaration()