Lines Matching refs:tokens
99 list<string> tokens{istream_iterator<string>{stream}, istream_iterator<string>{}}; in expandTypedefs() local
101 for (auto i = tokens.begin(); i != tokens.end();) { in expandTypedefs()
134 tokens.insert(i, newTokens.begin(), newTokens.end()); in expandTypedefs()
135 tokens.erase(i); in expandTypedefs()
139 return tokens; in expandTypedefs()
143 static bool eatFront(list<string>* tokens, const char* prefix) { in eatFront() argument
144 if (tokens->front() == prefix) { in eatFront()
145 tokens->pop_front(); in eatFront()
155 static const char* findManglingOfBuiltInType(list<string>* tokens) { in findManglingOfBuiltInType() argument
157 auto t = tokens->begin(); in findManglingOfBuiltInType()
158 auto end = tokens->end(); in findManglingOfBuiltInType()
171 tokens->erase(tokens->begin(), t); in findManglingOfBuiltInType()
196 static bool mangleType(string vectorSize, list<string>* tokens, vector<string>* previousManglings, in mangleType() argument
202 if (tokens->back() == "*") { in mangleType()
204 tokens->pop_back(); in mangleType()
205 } else if (eatFront(tokens, "const")) { in mangleType()
207 } else if (eatFront(tokens, "volatile")) { in mangleType()
213 } else if (eatFront(tokens, "struct")) { in mangleType()
215 if (tokens->size() == 0) { in mangleType()
219 delta = mangleLongName(tokens->front()); in mangleType()
221 tokens->pop_front(); in mangleType()
222 } else if (eatFront(tokens, "...")) { in mangleType()
226 const char* c = findManglingOfBuiltInType(tokens); in mangleType()
232 } else if (tokens->size() > 0) { in mangleType()
234 delta = mangleLongName(tokens->front()); in mangleType()
236 tokens->pop_front(); in mangleType()
242 if (tokens->size() > 0) { in mangleType()
244 for (const auto& t : *tokens) { in mangleType()
254 if (tokens->size() == 0) { in mangleType()
259 if (!mangleType(vectorSize, tokens, previousManglings, &rest, &compressedRest)) { in mangleType()
307 list<string> tokens = expandTypedefs(p->rsType, apiLevel, intSize, vectorSize); in writeParameters() local
309 tokens.push_back("*"); in writeParameters()
313 if (!mangleType(vectorSize, &tokens, &previousManglings, &mangling, in writeParameters()