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

Method findClosingBracket2

test/testtoken.cpp:1200–1206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198 }
1199
1200 void findClosingBracket2() {
1201 SimpleTokenizer var(*this); // #11275
1202 ASSERT(var.tokenize("const auto g = []<typename T>() {};\n"));
1203
1204 const Token* const t = Token::findsimplematch(var.tokens(), "<");
1205 ASSERT(t && Token::simpleMatch(t->findClosingBracket(), ">"));
1206 }
1207
1208 void findClosingBracket3() {
1209 SimpleTokenizer var(*this); // #12789

Callers

nothing calls this directly

Calls 4

findsimplematchFunction · 0.85
tokenizeMethod · 0.80
simpleMatchFunction · 0.50
findClosingBracketMethod · 0.45

Tested by

no test coverage detected