HomeSort by relevance Sort by last modified time
    Searched refs:getAs (Results 1 - 25 of 182) sorted by null

1 2 3 4 5 6 7 8

  /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/StaticAnalyzer/Core/
SVals.cpp 33 if (Optional<nonloc::SymbolVal> SV = getAs<nonloc::SymbolVal>()) {
39 if (Optional<loc::MemRegionVal> RV = getAs<loc::MemRegionVal>()) {
52 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
54 if (const FunctionTextRegion *CTR = R->getAs<FunctionTextRegion>())
69 if (Optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>())
72 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
82 Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>();
105 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
114 if (Optional<nonloc::SymbolVal> X = getAs<nonloc::SymbolVal>())
128 if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()
    [all...]
BugReporterVisitors.cpp 182 while (Node && Node->getLocation().getAs<PostStmt>())
202 if (Optional<Loc> LValue = RetVal.getAs<Loc>())
212 if (Optional<Loc> RetLoc = RetVal.getAs<Loc>())
257 if ((LValue = V.getAs<Loc>())) {
259 if (RValue.getAs<DefinedSVal>())
265 if (V.getAs<nonloc::LazyCompoundVal>() ||
266 V.getAs<nonloc::CompoundVal>())
286 if (V.getAs<Loc>()) {
351 Optional<Loc> ArgV = Call->getArgSVal(I).getAs<Loc>();
487 if (V.isUndef() || V.getAs<loc::ConcreteInt>())
    [all...]
SimpleSValBuilder.cpp 63 assert(Val.getAs<Loc>() || Val.getAs<NonLoc>());
64 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy)
72 if (Optional<nonloc::LocAsInteger> LI = val.getAs<nonloc::LocAsInteger>()) {
101 if (!val.getAs<nonloc::ConcreteInt>())
143 if (!val.getAs<loc::ConcreteInt>())
609 if (Optional<loc::ConcreteInt> rInt = rhs.getAs<loc::ConcreteInt>()) {
612 if (Optional<Loc> Result = ResultVal.getAs<Loc>())
622 assert(rhs.getAs<loc::MemRegionVal>() || rhs.getAs<loc::GotoLabel>())
    [all...]
ExprEngineCXX.cpp 79 if (Optional<Loc> L = V.getAs<Loc>())
117 if (Optional<CFGStmt> StmtElem = Next.getAs<CFGStmt>()) {
140 if (Optional<CFGInitializer> InitElem = Next.getAs<CFGInitializer>()) {
302 if (const FunctionProtoType *ProtoType = Ty->getAs<FunctionProtoType>())
311 QualType ObjTy = CNE->getType()->getAs<PointerType>()->getPointeeType();
338 QualType ObjTy = CNE->getType()->getAs<PointerType>()->getPointeeType();
342 if (Optional<Loc> LV = Location.getAs<Loc>())
SValBuilder.cpp 81 if (Optional<nonloc::ConcreteInt> CI = val.getAs<nonloc::ConcreteInt>()) {
240 if (Optional<nonloc::ConcreteInt> rInt = RHS.getAs<nonloc::ConcreteInt>())
244 if (Optional<nonloc::ConcreteInt> lInt = LHS.getAs<nonloc::ConcreteInt>())
260 if (Optional<Loc> LV = lhs.getAs<Loc>()) {
261 if (Optional<Loc> RV = rhs.getAs<Loc>())
267 if (Optional<Loc> RV = rhs.getAs<Loc>()) {
335 if (Optional<nonloc::LocAsInteger> LV = val.getAs<nonloc::LocAsInteger>()) {
  /external/clang/lib/AST/
LambdaMangleContext.cpp 23 = CallOperator->getType()->getAs<FunctionProtoType>();
Comment.cpp 244 if (QualifiedTypeLoc QualifiedTL = TL.getAs<QualifiedTypeLoc>()) {
249 if (PointerTypeLoc PointerTL = TL.getAs<PointerTypeLoc>()) {
254 TL.getAs<BlockPointerTypeLoc>()) {
259 TL.getAs<MemberPointerTypeLoc>()) {
264 if (FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>()) {
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());
  /external/clang/lib/StaticAnalyzer/Checkers/
BoolAssignmentChecker.cpp 46 if (const TypedefType *TT = Ty->getAs<TypedefType>())
72 Optional<DefinedSVal> DV = val.getAs<DefinedSVal>();
90 greaterThanOrEqualToZeroVal.getAs<DefinedSVal>();
126 lessThanEqToOneVal.getAs<DefinedSVal>();
NonNullParamChecker.cpp 76 Optional<DefinedSVal> DV = V.getAs<DefinedSVal>();
81 assert(!haveRefTypeParam || DV->getAs<Loc>());
83 if (haveAttrNonNull && !DV->getAs<Loc>()) {
95 DV->getAs<nonloc::CompoundVal>()) {
99 DV = V.getAs<DefinedSVal>();
ArrayBoundCheckerV2.cpp 113 if (Optional<NonLoc> NV = extentBegin.getAs<NonLoc>()) {
118 Optional<NonLoc> lowerBoundToCheck = lowerBound.getAs<NonLoc>();
142 if (!extentVal.getAs<NonLoc>())
150 Optional<NonLoc> upperboundToCheck = upperbound.getAs<NonLoc>();
223 if (const RecordType *RT = Ty->getAs<RecordType>()) {
237 return val.getAs<UndefinedVal>() ? svalBuilder.makeArrayIndex(0) : val;
286 if (!index.getAs<NonLoc>())
NSErrorChecker.cpp 189 if (Optional<loc::MemRegionVal> X = val.getAs<loc::MemRegionVal>()) {
191 if (const VarRegion *VR = R->getAs<VarRegion>())
206 if (loc.isUndef() || !loc.getAs<Loc>())
277 const PointerType* PPT = T->getAs<PointerType>();
282 PPT->getPointeeType()->getAs<ObjCObjectPointerType>();
297 const PointerType* PPT = T->getAs<PointerType>();
300 const TypedefType* TT = PPT->getPointeeType()->getAs<TypedefType>();
LLVMConventionsChecker.cpp 31 const RecordType *RT = T->getAs<RecordType>();
52 if (const ElaboratedType *QT = T->getAs<ElaboratedType>())
55 const TypedefType *TT = T->getAs<TypedefType>();
84 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
98 const TemplateSpecializationType *TS = T->getAs<TemplateSpecializationType>();
204 if (const RecordType *baseT = T->getAs<RecordType>()) {
247 if (const RecordType *RT = T->getAs<RecordType>()) {
AnalyzerStatsChecker.cpp 63 if (Optional<BlockEntrance> BE = P.getAs<BlockEntrance>()) {
126 if (Optional<CFGStmt> CS = CE.getAs<CFGStmt>()) {
CStringChecker.cpp 204 Optional<DefinedSVal> val = V.getAs<DefinedSVal>();
362 Optional<NonLoc> Length = LengthVal.getAs<NonLoc>();
373 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) {
393 if (Optional<Loc> BufLoc = BufStart.getAs<Loc>()) {
429 Optional<Loc> firstLoc = firstVal.getAs<Loc>();
433 Optional<Loc> secondLoc = secondVal.getAs<Loc>();
457 reverse.getAs<DefinedOrUnknownSVal>();
477 Optional<NonLoc> Length = LengthVal.getAs<NonLoc>();
487 Optional<Loc> FirstStartLoc = FirstStart.getAs<Loc>();
494 Optional<Loc> FirstEndLoc = FirstEnd.getAs<Loc>()
    [all...]
DynamicTypePropagation.cpp 198 = MsgE->getClassReceiver()->getAs<ObjCObjectType>())
204 = MsgE->getSuperType()->getAs<ObjCObjectType>())
238 CastE->getType()->getAs<ObjCObjectPointerType>();
246 OldDTy->getAs<ObjCObjectPointerType>();
ObjCAtSyncChecker.cpp 45 if (V.getAs<UndefinedVal>()) {
  /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>();
58 if (const PointerType *PT = T->getAs<PointerType>()) {
66 } else if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
87 PointeeT->getAs<RecordType>()->isBeingDefined()) &&
99 if (const PointerType *PT = T->getAs<PointerType>())
101 else if (const MemberPointerType *PT = T->getAs<MemberPointerType>())
106 const FunctionProtoType *FnT = T->getAs<FunctionProtoType>()
    [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 Optional<CFGStmt> CS = CE.getAs<CFGStmt>();
  /external/llvm/utils/yaml2obj/
yaml2obj.cpp 42 getAs(const llvm::yaml::ScalarNode *SN, T &Result) {
151 if (!getAs(Value, Machine)) {
205 if (!getAs(Value, Header.NumberOfSections)) {
210 if (!getAs(Value, Header.TimeDateStamp)) {
215 if (!getAs(Value, Header.PointerToSymbolTable)) {
220 if (!getAs(Value, Header.NumberOfSymbols)) {
225 if (!getAs(Value, Header.SizeOfOptionalHeader)) {
248 if (!getAs(Value, Header.Characteristics)) {
349 if (!getAs(Value, Sec.Header.VirtualSize)) {
354 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]

Completed in 491 milliseconds

1 2 3 4 5 6 7 8