Lines Matching refs:ct
17 bool ClangUtil::IsClangType(const CompilerType &ct) { in IsClangType() argument
19 if (!ct) in IsClangType()
22 if (!ct.GetTypeSystem().dyn_cast_or_null<TypeSystemClang>()) in IsClangType()
25 if (!ct.GetOpaqueQualType()) in IsClangType()
36 QualType ClangUtil::GetQualType(const CompilerType &ct) { in GetQualType() argument
38 if (!IsClangType(ct)) in GetQualType()
41 return QualType::getFromOpaquePtr(ct.GetOpaqueQualType()); in GetQualType()
44 QualType ClangUtil::GetCanonicalQualType(const CompilerType &ct) { in GetCanonicalQualType() argument
45 if (!IsClangType(ct)) in GetCanonicalQualType()
48 return GetQualType(ct).getCanonicalType(); in GetCanonicalQualType()
51 CompilerType ClangUtil::RemoveFastQualifiers(const CompilerType &ct) { in RemoveFastQualifiers() argument
52 if (!IsClangType(ct)) in RemoveFastQualifiers()
53 return ct; in RemoveFastQualifiers()
55 QualType qual_type(GetQualType(ct)); in RemoveFastQualifiers()
57 return CompilerType(ct.GetTypeSystem(), qual_type.getAsOpaquePtr()); in RemoveFastQualifiers()