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

Function isTrivialConstructor

lib/astutils.cpp:2495–2504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2493}
2494
2495static bool isTrivialConstructor(const Token* tok)
2496{
2497 const Token* typeTok = nullptr;
2498 const Type* t = Token::typeOf(tok, &typeTok);
2499 if (t)
2500 return false;
2501 if (typeTok->valueType() && typeTok->valueType()->isPrimitive())
2502 return true;
2503 return false;
2504}
2505
2506bool isMutableExpression(const Token* tok)
2507{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected