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

Method canFindMatchingBracketsInnerPair

test/testtoken.cpp:1154–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152 }
1153
1154 void canFindMatchingBracketsInnerPair() {
1155 SimpleTokenizer var(*this);
1156 ASSERT(var.tokenize("std::deque<std::set<int> > intsets;"));
1157
1158 const Token * const t = var.tokens()->tokAt(7)->findClosingBracket();
1159 ASSERT_EQUALS(">", t->str());
1160 ASSERT(var.tokens()->tokAt(9) == t);
1161 }
1162
1163 void canFindMatchingBracketsOuterPair() {
1164 SimpleTokenizer var(*this);

Callers

nothing calls this directly

Calls 4

tokenizeMethod · 0.80
findClosingBracketMethod · 0.45
tokAtMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected