Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppcheck-opensource/cppcheck
/ astIsContainer
Function
astIsContainer
lib/astutils.cpp:259–261 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
257
}
258
259
bool astIsContainer(const Token* tok) {
260
return getLibraryContainer(tok) != nullptr && !astIsIterator(tok);
261
}
262
263
bool astIsNonStringContainer(const Token* tok)
264
{
Callers
15
arrayIndex
Method · 0.85
checkStructMemberUsage
Method · 0.85
getContainerFromYield
Method · 0.85
getContainerFromAction
Method · 0.85
setTokenValue
Function · 0.85
createSymbolDatabaseSetVariablePointers
Method · 0.85
valueFlowArrayElement
Function · 0.85
getLifetimeTokens
Function · 0.85
valueFlowLifetime
Function · 0.85
valueFlowAfterAssign
Function · 0.85
isContainerSizeChangedByFunction
Function · 0.85
valueFlowIterators
Function · 0.85
Calls
2
getLibraryContainer
Function · 0.85
astIsIterator
Function · 0.85
Tested by
no test coverage detected