| 2715 | //----------------------------------------------------------------------------- |
| 2716 | |
| 2717 | static bool IsConstQualifiedType(QualType type) |
| 2718 | { |
| 2719 | if(not type.isNull()) { |
| 2720 | if(auto* typePtr = type.getTypePtrOrNull()) { |
| 2721 | if(auto pointee = typePtr->getPointeeType(); not pointee.isNull()) { |
| 2722 | return pointee.isConstQualified(); |
| 2723 | } |
| 2724 | } |
| 2725 | } |
| 2726 | |
| 2727 | return false; |
| 2728 | } |
| 2729 | //----------------------------------------------------------------------------- |
| 2730 | |
| 2731 | void CodeGenerator::InsertArg(const CStyleCastExpr* stmt) |