| 172 | std::string Type::getNameSpace() const { return NameSpace; } |
| 173 | |
| 174 | const Type *Type::getRealType(bool ArrayElement) const { |
| 175 | // TODO: cover multi-dimensional array |
| 176 | const Type *Result = this; |
| 177 | while (Result && Result->isPointerType()) { |
| 178 | if (Result->isNormalPtr()) { |
| 179 | Result = Result->getPointeeType(); |
| 180 | continue; |
| 181 | } |
| 182 | |
| 183 | if (ArrayElement && Result->isArrayPtr()) { |
| 184 | Result = Result->getPointeeType(); |
| 185 | } else { |
| 186 | break; |
| 187 | } |
| 188 | } |
| 189 | return Result; |
| 190 | } |
| 191 | |
| 192 | size_t Type::getTypeSize() const { return TypeSize; } |
| 193 |
no test coverage detected