Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppcheck-opensource/cppcheck
/ isDesignatedInitializer
Function
isDesignatedInitializer
lib/astutils.cpp:1024–1027 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1022
}
1023
1024
bool isDesignatedInitializer(const Token* tok)
1025
{
1026
return tok && tok->isUnaryOp(
"."
);
1027
}
1028
1029
/// If tok2 comes after tok1
1030
bool precedes(const Token * tok1, const Token * tok2)
Callers
2
valueFlowLifetimeClassConstructor
Function · 0.85
checkEvaluationOrder
Method · 0.85
Calls
1
isUnaryOp
Method · 0.80
Tested by
no test coverage detected