MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / findClosingBracket

Method findClosingBracket

test/testtoken.cpp:1192–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1190 }
1191
1192 void findClosingBracket() {
1193 SimpleTokenizer var(*this);
1194 ASSERT(var.tokenize("template<typename X, typename...Y> struct S : public Fred<Wilma<Y...>> {}"));
1195
1196 const Token* const t = var.tokens()->next()->findClosingBracket();
1197 ASSERT(Token::simpleMatch(t, "> struct"));
1198 }
1199
1200 void findClosingBracket2() {
1201 SimpleTokenizer var(*this); // #11275

Calls 3

tokenizeMethod · 0.80
nextMethod · 0.80
simpleMatchFunction · 0.50

Tested by

no test coverage detected