| 54 | } |
| 55 | |
| 56 | static inline clang::QualType getPointeeTy(const clang::QualType &clangQTy) { |
| 57 | if (auto ArrType = getAsArrayType(clangQTy)) { |
| 58 | return ArrType->getElementType(); |
| 59 | } |
| 60 | return clangQTy->getPointeeType(); |
| 61 | } |
| 62 | |
| 63 | static inline bool isPointerType(const clang::QualType &clangQTy) { |
| 64 | return !getPointeeTy(clangQTy).isNull(); |
no test coverage detected