| 3609 | } |
| 3610 | |
| 3611 | bool isConstRedundantForCpp ( const TypeDecl * type ) { |
| 3612 | if ( type->dim.size() ) return false; |
| 3613 | if ( type->isVectorType() ) return true; |
| 3614 | switch ( type->baseType ) { |
| 3615 | case Type::tBool: |
| 3616 | case Type::tInt8: |
| 3617 | case Type::tUInt8: |
| 3618 | case Type::tInt16: |
| 3619 | case Type::tUInt16: |
| 3620 | case Type::tInt64: |
| 3621 | case Type::tUInt64: |
| 3622 | case Type::tInt: |
| 3623 | case Type::tUInt: |
| 3624 | case Type::tFloat: |
| 3625 | case Type::tDouble: |
| 3626 | case Type::tEnumeration: |
| 3627 | case Type::tEnumeration8: |
| 3628 | case Type::tEnumeration16: |
| 3629 | case Type::tEnumeration64: |
| 3630 | case Type::tBitfield: |
| 3631 | case Type::tBitfield8: |
| 3632 | case Type::tBitfield16: |
| 3633 | case Type::tBitfield64: |
| 3634 | return true; |
| 3635 | default: |
| 3636 | return false; |
| 3637 | } |
| 3638 | } |
| 3639 | |
| 3640 | static char hex_char ( int Ch ) { |
| 3641 | Ch &= 0x0f; |
no test coverage detected