reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

gen/tools/clang/include/clang/AST/TypeNodes.inc
   28 TYPE(Complex, Type)

References

include/llvm/ADT/FoldingSet.h
  221   static void Profile(const T &X, FoldingSetNodeID &ID) {
  224   static void Profile(T &X, FoldingSetNodeID &ID) {
  232   static inline bool Equals(T &X, const FoldingSetNodeID &ID, unsigned IDHash,
  240   static inline unsigned ComputeHash(T &X, FoldingSetNodeID &TempID);
  250   : public DefaultFoldingSetTrait<T> {};
  369   FoldingSetTrait<T>::Profile(X, TempID);
  375   FoldingSetTrait<T>::Profile(X, TempID);
  410   using iterator = FoldingSetIterator<T>;
  415   using const_iterator = FoldingSetIterator<const T>;
  420   using bucket_iterator = FoldingSetBucketIterator<T>;
  432   bool RemoveNode(T *N) { return FoldingSetBase::RemoveNode(N); }
  437   T *GetOrInsertNode(T *N) {
  437   T *GetOrInsertNode(T *N) {
  444   T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) {
  451   void InsertNode(T *N, void *InsertPos) {
  457   void InsertNode(T *N) {
  473 template <class T> class FoldingSet final : public FoldingSetImpl<T> {
  474   using Super = FoldingSetImpl<T>;
  480     T *TN = static_cast<T *>(N);
  481     FoldingSetTrait<T>::Profile(*TN, ID);
  488     T *TN = static_cast<T *>(N);
  489     return FoldingSetTrait<T>::Equals(*TN, ID, IDHash, TempID);
  495     T *TN = static_cast<T *>(N);
  496     return FoldingSetTrait<T>::ComputeHash(*TN, TempID);
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  252       X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(Val);
  331                             typename cast_retty<X, const Y>::ret_type>::type
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  338   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTContext.h
  181   mutable llvm::FoldingSet<ComplexType> ComplexTypes;
tools/clang/include/clang/AST/ASTNodeTraverser.h
  274   void VisitComplexType(const ComplexType *T) { Visit(T->getElementType()); }
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
   65     return ASTNodeKind(KindToKindId<T>::Id);
  259   const T &getUnchecked() const {
  260     return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
  394     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  399     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  401       return *cast<T>(static_cast<const BaseT *>(
  479     : public DynCastPtrConverter<T, Type> {};
tools/clang/include/clang/AST/CanonicalType.h
   76   CanQual(const CanQual<U> &Other,
   77           typename std::enable_if<std::is_base_of<T, U>::value, int>::type = 0);
   77           typename std::enable_if<std::is_base_of<T, U>::value, int>::type = 0);
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   83   const T *getTypePtr() const { return cast<T>(Stored.getTypePtr()); }
   87   const T *getTypePtrOrNull() const {
   88     return cast_or_null<T>(Stored.getTypePtrOrNull());
  120   template<typename U> CanProxy<U> getAs() const;
  126   CanProxy<T> operator->() const;
  157   CanQual<T> getUnqualifiedType() const;
  167   bool isMoreQualifiedThan(CanQual<T> Other) const {
  173   bool isAtLeastAsQualifiedAs(CanQual<T> Other) const {
  185   static CanQual<T> getFromOpaquePtr(void *Ptr);
  192   static CanQual<T> CreateUnsafe(QualType Other);
  241   CanQual<T> Stored;
  245   const T *getTypePtr() const { return Stored.getTypePtr(); }
  254   operator const T*() const { return this->Stored.getTypePtrOrNull(); }
  258   template<typename U> CanProxy<U> getAs() const {
  259     return this->Stored.template getAs<U>();
  321   const CanProxyAdaptor<T> *operator->() const {
  347 class CanProxy : public CanProxyAdaptor<T> {
  353   CanProxy(CanQual<T> Stored) { this->Stored = Stored; }
  356   operator CanQual<T>() const { return this->Stored; }
  417 struct CanProxyAdaptor<ComplexType> : public CanProxyBase<ComplexType> {
  644   CanQual<T> Result;
  658   if (isa<U>(Stored.getTypePtr()))
  659     return CanQual<U>::CreateUnsafe(Stored);
tools/clang/include/clang/AST/RecursiveASTVisitor.h
  940 DEF_TRAVERSE_TYPE(ComplexType, { TRY_TO(TraverseType(T->getElementType())); })
 1150   TRY_TO(TraverseType(TL.getTypePtr()->getElementType()));
tools/clang/include/clang/AST/Type.h
 2184   const ComplexType *getAsComplexIntegerType() const; // GCC complex int type.
 6480   return isa<ComplexType>(CanonicalType);
 6750          isa<ComplexType>(CanonicalType) ||
 6858 template <typename T> const T *Type::getAs() const {
 6859   static_assert(!TypeIsArrayType<T>::value,
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6863   if (const auto *Ty = dyn_cast<T>(this))
 6867   if (!isa<T>(CanonicalType))
 6872   return cast<T>(getUnqualifiedDesugaredType());
 6923 template <typename T> const T *Type::castAs() const {
 6924   static_assert(!TypeIsArrayType<T>::value,
 6927   if (const auto *ty = dyn_cast<T>(this)) return ty;
 6927   if (const auto *ty = dyn_cast<T>(this)) return ty;
 6929   return cast<T>(getUnqualifiedDesugaredType());
tools/clang/include/clang/AST/TypeLoc.h
  486     return TypeClass::classof(Ty);
  498   const TypeClass *getTypePtr() const {
  499     return cast<TypeClass>(Base::getTypePtr());
 1791                                                         ComplexType> {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 5387 extern const AstTypeMatcher<ComplexType> complexType;
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  302   virtual bool matches(const T &Node,
  309     return matches(DynNode.getUnchecked<T>(), Finder, Builder);
  345   DynTypedMatcher(MatcherInterface<T> *Implementation)
  346       : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
  436     return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  445   template <typename T> Matcher<T> convertTo() const {
  447     return unconditionalConvertTo<T>();
  479 class WrapperMatcherInterface : public MatcherInterface<T> {
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  520             std::is_same<T, QualType>::value &&
  529     static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
 1067   using head = T1;
 1073   using tail = TypeList<Ts...>;
 1243   operator Matcher<T>() const {
 1245                ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
 1246         .template unconditionalConvertTo<T>();
 1255 class BindableMatcher : public Matcher<T> {
 1257   explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
 1258   explicit BindableMatcher(MatcherInterface<T> *Implementation)
 1265   Matcher<T> bind(StringRef ID) const {
 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
 1376 BindableMatcher<T> makeAllOfComposite(
 1377     ArrayRef<const Matcher<T> *> InnerMatchers) {
 1388   using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
 1395           ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1397           .template unconditionalConvertTo<T>());
 1408     ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
 1625 class TypeTraverseMatcher : public WrapperMatcherInterface<T> {
 1632   bool matches(const T &Node, ASTMatchFinder *Finder,
 1693   template <typename OuterT> operator Matcher<OuterT>() const {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
  199   ast_matchers::internal::Matcher<T> getTypedMatcher() const {
  202         ->template convertTo<T>();
  227       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
  228   typedef ast_matchers::internal::Matcher<T> MatcherT;
  232     return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/lib/AST/ASTContext.cpp
 2084     TypeInfo EltInfo = getTypeInfo(cast<ComplexType>(T)->getElementType());
 2301   if (const auto *CT = T->getAs<ComplexType>())
 2301   if (const auto *CT = T->getAs<ComplexType>())
 2920   ComplexType::Profile(ID, T);
 2923   if (ComplexType *CT = ComplexTypes.FindNodeOrInsertPos(ID, InsertPos))
 2933     ComplexType *NewIP = ComplexTypes.FindNodeOrInsertPos(ID, InsertPos);
 2936   auto *New = new (*this, TypeAlignment) ComplexType(T, Canonical);
 2936   auto *New = new (*this, TypeAlignment) ComplexType(T, Canonical);
 5687   if (const auto *CT = T->getAs<ComplexType>())
 5687   if (const auto *CT = T->getAs<ComplexType>())
 6817     const auto *CT = T->castAs<ComplexType>();
 6817     const auto *CT = T->castAs<ComplexType>();
tools/clang/lib/AST/ASTImporter.cpp
  312     ExpectedType VisitComplexType(const ComplexType *T);
 1039 ExpectedType ASTNodeImporter::VisitComplexType(const ComplexType *T) {
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  477                                   cast<ComplexType>(T1)->getElementType(),
  478                                   cast<ComplexType>(T2)->getElementType()))
tools/clang/lib/AST/ExprConstant.cpp
  219         const ComplexType *CT = Type->castAs<ComplexType>();
  219         const ComplexType *CT = Type->castAs<ComplexType>();
 3297           ObjType, ObjType->castAs<ComplexType>()->getElementType());
 3464         ObjType = ObjType->castAs<ComplexType>()->getElementType();
 3958                    SubobjType->castAs<ComplexType>()->getElementType()
 3962                    SubobjType->castAs<ComplexType>()->getElementType()
10286       const auto *CT = BaseType->castAs<ComplexType>();
10286       const auto *CT = BaseType->castAs<ComplexType>();
12641   QualType ElemTy = E->getType()->castAs<ComplexType>()->getElementType();
12760     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12762       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
12772     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12774       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
12796     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12798       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
12809     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12811       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
tools/clang/lib/AST/Interp/Program.cpp
  358   if (auto *CT = Ty->getAs<ComplexType>()) {
tools/clang/lib/AST/ItaniumMangle.cpp
 3037 void CXXNameMangler::mangleType(const ComplexType *T) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 2652 void MicrosoftCXXNameMangler::mangleType(const ComplexType *T, Qualifiers,
tools/clang/lib/AST/ODRHash.cpp
  833   void VisitComplexType(const ComplexType *T) {
tools/clang/lib/AST/Type.cpp
  534   if (const auto *CT = dyn_cast<ComplexType>(CanonicalType))
  534   if (const auto *CT = dyn_cast<ComplexType>(CanonicalType))
  550 const ComplexType *Type::getAsComplexIntegerType() const {
  551   if (const auto *Complex = getAs<ComplexType>())
  551   if (const auto *Complex = getAs<ComplexType>())
  826   QualType VisitComplexType(const ComplexType *T) {
 2008   if (const auto *CT = dyn_cast<ComplexType>(CanonicalType))
 2008   if (const auto *CT = dyn_cast<ComplexType>(CanonicalType))
 2047   return isa<ComplexType>(CanonicalType);
 2072   } else if (const auto *CT = dyn_cast<ComplexType>(T)) {
 2072   } else if (const auto *CT = dyn_cast<ComplexType>(T)) {
 3667     return Cache::get(cast<ComplexType>(T)->getElementType());
 3751     return computeTypeLinkageInfo(cast<ComplexType>(T)->getElementType());
tools/clang/lib/AST/TypePrinter.cpp
  361 void TypePrinter::printComplexBefore(const ComplexType *T, raw_ostream &OS) {
  366 void TypePrinter::printComplexAfter(const ComplexType *T, raw_ostream &OS) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  809 const AstTypeMatcher<ComplexType> complexType;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   75     return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
   78   static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
   79     return Value.getMatcher().getTypedMatcher<T>();
   83     return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  466       ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
  469         DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
  778     ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGCall.cpp
  953   if (const ComplexType *CT = Ty->getAs<ComplexType>()) {
  953   if (const ComplexType *CT = Ty->getAs<ComplexType>()) {
 1525   if (const ComplexType *CT = ResultType->getAs<ComplexType>()) {
 1525   if (const ComplexType *CT = ResultType->getAs<ComplexType>()) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  820 llvm::DIType *CGDebugInfo::CreateType(const ComplexType *Ty) {
 3027     return CreateType(cast<ComplexType>(Ty));
tools/clang/lib/CodeGen/CGDebugInfo.h
  155   llvm::DIType *CreateType(const ComplexType *Ty);
tools/clang/lib/CodeGen/CGExpr.cpp
 1000     QualType ElemTy = E->getType()->castAs<ComplexType>()->getElementType();
 1151       ConvertType(Ty->castAs<ComplexType>()->getElementType());
 2720     QualType T = ExprTy->castAs<ComplexType>()->getElementType();
tools/clang/lib/CodeGen/CGExprAgg.cpp
  926   if (const ComplexType *CT = ArgTy->getAs<ComplexType>())
  926   if (const ComplexType *CT = ArgTy->getAs<ComplexType>())
tools/clang/lib/CodeGen/CGExprComplex.cpp
   32 static const ComplexType *getComplexType(QualType type) {
   34   if (const ComplexType *comp = dyn_cast<ComplexType>(type)) {
   34   if (const ComplexType *comp = dyn_cast<ComplexType>(type)) {
   37     return cast<ComplexType>(cast<AtomicType>(type)->getValueType());
  234     QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
  240     QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
  427   SrcType = SrcType->castAs<ComplexType>()->getElementType();
  428   DestType = DestType->castAs<ComplexType>()->getElementType();
  443   DestType = DestType->castAs<ComplexType>()->getElementType();
  619            Op.Ty->castAs<ComplexType>()->getElementType());
  621            Op.Ty->castAs<ComplexType>()->getElementType());
  623            Op.Ty->castAs<ComplexType>()->getElementType());
  625            Op.Ty->castAs<ComplexType>()->getElementType());
  637       4, Op.Ty->castAs<ComplexType>()->getElementType());
  854     if (Op.Ty->castAs<ComplexType>()->getElementType()->isUnsignedIntegerType()) {
  901   QualType ComplexElementTy = cast<ComplexType>(OpInfo.Ty)->getElementType();
 1078   QualType Ty = E->getType()->castAs<ComplexType>()->getElementType();
 1091       CGF.ConvertType(E->getType()->castAs<ComplexType>()->getElementType());
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1507   SrcTy = SrcTy->castAs<ComplexType>()->getElementType();
 3858     if (auto *CTy = LHSTy->getAs<ComplexType>()) {
 3866     if (auto *CTy = RHSTy->getAs<ComplexType>()) {
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 3661         DestType->castAs<ComplexType>()->getElementType();
 3668     QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType();
 3670         DestType->castAs<ComplexType>()->getElementType();
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  544     llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType());
tools/clang/lib/CodeGen/SwiftCallingConv.cpp
   84   } else if (auto complexType = type->getAs<ComplexType>()) {
  815   if (isa<ComplexType>(type)) {
tools/clang/lib/CodeGen/TargetInfo.cpp
 1288   if (const ComplexType *CTy = Ty->getAs<ComplexType>())
 1288   if (const ComplexType *CTy = Ty->getAs<ComplexType>())
 2702   if (const ComplexType *CT = Ty->getAs<ComplexType>()) {
 2702   if (const ComplexType *CT = Ty->getAs<ComplexType>()) {
 3633     } else if (IsRegCall && FI.getReturnType()->getAs<ComplexType>()) {
 3636       const ComplexType *CT = FI.getReturnType()->getAs<ComplexType>();
 3636       const ComplexType *CT = FI.getReturnType()->getAs<ComplexType>();
 4157   if (const ComplexType *CTy = Ty->getAs<ComplexType>())
 4157   if (const ComplexType *CTy = Ty->getAs<ComplexType>())
 4194   if (const ComplexType *CTy = Ty->getAs<ComplexType>()) {
 4194   if (const ComplexType *CTy = Ty->getAs<ComplexType>()) {
 4540   if (const ComplexType *CTy = Ty->getAs<ComplexType>())
 4540   if (const ComplexType *CTy = Ty->getAs<ComplexType>())
 4662     if (const ComplexType *CT = Ty->getAs<ComplexType>()) {
 4662     if (const ComplexType *CT = Ty->getAs<ComplexType>()) {
 4871   if (const ComplexType *CTy = Ty->getAs<ComplexType>()) {
 4871   if (const ComplexType *CTy = Ty->getAs<ComplexType>()) {
 6004   if (const ComplexType *CT = Ty->getAs<ComplexType>())
 6004   if (const ComplexType *CT = Ty->getAs<ComplexType>())
 9356   if (auto CTy = Ty->getAs<ComplexType>()) {
 9542     QualType EltTy = Ty->castAs<ComplexType>()->getElementType();
tools/clang/lib/Index/USRGeneration.cpp
  818     if (const ComplexType *CT = T->getAs<ComplexType>()) {
  818     if (const ComplexType *CT = T->getAs<ComplexType>()) {
tools/clang/lib/Sema/SemaChecking.cpp
10083     if (const ComplexType *CT = dyn_cast<ComplexType>(T))
10083     if (const ComplexType *CT = dyn_cast<ComplexType>(T))
10128     if (const ComplexType *CT = dyn_cast<ComplexType>(T))
10128     if (const ComplexType *CT = dyn_cast<ComplexType>(T))
11630   if (isa<ComplexType>(Source)) {
11631     if (!isa<ComplexType>(Target)) {
11641     Source = cast<ComplexType>(Source)->getElementType().getTypePtr();
11642     Target = cast<ComplexType>(Target)->getElementType().getTypePtr();
tools/clang/lib/Sema/SemaDeclCXX.cpp
  934                                       const ComplexType *CT) {
 1443   if (auto *CT = DecompType->getAs<ComplexType>()) {
tools/clang/lib/Sema/SemaExpr.cpp
  958     QualType fpTy = cast<ComplexType>(ComplexTy)->getElementType();
  998   auto *LHSComplexType = dyn_cast<ComplexType>(LHSType);
  999   auto *RHSComplexType = dyn_cast<ComplexType>(RHSType);
 1110   auto *LHSComplex = LHSType->getAs<ComplexType>();
 1111   auto *RHSComplex = RHSType->getAs<ComplexType>();
 1208   const ComplexType *LHSComplexInt = LHSType->getAsComplexIntegerType();
 1209   const ComplexType *RHSComplexInt = RHSType->getAsComplexIntegerType();
 4264   if (const ComplexType *CT = V.get()->getType()->getAs<ComplexType>())
 4264   if (const ComplexType *CT = V.get()->getType()->getAs<ComplexType>())
 6361                       DestTy->castAs<ComplexType>()->getElementType(),
 6366                       DestTy->castAs<ComplexType>()->getElementType(),
 6386                               DestTy->castAs<ComplexType>()->getElementType(),
 6391                               DestTy->castAs<ComplexType>()->getElementType(),
 6415       QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
 6425                               SrcTy->castAs<ComplexType>()->getElementType(),
 6449       QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
 6459                               SrcTy->castAs<ComplexType>()->getElementType(),
 8261   if (getLangOpts().CPlusPlus && RHSType->getAs<ComplexType>() &&
 8262       !LHSType->getAs<ComplexType>())
10574     if (const ComplexType *CT = Type->getAs<ComplexType>()) {
10574     if (const ComplexType *CT = Type->getAs<ComplexType>()) {
tools/clang/lib/Sema/SemaExprCXX.cpp
 4037     QualType FromEl = From->getType()->castAs<ComplexType>()->getElementType();
 4038     QualType ToEl = ToType->castAs<ComplexType>()->getElementType();
 4177     if (const ComplexType *ToComplex = ToType->getAs<ComplexType>()) {
 4177     if (const ComplexType *ToComplex = ToType->getAs<ComplexType>()) {
 4199       const ComplexType *FromComplex = From->getType()->getAs<ComplexType>();
 4199       const ComplexType *FromComplex = From->getType()->getAs<ComplexType>();
tools/clang/lib/Sema/SemaInit.cpp
 1493   QualType elementType = DeclType->castAs<ComplexType>()->getElementType();
 3232     const ComplexType *CT = Parent.getType()->getAs<ComplexType>();
 3232     const ComplexType *CT = Parent.getType()->getAs<ComplexType>();
tools/clang/lib/Sema/SemaOpenMP.cpp
13428         if (auto *ComplexTy = OrigType->getAs<ComplexType>())
tools/clang/lib/Sema/SemaOverload.cpp
 2194   const ComplexType *FromComplex = FromType->getAs<ComplexType>();
 2194   const ComplexType *FromComplex = FromType->getAs<ComplexType>();
 2198   const ComplexType *ToComplex = ToType->getAs<ComplexType>();
 2198   const ComplexType *ToComplex = ToType->getAs<ComplexType>();
tools/clang/lib/Sema/SemaTemplate.cpp
 5499 bool UnnamedLocalNoLinkageFinder::VisitComplexType(const ComplexType* T) {
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 1518       if (const ComplexType *ComplexArg = Arg->getAs<ComplexType>())
 1518       if (const ComplexType *ComplexArg = Arg->getAs<ComplexType>())
 1520                                     cast<ComplexType>(Param)->getElementType(),
 5515                                  cast<ComplexType>(T)->getElementType(),
tools/clang/lib/Sema/TreeTransform.h
 4541   return TransformTypeSpecType(TLB, T);
 4541   return TransformTypeSpecType(TLB, T);
tools/clang/lib/Serialization/ASTWriter.cpp
  189 void ASTTypeWriter::VisitComplexType(const ComplexType *T) {
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
   61         InitType->castAs<ComplexType>()->getElementType());
tools/clang/tools/extra/clang-tidy/mpi/TypeMismatchCheck.cpp
  147 static bool isCComplexTypeMatching(const ComplexType *const Complex,
  313     } else if (const auto *Complex = BT->getAs<ComplexType>()) {
  313     } else if (const auto *Complex = BT->getAs<ComplexType>()) {
tools/clang/tools/libclang/CXType.cpp
  815       ET = cast<ComplexType> (TP)->getElementType();
tools/lldb/source/Symbol/ClangASTContext.cpp
 3553     } else if (const clang::ComplexType *CT =
 3554                    llvm::dyn_cast<clang::ComplexType>(
 4027     const clang::ComplexType *complex_type = llvm::dyn_cast<clang::ComplexType>(
 4027     const clang::ComplexType *complex_type = llvm::dyn_cast<clang::ComplexType>(
 5223       const clang::ComplexType *complex_type =
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
 1447     : public __and_<is_destructible<_Tp>, integral_constant<bool,
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };