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
196
) 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
186
while (Node && Node->getLocation().
getAs
<PostStmt>())
206
if (Optional<Loc> LValue = RetVal.
getAs
<Loc>())
216
if (Optional<Loc> RetLoc = RetVal.
getAs
<Loc>())
262
if ((LValue = V.
getAs
<Loc>())) {
264
if (RValue.
getAs
<DefinedSVal>())
270
if (V.
getAs
<nonloc::LazyCompoundVal>() ||
271
V.
getAs
<nonloc::CompoundVal>())
293
if (V.
getAs
<Loc>()) {
358
Optional<Loc> ArgV = Call->getArgSVal(I).
getAs
<Loc>();
532
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
96
Optional<DefinedSVal> DV = V.
getAs
<DefinedSVal>();
101
assert(!haveRefTypeParam || DV->
getAs
<Loc>());
103
if (haveAttrNonNull && !DV->
getAs
<Loc>()) {
115
DV->
getAs
<nonloc::CompoundVal>()) {
119
DV = V.
getAs
<DefinedSVal>();
123
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>();
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>();
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>();
226
return val.
getAs
<UndefinedVal>() ? svalBuilder.makeArrayIndex(0) : val;
275
if (!index.
getAs
<NonLoc>())
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>();
/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>();
85
if (const PointerType *PT = T->
getAs
<PointerType>()) {
93
} else if (const ReferenceType *RT = T->
getAs
<ReferenceType>()) {
114
PointeeT->
getAs
<RecordType>()->isBeingDefined()) &&
126
if (const PointerType *PT = T->
getAs
<PointerType>())
128
else if (const MemberPointerType *PT = T->
getAs
<MemberPointerType>())
133
const FunctionProtoType *FnT = T->
getAs
<FunctionProtoType>()
[
all
...]
SemaCast.cpp
396
if (auto Ptr = From->
getAs
<PointerType>()) {
401
if (auto Ptr = To->
getAs
<PointerType>()) {
406
auto RecFrom = From->
getAs
<RecordType>();
407
auto RecTo = To->
getAs
<RecordType>();
427
const PointerType *T1PtrType = T1->
getAs
<PointerType>(),
428
*T2PtrType = T2->
getAs
<PointerType>();
435
T1->
getAs
<ObjCObjectPointerType>(),
437
T2->
getAs
<ObjCObjectPointerType>();
458
const MemberPointerType *T1MPType = T1->
getAs
<MemberPointerType>(),
459
*T2MPType = T2->
getAs
<MemberPointerType>()
[
all
...]
/external/clang/lib/AST/
Comment.cpp
242
if (QualifiedTypeLoc QualifiedTL = TL.
getAs
<QualifiedTypeLoc>()) {
247
if (PointerTypeLoc PointerTL = TL.
getAs
<PointerTypeLoc>()) {
252
if (ReferenceTypeLoc ReferenceTL = TL.
getAs
<ReferenceTypeLoc>()) {
257
if (AdjustedTypeLoc ATL = TL.
getAs
<AdjustedTypeLoc>()) {
262
TL.
getAs
<BlockPointerTypeLoc>()) {
267
TL.
getAs
<MemberPointerTypeLoc>()) {
271
if (ElaboratedTypeLoc ETL = TL.
getAs
<ElaboratedTypeLoc>()) {
276
if (FunctionTypeLoc FTL = TL.
getAs
<FunctionTypeLoc>()) {
283
TL.
getAs
<TemplateSpecializationTypeLoc>()) {
295
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());
ItaniumCXXABI.cpp
43
const RecordType *RT = VD.getType()->
getAs
<RecordType>();
63
CallOperator->getType()->
getAs
<FunctionProtoType>();
Type.cpp
52
ND = ty->
getAs
<RecordType>()->getDecl();
54
ND = ty->
getAs
<EnumType>()->getDecl();
56
ND = ty->
getAs
<TypedefType>()->getDecl();
299
while (const ParenType *PT = T->
getAs
<ParenType>())
325
template <> const TypedefType *Type::
getAs
() const {
329
template <> const TemplateSpecializationType *Type::
getAs
() const {
333
template <> const AttributedType *Type::
getAs
() const {
358
if (const RecordType *RT =
getAs
<RecordType>())
363
if (const RecordType *RT =
getAs
<RecordType>())
368
if (const RecordType *RT =
getAs
<RecordType>()
[
all
...]
TemplateBase.cpp
43
if (const EnumType *ET = T->
getAs
<EnumType>()) {
336
return getAsType()->
getAs
<PackExpansionType>()->getPattern();
/external/clang/lib/Analysis/
CocoaConventions.cpp
42
const PointerType* PT = RetTy->
getAs
<PointerType>();
63
const ObjCObjectPointerType *PT = Ty->
getAs
<ObjCObjectPointerType>();
FormatString.cpp
263
const PointerType *PT = argTy->
getAs
<PointerType>();
282
if (const EnumType *ETy = argTy->
getAs
<EnumType>())
285
if (const BuiltinType *BT = argTy->
getAs
<BuiltinType>())
299
if (const EnumType *ETy = argTy->
getAs
<EnumType>())
306
if (const BuiltinType *BT = argTy->
getAs
<BuiltinType>())
337
const PointerType *PT = argTy->
getAs
<PointerType>();
341
if (const BuiltinType *BT = pointeeTy->
getAs
<BuiltinType>())
357
const PointerType *PT = argTy->
getAs
<PointerType>();
394
if (argTy->
getAs
<ObjCObjectPointerType>() ||
395
argTy->
getAs
<BlockPointerType>()
[
all
...]
/external/clang/lib/Index/
USRGeneration.cpp
551
if (const PackExpansionType *Expansion = T->
getAs
<PackExpansionType>()) {
556
if (const BuiltinType *BT = T->
getAs
<BuiltinType>()) {
645
if (const PointerType *PT = T->
getAs
<PointerType>()) {
650
if (const RValueReferenceType *RT = T->
getAs
<RValueReferenceType>()) {
655
if (const ReferenceType *RT = T->
getAs
<ReferenceType>()) {
660
if (const FunctionProtoType *FT = T->
getAs
<FunctionProtoType>()) {
669
if (const BlockPointerType *BT = T->
getAs
<BlockPointerType>()) {
674
if (const ComplexType *CT = T->
getAs
<ComplexType>()) {
679
if (const TagType *TT = T->
getAs
<TagType>()) {
684
if (const TemplateTypeParmType *TTP = T->
getAs
<TemplateTypeParmType>())
[
all
...]
/external/clang/test/Index/
index-templates.cpp
50
template<typename T> T
getAs
();
55
Z4().
getAs
<Unsigned>();
165
// CHECK-LOAD: index-templates.cpp:50:26: FunctionTemplate=
getAs
:50:26 Extent=[50:3 - 50:33]
174
// 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/CodeGen/
CGCXX.cpp
77
cast<CXXRecordDecl>(I.getType()->
getAs
<RecordType>()->getDecl());
101
if (BaseD->getType()->
getAs
<FunctionType>()->getCallConv() !=
102
D->getType()->
getAs
<FunctionType>()->getCallConv())
287
const RecordType *RT = T->
getAs
<RecordType>();
Completed in 1000 milliseconds
1
2
3
4
5
6
7
8