OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getAs
(Results
1 - 25
of
192
) 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>())
71
if (Optional<nonloc::LocAsInteger> X =
getAs
<nonloc::LocAsInteger>())
74
if (Optional<loc::MemRegionVal> X =
getAs
<loc::MemRegionVal>()) {
86
Optional<loc::MemRegionVal> X =
getAs
<loc::MemRegionVal>();
113
if (Optional<nonloc::SymbolVal> X =
getAs
<nonloc::SymbolVal>())
122
if (Optional<nonloc::SymbolVal> X =
getAs
<nonloc::SymbolVal>())
136
if (Optional<loc::MemRegionVal> X =
getAs
<loc::MemRegionVal>()
[
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>())
169
if (!val.
getAs
<loc::ConcreteInt>())
658
if (Optional<loc::ConcreteInt> rInt = rhs.
getAs
<loc::ConcreteInt>()) {
661
if (Optional<NonLoc> Result = ResultVal.
getAs
<NonLoc>())
664
assert(!ResultVal.
getAs
<Loc>() && "Loc-Loc ops should not produce Locs");
672
assert(rhs.
getAs
<loc::MemRegionVal>() || rhs.getAs<loc::GotoLabel>())
[
all
...]
BugReporterVisitors.cpp
191
while (Node && Node->getLocation().
getAs
<PostStmt>())
211
if (Optional<Loc> LValue = RetVal.
getAs
<Loc>())
221
if (Optional<Loc> RetLoc = RetVal.
getAs
<Loc>())
266
if ((LValue = V.
getAs
<Loc>())) {
268
if (RValue.
getAs
<DefinedSVal>())
274
if (V.
getAs
<nonloc::LazyCompoundVal>() ||
275
V.
getAs
<nonloc::CompoundVal>())
297
if (V.
getAs
<Loc>()) {
362
Optional<Loc> ArgV = Call->getArgSVal(I).
getAs
<Loc>();
536
V.
getAs
<loc::ConcreteInt>() || V.getAs<nonloc::ConcreteInt>())
[
all
...]
ExplodedGraph.cpp
113
if (progPoint.
getAs
<PreStmtPurgeDeadSymbols>())
117
if (!progPoint.
getAs
<PostStmt>() || progPoint.
getAs
<PostStore>())
153
if (Optional<StmtPoint> SP = SuccLoc.
getAs
<StmtPoint>())
158
if (SuccLoc.
getAs
<CallEnter>() || SuccLoc.
getAs
<PreImplicitCall>())
/external/clang/lib/StaticAnalyzer/Checkers/
NonNullParamChecker.cpp
83
Optional<DefinedSVal> DV = V.
getAs
<DefinedSVal>();
88
assert(!haveRefTypeParam || DV->
getAs
<Loc>());
90
if (haveAttrNonNull && !DV->
getAs
<Loc>()) {
102
DV->
getAs
<nonloc::CompoundVal>()) {
106
DV = V.
getAs
<DefinedSVal>();
110
if (!V.
getAs
<Loc>())
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>();
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
191
if (Optional<loc::MemRegionVal> X = val.
getAs
<loc::MemRegionVal>()) {
193
if (const VarRegion *VR = R->
getAs
<VarRegion>())
208
if (loc.isUndef() || !loc.
getAs
<Loc>())
284
const PointerType* PPT = T->
getAs
<PointerType>();
289
PPT->getPointeeType()->
getAs
<ObjCObjectPointerType>();
304
const PointerType* PPT = T->
getAs
<PointerType>();
307
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>();
206
if (const RecordType *baseT = T->
getAs
<RecordType>()) {
252
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>()) {
DynamicTypePropagation.cpp
214
= MsgE->getClassReceiver()->
getAs
<ObjCObjectType>())
220
= MsgE->getSuperType()->
getAs
<ObjCObjectType>())
254
CastE->getType()->
getAs
<ObjCObjectPointerType>();
262
OldDTy->
getAs
<ObjCObjectPointerType>();
ObjCAtSyncChecker.cpp
45
if (V.
getAs
<UndefinedVal>()) {
CheckSecuritySyntaxOnly.cpp
310
const FunctionProtoType *FPT = FD->getType()->
getAs
<FunctionProtoType>();
319
const PointerType *PT = FPT->getParamType(0)->
getAs
<PointerType>();
346
const FunctionProtoType *FPT = FD->getType()->
getAs
<FunctionProtoType>();
359
const PointerType *PT = FPT->getParamType(1)->
getAs
<PointerType>();
390
const FunctionProtoType *FPT = FD->getType()->
getAs
<FunctionProtoType>();
399
const PointerType *PT = FPT->getParamType(0)->
getAs
<PointerType>();
559
const FunctionProtoType *FPT = FD->getType()->
getAs
<FunctionProtoType>();
571
const PointerType *PT = FPT->getParamType(i)->
getAs
<PointerType>();
593
const FunctionProtoType *FTP = FD->getType()->
getAs
<FunctionProtoType>();
600
const PointerType *PT = FTP->getParamType(0)->
getAs
<PointerType>()
[
all
...]
/external/clang/lib/AST/
MangleNumberingContext.cpp
24
= CallOperator->getType()->
getAs
<FunctionProtoType>();
Comment.cpp
245
if (QualifiedTypeLoc QualifiedTL = TL.
getAs
<QualifiedTypeLoc>()) {
250
if (PointerTypeLoc PointerTL = TL.
getAs
<PointerTypeLoc>()) {
255
if (ReferenceTypeLoc ReferenceTL = TL.
getAs
<ReferenceTypeLoc>()) {
260
if (AdjustedTypeLoc ATL = TL.
getAs
<AdjustedTypeLoc>()) {
265
TL.
getAs
<BlockPointerTypeLoc>()) {
270
TL.
getAs
<MemberPointerTypeLoc>()) {
274
if (ElaboratedTypeLoc ETL = TL.
getAs
<ElaboratedTypeLoc>()) {
279
if (FunctionTypeLoc FTL = TL.
getAs
<FunctionTypeLoc>()) {
288
TL.
getAs
<TemplateSpecializationTypeLoc>()) {
300
if (FunctionTypeLoc FTL = TL.
getAs
<FunctionTypeLoc>())
[
all
...]
VTTBuilder.cpp
65
cast<CXXRecordDecl>(I.getType()->
getAs
<RecordType>()->getDecl());
91
cast<CXXRecordDecl>(I.getType()->
getAs
<RecordType>()->getDecl());
155
cast<CXXRecordDecl>(I.getType()->
getAs
<RecordType>()->getDecl());
Type.cpp
52
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 {
337
template <> const TemplateSpecializationType *Type::
getAs
() const {
341
template <> const AttributedType *Type::
getAs
() const {
366
if (const RecordType *RT =
getAs
<RecordType>())
371
if (const RecordType *RT =
getAs
<RecordType>())
376
if (const RecordType *RT =
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/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
...]
SemaCast.cpp
405
const PointerType *T1PtrType = T1->
getAs
<PointerType>(),
406
*T2PtrType = T2->
getAs
<PointerType>();
413
T1->
getAs
<ObjCObjectPointerType>(),
415
T2->
getAs
<ObjCObjectPointerType>();
436
const MemberPointerType *T1MPType = T1->
getAs
<MemberPointerType>(),
437
*T2MPType = T2->
getAs
<MemberPointerType>();
444
const BlockPointerType *T1BPType = T1->
getAs
<BlockPointerType>(),
445
*T2BPType = T2->
getAs
<BlockPointerType>();
551
const PointerType *DestPointer = DestType->
getAs
<PointerType>();
555
} else if ((DestReference = DestType->
getAs
<ReferenceType>()))
[
all
...]
/external/clang/lib/Analysis/
CocoaConventions.cpp
42
const PointerType* PT = RetTy->
getAs
<PointerType>();
63
const ObjCObjectPointerType *PT = Ty->
getAs
<ObjCObjectPointerType>();
FormatString.cpp
260
const PointerType *PT = argTy->
getAs
<PointerType>();
279
if (const EnumType *ETy = argTy->
getAs
<EnumType>())
282
if (const BuiltinType *BT = argTy->
getAs
<BuiltinType>())
296
if (const EnumType *ETy = argTy->
getAs
<EnumType>())
303
if (const BuiltinType *BT = argTy->
getAs
<BuiltinType>())
333
const PointerType *PT = argTy->
getAs
<PointerType>();
337
if (const BuiltinType *BT = pointeeTy->
getAs
<BuiltinType>())
353
const PointerType *PT = argTy->
getAs
<PointerType>();
384
if (argTy->
getAs
<ObjCObjectPointerType>() ||
385
argTy->
getAs
<BlockPointerType>()
[
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/lib/Index/
USRGeneration.cpp
531
if (const PackExpansionType *Expansion = T->
getAs
<PackExpansionType>()) {
536
if (const BuiltinType *BT = T->
getAs
<BuiltinType>()) {
624
if (const PointerType *PT = T->
getAs
<PointerType>()) {
629
if (const ReferenceType *RT = T->
getAs
<ReferenceType>()) {
634
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
...]
Completed in 197 milliseconds
1
2
3
4
5
6
7
8