for (i = 0; i < st->tokenIndex; i++) {
const tokenInfo *const t = st->token[i];
/* stop if we find the token used to generate the tag name, or
* a name token in the middle yet not preceded by a scope separator */
if ((t == nameToken ||
(t->type == nameToken->type &&
t->keyword == nameToken->keyword &&
t->lineNumber == nameToken->lineNumber &&
strcmp(vStringValue(t->name), vStringValue(nameToken->name)) == 0)) ||
(t->type == TOKEN_NAME && seenType &&
(i > 0 && st->token[i - 1]->type != TOKEN_DOUBLE_COLON)))
OK, is it to strip away templates? Maybe we could keep them here and remove them in the strip_type() function in TM. On the other hand one usually doesn't want to see the multiline templates from std:: at all :-)
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/889/files#r50966540