MCPcopy Create free account
hub / github.com/Samsung/UTopia / getPointeeTy

Function getPointeeTy

include/ftg/utils/ASTUtil.h:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static 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
63static inline bool isPointerType(const clang::QualType &clangQTy) {
64 return !getPointeeTy(clangQTy).isNull();

Callers 3

createPointerTypeMethod · 0.85
isPointerTypeFunction · 0.85

Calls 2

getAsArrayTypeFunction · 0.85
getPointeeTypeMethod · 0.80

Tested by

no test coverage detected