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

/external/clang/include/clang/Sema/
H A DOwnership.h55 template <typename T> T* getAs() const { function in class:clang::OpaquePtr
102 // FIXME: Doesn't work? return P.getAs< void >();
/external/clang/include/clang/AST/
H A DCanonicalType.h95 /// The getAs() function is typically used to try to downcast to a
100 /// if (CanQual<PointerType> Ptr = T->getAs<PointerType>()) {
109 template<typename U> CanProxy<U> getAs() const;
239 /// if (CanQual<PointerType> Ptr = T->getAs<PointerType>()) { ... }
245 template<typename U> CanProxy<U> getAs() const { function in class:clang::CanProxyBase
246 return this->Stored.template getAs<U>();
327 /// canonical type or as the result of the @c CanQual<T>::getAs member
721 if (CanQual<ReferenceType> RefType = getAs<ReferenceType>())
748 CanProxy<U> CanQual<T>::getAs() const { function in class:clang::CanQual
H A DType.h1494 bool isFunctionNoProtoType() const { return getAs<FunctionNoProtoType>(); }
1495 bool isFunctionProtoType() const { return getAs<FunctionProtoType>(); }
1625 /// NOTE: getAs*ArrayType are methods on ASTContext.
1646 /// Member-template getAs<specific type>'. Look through sugar for
1652 template <typename T> const T *getAs() const;
1654 /// A variant of getAs<> for array types which silently discards
1661 /// This method has the same relationship to getAs<T> as cast<T> has
1750 template <> const TypedefType *Type::getAs() const;
1756 template <> inline const Class##Type *Type::getAs() const { \
4235 if (const BuiltinType *T = getBaseType()->getAs<BuiltinTyp
5046 template <typename T> const T *Type::getAs() const { function in class:clang::FunctionType::ExtInfo::FunctionProtoType::Type
[all...]
/external/llvm/utils/yaml2obj/
H A Dyaml2obj.cpp43 getAs(const llvm::yaml::ScalarNode *SN, T &Result) { function
152 if (!getAs(Value, Machine)) {
206 if (!getAs(Value, Header.NumberOfSections)) {
211 if (!getAs(Value, Header.TimeDateStamp)) {
216 if (!getAs(Value, Header.PointerToSymbolTable)) {
221 if (!getAs(Value, Header.NumberOfSymbols)) {
226 if (!getAs(Value, Header.SizeOfOptionalHeader)) {
249 if (!getAs(Value, Header.Characteristics)) {
350 if (!getAs(Value, Sec.Header.VirtualSize)) {
355 if (!getAs(Valu
[all...]
/external/clang/include/clang/Analysis/
H A DCFG.h86 template<class ElemTy> const ElemTy *getAs() const { function in class:clang::CFGElement
723 if (const CFGStmt *stmt = BI->getAs<CFGStmt>())
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h171 template<typename RegionTy> const RegionTy* getAs() const;
498 if (T->getAs<ObjCObjectType>())
1070 const RegionTy* MemRegion::getAs() const { function in class:clang::ento::MemRegion
/external/clang/lib/AST/
H A DType.cpp51 ND = ty->getAs<RecordType>()->getDecl();
53 ND = ty->getAs<EnumType>()->getDecl();
55 ND = ty->getAs<TypedefType>()->getDecl();
286 while (const ParenType *PT = T->getAs<ParenType>())
293 template <> const TypedefType *Type::getAs() const { function in class:Type
351 if (const RecordType *RT = getAs<RecordType>())
356 if (const RecordType *RT = getAs<RecordType>())
361 if (const RecordType *RT = getAs<RecordType>())
366 if (const RecordType *RT = getAs<RecordType>())
372 if (const PointerType *PT = getAs<PointerTyp
[all...]

Completed in 138 milliseconds