| 1423 | //----------------------------------------------------------------------------- |
| 1424 | |
| 1425 | APValue* 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 | |
| 1436 | bool IsEvaluatable(const VarDecl& varDecl) |