| 41 | } |
| 42 | |
| 43 | static inline const clang::ArrayType *getAsArrayType(clang::QualType clangQTy) { |
| 44 | if (auto AdjustedTy = clangQTy->getAs<clang::AdjustedType>()) { |
| 45 | if (const clang::ArrayType *OriginArrType = |
| 46 | AdjustedTy->getOriginalType()->getAsArrayTypeUnsafe()) { |
| 47 | return OriginArrType; |
| 48 | } else if (const clang::ArrayType *AdjustedArrType = |
| 49 | AdjustedTy->getAdjustedType()->getAsArrayTypeUnsafe()) { |
| 50 | return AdjustedArrType; |
| 51 | } |
| 52 | } |
| 53 | return clangQTy->getAsArrayTypeUnsafe(); |
| 54 | } |
| 55 | |
| 56 | static inline clang::QualType getPointeeTy(const clang::QualType &clangQTy) { |
| 57 | if (auto ArrType = getAsArrayType(clangQTy)) { |
no outgoing calls