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

Method inSameScope

lib/checkassert.cpp:175–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175bool CheckAssertImpl::inSameScope(const Token* returnTok, const Token* assignTok)
176{
177 // TODO: even if a return is in the same scope, the assignment might not affect it.
178 return returnTok->scope() == assignTok->scope();
179}
180
181void CheckAssert::runChecks(const Tokenizer &tokenizer, ErrorLogger& errorLogger)
182{

Callers

nothing calls this directly

Calls 1

scopeMethod · 0.80

Tested by

no test coverage detected