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

Method findClosingBracket4

test/testtoken.cpp:1216–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1214 }
1215
1216 void findClosingBracket4() {
1217 SimpleTokenizer var(*this); // #12923
1218 ASSERT(var.tokenize("template<template<class E> class T = std::vector, class U = std::vector<int>, class V = void>\n"
1219 "class C;\n"));
1220 const Token *const t = Token::findsimplematch(var.tokens(), "<");
1221 ASSERT(t);
1222 const Token *const closing = t->findClosingBracket();
1223 ASSERT(closing && closing == var.tokens()->tokAt(28));
1224 }
1225
1226 void expressionString() {
1227 SimpleTokenizer var1(*this);

Callers

nothing calls this directly

Calls 4

findsimplematchFunction · 0.85
tokenizeMethod · 0.80
findClosingBracketMethod · 0.45
tokAtMethod · 0.45

Tested by

no test coverage detected