Searched defs:getAs (Results 1 - 9 of 9) sorted by relevance

/external/clang/include/clang/Sema/
H A DOwnership.h113 // FIXME: Doesn't work? return P.getAs< void >();
164 template <typename T> T *getAs() { return static_cast<T*>(get()); } function in class:clang::ActionResult
206 template <typename T> T *getAs() { return static_cast<T*>(get()); } function in class:clang::ActionResult
/external/clang/include/clang/AST/
H A DCanonicalType.h94 /// The getAs() function is typically used to try to downcast to a
99 /// if (CanQual<PointerType> Ptr = T->getAs<PointerType>()) {
108 template<typename U> CanProxy<U> getAs() const;
238 /// if (CanQual<PointerType> Ptr = T->getAs<PointerType>()) { ... }
244 template<typename U> CanProxy<U> getAs() const { function in class:clang::CanProxyBase
245 return this->Stored.template getAs<U>();
326 /// canonical type or as the result of the @c CanQual<T>::getAs member
675 if (CanQual<ReferenceType> RefType = getAs<ReferenceType>())
702 CanProxy<U> CanQual<T>::getAs() const { function in class:clang::CanQual
H A DTypeLoc.h38 /// A client should use the TypeLoc subclasses through castAs()/getAs()
64 T getAs() const { function in class:clang::TypeLoc
279 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>())
H A DType.h1524 bool isFunctionNoProtoType() const { return getAs<FunctionNoProtoType>(); }
1525 bool isFunctionProtoType() const { return getAs<FunctionProtoType>(); }
1673 /// NOTE: getAs*ArrayType are methods on ASTContext.
1700 /// Member-template getAs<specific type>'. Look through sugar for
1706 template <typename T> const T *getAs() const;
1708 /// A variant of getAs<> for array types which silently discards
1715 /// This method has the same relationship to getAs<T> as cast<T> has
1807 template <> const TypedefType *Type::getAs() const;
1812 template <> const TemplateSpecializationType *Type::getAs() const;
1816 template <> const AttributedType *Type::getAs() cons
5199 template <typename T> const T *Type::getAs() const { function in class:clang::FunctionType::ExtInfo::FunctionProtoType::Type
[all...]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h86 Optional<T> getAs() const { function in class:clang::ento::SVal
373 assert (data.first.getAs<Loc>());
H A DMemRegion.h186 template<typename RegionTy> const RegionTy* getAs() const;
511 if (T->getAs<ObjCObjectType>())
1017 assert((!Idx.getAs<nonloc::ConcreteInt>() ||
1110 const RegionTy* MemRegion::getAs() const { function in class:clang::ento::MemRegion
/external/clang/include/clang/Analysis/
H A DProgramPoint.h127 Optional<T> getAs() const { function in class:clang::ProgramPoint
H A DCFG.h98 Optional<T> getAs() const { function in class:clang::CFGElement
922 if (Optional<CFGStmt> stmt = BI->getAs<CFGStmt>())
/external/clang/lib/AST/
H A DType.cpp52 ND = ty->getAs<RecordType>()->getDecl();
54 ND = ty->getAs<EnumType>()->getDecl();
56 ND = ty->getAs<TypedefType>()->getDecl();
307 while (const ParenType *PT = T->getAs<ParenType>())
333 template <> const TypedefType *Type::getAs() const { function in class:Type
337 template <> const TemplateSpecializationType *Type::getAs() const { function in class:Type
341 template <> const AttributedType *Type::getAs() const { function in class:Type
366 if (const RecordType *RT = getAs<RecordType>())
371 if (const RecordType *RT = getAs<RecordType>())
376 if (const RecordType *RT = getAs<RecordTyp
[all...]

Completed in 166 milliseconds