MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / GetEvaluatedValue

Function GetEvaluatedValue

InsightsHelpers.cpp:1425–1433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423//-----------------------------------------------------------------------------
1424
1425APValue* GetEvaluatedValue(const VarDecl& varDecl)
1426{
1427 if((nullptr != varDecl.ensureEvaluatedStmt()) and varDecl.ensureEvaluatedStmt()->Value.isValid() and
1428 not varDecl.getInit()->isValueDependent()) {
1429 return varDecl.evaluateValue();
1430 }
1431
1432 return nullptr;
1433}
1434//-----------------------------------------------------------------------------
1435
1436bool IsEvaluatable(const VarDecl& varDecl)

Callers 1

IsEvaluatableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected