/external/clang/test/CodeCompletion/ |
function-templates.cpp | 11 template<typename T> T &getAs(); 16 Foo().getAs<int>(); 21 // CHECK-CC2: getAs<<#typename T#>>()
|
/external/clang/lib/AST/ |
LambdaMangleContext.cpp | 23 = CallOperator->getType()->getAs<FunctionProtoType>();
|
Type.cpp | 51 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 { 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<PointerType>() [all...] |
VTTBuilder.cpp | 67 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl()); 94 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl()); 159 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
|
ASTContext.cpp | [all...] |
CXXInheritance.cpp | 135 const RecordType *Ty = I->getType()->getAs<RecordType>(); 204 DetectedVirtual = BaseType->getAs<RecordType>(); 259 = cast<CXXRecordDecl>(BaseSpec->getType()->getAs<RecordType>() 324 if (const RecordType *Record = PE->Base->getType()->getAs<RecordType>()) 339 = HidingP->back().Base->getType()->getAs<RecordType>()) 493 if (const RecordType *RT = Base->getType()->getAs<RecordType>()) { 721 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
|
/external/clang/lib/Sema/ |
SemaExceptionSpec.cpp | 29 if (const PointerType *PtrTy = T->getAs<PointerType>()) 31 else if (const ReferenceType *RefTy = T->getAs<ReferenceType>()) 33 else if (const MemberPointerType *MPTy = T->getAs<MemberPointerType>()) 35 return T->getAs<FunctionProtoType>(); 48 if (T->isRecordType() && T->getAs<RecordType>()->isBeingDefined()) 62 if (const PointerType* IT = T->getAs<PointerType>()) { 65 } else if (const ReferenceType* IT = T->getAs<ReferenceType>()) { 72 if (T->isRecordType() && T->getAs<RecordType>()->isBeingDefined()) 87 if (const PointerType *PT = T->getAs<PointerType>()) 89 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>() [all...] |
SemaCast.cpp | 401 const PointerType *T1PtrType = T1->getAs<PointerType>(), 402 *T2PtrType = T2->getAs<PointerType>(); 409 T1->getAs<ObjCObjectPointerType>(), 411 T2->getAs<ObjCObjectPointerType>(); 432 const MemberPointerType *T1MPType = T1->getAs<MemberPointerType>(), 433 *T2MPType = T2->getAs<MemberPointerType>(); 440 const BlockPointerType *T1BPType = T1->getAs<BlockPointerType>(), 441 *T2BPType = T2->getAs<BlockPointerType>(); 547 const PointerType *DestPointer = DestType->getAs<PointerType>(); 551 } else if ((DestReference = DestType->getAs<ReferenceType>())) [all...] |
SemaOverload.cpp | 256 if (const PointerType* ToPtrType = ToType->getAs<PointerType>()) [all...] |
SemaExprMember.cpp | 41 CanQual<RecordType> BaseRT = BaseT->getAs<RecordType>(); 286 const ExtVectorType *vecType = baseType->getAs<ExtVectorType>(); 454 const PointerType *PT = BaseType->getAs<PointerType>(); 512 const RecordType *BaseRT = BaseType->getAs<RecordType>(); 655 if (IsArrow) RecordTy = RecordTy->getAs<PointerType>()->getPointeeType(); 657 RecordTy->getAs<RecordType>(), 737 if (const PointerType *ptr = objectType->getAs<PointerType>()) { [all...] |
SemaExprCXX.cpp | 203 if (const RecordType *Record = MemberOfType->getAs<RecordType>()) { 220 = MemberOfType->getAs<TemplateSpecializationType>()) { 302 if (T->getAs<RecordType>() && 324 if (const RecordType *RecordT = T->getAs<RecordType>()) { 592 if (const PointerType* Ptr = Ty->getAs<PointerType>()) { 637 const RecordType *RecordTy = Ty->getAs<RecordType>(); [all...] |
/external/clang/test/SemaTemplate/ |
dependent-template-recover.cpp | 11 T::getAs<U>(); // expected-error{{use 'template' keyword to treat 'getAs' as a dependent template name}} 12 t->T::getAs<U>(); // expected-error{{use 'template' keyword to treat 'getAs' as a dependent template name}}
|
/external/clang/lib/Analysis/ |
CocoaConventions.cpp | 42 const PointerType* PT = RetTy->getAs<PointerType>(); 63 const ObjCObjectPointerType *PT = Ty->getAs<ObjCObjectPointerType>();
|
FormatString.cpp | 239 const PointerType *PT = argTy->getAs<PointerType>(); 258 if (const EnumType *ETy = argTy->getAs<EnumType>()) 261 if (const BuiltinType *BT = argTy->getAs<BuiltinType>()) 275 if (const EnumType *ETy = argTy->getAs<EnumType>()) 282 if (const BuiltinType *BT = argTy->getAs<BuiltinType>()) 312 const PointerType *PT = argTy->getAs<PointerType>(); 316 if (const BuiltinType *BT = pointeeTy->getAs<BuiltinType>()) 332 const PointerType *PT = argTy->getAs<PointerType>(); 363 if (argTy->getAs<ObjCObjectPointerType>() || 364 argTy->getAs<BlockPointerType>() [all...] |
CFGStmtMap.cpp | 53 const CFGStmt *CS = CE.getAs<CFGStmt>();
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
LLVMConventionsChecker.cpp | 30 const RecordType *RT = T->getAs<RecordType>(); 51 if (const ElaboratedType *QT = T->getAs<ElaboratedType>()) 54 const TypedefType *TT = T->getAs<TypedefType>(); 83 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>(); 97 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>(); 203 if (const RecordType *baseT = T->getAs<RecordType>()) { 246 if (const RecordType *RT = T->getAs<RecordType>()) {
|
NSErrorChecker.cpp | 204 if (const VarRegion *VR = R->getAs<VarRegion>()) 293 const PointerType* PPT = T->getAs<PointerType>(); 298 PPT->getPointeeType()->getAs<ObjCObjectPointerType>(); 313 const PointerType* PPT = T->getAs<PointerType>(); 316 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>();
|
DynamicTypePropagation.cpp | 197 = MsgE->getClassReceiver()->getAs<ObjCObjectType>()) 203 = MsgE->getSuperType()->getAs<ObjCObjectType>()) 237 CastE->getType()->getAs<ObjCObjectPointerType>(); 245 OldDTy->getAs<ObjCObjectPointerType>();
|
MallocSizeofChecker.cpp | 147 if (const PointerType *ptrA = A->getAs<PointerType>()) 148 if (const PointerType *ptrB = B->getAs<PointerType>()) { 184 QualType PointeeType = CastedType->getAs<PointerType>()->getPointeeType();
|
/external/llvm/utils/yaml2obj/ |
yaml2obj.cpp | 43 getAs(const llvm::yaml::ScalarNode *SN, T &Result) { 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(Value, Sec.Header.VirtualAddress)) [all...] |
/external/clang/test/Index/ |
index-templates.cpp | 50 template<typename T> T getAs(); 55 Z4().getAs<Unsigned>(); 155 // CHECK-LOAD: index-templates.cpp:50:26: FunctionTemplate=getAs:50:26 Extent=[50:3 - 50:33] 164 // CHECK-LOAD: index-templates.cpp:55:8: MemberRefExpr=getAs:50:26 SingleRefName=[55:8 - 55:13] RefName=[55:8 - 55:13] Extent=[55:3 - 55:23]
|
/external/clang/include/clang/AST/ |
EvaluatedExprVisitor.h | 67 = E->getExprOperand()->getType()->template getAs<RecordType>())
|
/external/clang/lib/CodeGen/ |
TargetInfo.cpp | 130 const RecordType *RT = FT->getAs<RecordType>(); 148 const RecordType *RT = T->getAs<RecordType>(); 183 const RecordType *RT = T->getAs<RecordType>(); 269 if (!Ty->getAs<BuiltinType>() && !Ty->hasPointerRepresentation() && 289 const RecordType *RT = Ty->getAs<RecordType>(); 370 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) 385 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) 442 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) 469 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) 598 if (Ty->getAs<BuiltinType>() || Ty->hasPointerRepresentation() | [all...] |
/external/clang/tools/libclang/ |
CXType.cpp | 353 if (const RecordType *Record = TP->getAs<RecordType>()) 442 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>()) 445 if (T->getAs<FunctionNoProtoType>()) 456 if (const FunctionType *FD = T->getAs<FunctionType>()) { 479 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>()) { 483 if (T->getAs<FunctionNoProtoType>()) { 495 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>()) { 511 if (const FunctionType *FD = T->getAs<FunctionType>())
|
CIndexUSRs.cpp | 537 if (const PackExpansionType *Expansion = T->getAs<PackExpansionType>()) { 542 if (const BuiltinType *BT = T->getAs<BuiltinType>()) { 622 if (const PointerType *PT = T->getAs<PointerType>()) { 627 if (const ReferenceType *RT = T->getAs<ReferenceType>()) { 632 if (const FunctionProtoType *FT = T->getAs<FunctionProtoType>()) { 643 if (const BlockPointerType *BT = T->getAs<BlockPointerType>()) { 648 if (const ComplexType *CT = T->getAs<ComplexType>()) { 653 if (const TagType *TT = T->getAs<TagType>()) { 658 if (const TemplateTypeParmType *TTP = T->getAs<TemplateTypeParmType>()) { 663 = T->getAs<TemplateSpecializationType>()) [all...] |