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

Method canFindMatchingBracketsNeedsOpen

test/testtoken.cpp:1146–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144 }
1145
1146 void canFindMatchingBracketsNeedsOpen() {
1147 SimpleTokenizer var(*this);
1148 ASSERT(var.tokenize("std::deque<std::set<int> > intsets;"));
1149
1150 const Token* const t = var.tokens()->findClosingBracket();
1151 ASSERT(t == nullptr);
1152 }
1153
1154 void canFindMatchingBracketsInnerPair() {
1155 SimpleTokenizer var(*this);

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.80
findClosingBracketMethod · 0.45

Tested by

no test coverage detected