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

Function getAsArrayType

include/ftg/utils/ASTUtil.h:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43static 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
56static inline clang::QualType getPointeeTy(const clang::QualType &clangQTy) {
57 if (auto ArrType = getAsArrayType(clangQTy)) {

Callers 6

handleUserMethod · 0.85
handleUserMethod · 0.85
handleUserMethod · 0.85
TESTFunction · 0.85
getPointeeTyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68