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

Method until

lib/token.cpp:90–93  ·  view source on GitHub ↗

* Get a TokenRange which starts at this token and contains every token following it in order up to but not including 't' * e.g. for the sequence of tokens A B C D E, C.until(E) would yield the Range C D * note t can be nullptr to iterate all the way to the end. */ cppcheck-suppress unusedFunction // only used in testtokenrange.cpp

Source from the content-addressed store, hash-verified

88 */
89// cppcheck-suppress unusedFunction // only used in testtokenrange.cpp
90ConstTokenRange Token::until(const Token* t) const
91{
92 return ConstTokenRange(this, t);
93}
94
95static const std::unordered_set<std::string> controlFlowKeywords = {
96 "goto",

Callers 2

untilHelperToEndMethod · 0.80
untilHelperPartWayMethod · 0.80

Calls 1

ConstTokenRangeClass · 0.70

Tested by 2

untilHelperToEndMethod · 0.64
untilHelperPartWayMethod · 0.64