Home
last modified time | relevance | path

Searched refs:IsArray (Results 1 – 25 of 44) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.modifiers/
H A Dreset.pass.cpp21 template <bool IsArray>
23 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_reset_pointer()
24 const int expect_alive = IsArray ? 3 : 1; in test_reset_pointer()
58 template <bool IsArray>
60 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_reset_nullptr()
61 const int expect_alive = IsArray ? 3 : 1; in test_reset_nullptr()
82 template <bool IsArray>
84 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_reset_no_arg()
85 const int expect_alive = IsArray ? 3 : 1; in test_reset_no_arg()
H A Drelease.pass.cpp21 template <bool IsArray>
23 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_basic()
24 const int expect_alive = IsArray ? 3 : 1; in test_basic()
42 if (IsArray) in test_basic()
H A Dswap.pass.cpp50 template <bool IsArray>
52 typedef typename std::conditional<IsArray, TT[], TT>::type VT; in test_basic()
53 const int expect_alive = IsArray ? 5 : 1; in test_basic()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
H A Dnullptr.pass.cpp23 template <bool IsArray>
25 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_basic()
26 const int expect_alive = IsArray ? 5 : 1; in test_basic()
H A Dnull.pass.cpp22 template <bool IsArray>
24 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_basic()
25 const int expect_alive = IsArray ? 5 : 1; in test_basic()
H A Dmove.pass.cpp35 template <bool IsArray>
37 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_basic()
38 const int expect_alive = IsArray ? 5 : 1; in test_basic()
88 template <bool IsArray>
90 typedef typename std::conditional<IsArray, int[], int>::type VT; in test_sfinae()
H A Dmove_convert.pass.cpp195 template <bool IsArray>
197 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_sfinae()
285 template <bool IsArray>
287 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_noexcept()
310 template <bool IsArray>
312 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_deleter_value_category()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
H A Dpointer_deleter.pass.cpp54 template <bool IsArray>
57 typedef typename std::conditional<!IsArray, int, int[]>::type VT; in test_sfinae()
104 template <bool IsArray>
107 typedef typename std::conditional<!IsArray, int, int[]>::type VT; in test_noexcept()
206 template <bool IsArray>
208 typedef typename std::conditional<!IsArray, A, A[]>::type VT; in test_basic()
209 const int expect_alive = IsArray ? 5 : 1; in test_basic()
252 typedef typename std::conditional<IsArray, int[], int>::type VT2; in test_basic()
291 template <bool IsArray>
294 typedef typename std::conditional<!IsArray, A, A[]>::type VT; in test_nullptr()
H A Dmove_convert.pass.cpp99 template <bool IsArray>
101 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_sfinae()
148 template <bool IsArray>
150 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_noexcept()
174 template <bool IsArray>
176 typedef typename std::conditional<IsArray, A[], A>::type VT; in test_deleter_value_category()
H A Dpointer.pass.cpp39 template <bool IsArray>
41 typedef typename std::conditional<!IsArray, A, A[]>::type ValueT; in test_pointer()
42 const int expect_alive = IsArray ? 5 : 1; in test_pointer()
H A Dmove.pass.cpp83 template <bool IsArray>
85 typedef typename std::conditional<!IsArray, A, A[]>::type VT; in test_basic()
86 const int expect_alive = IsArray ? 5 : 1; in test_basic()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DDescriptor.h80 const bool IsArray = false; member
144 bool isPrimitiveArray() const { return IsArray && !ElemDesc; } in isPrimitiveArray()
151 bool isPrimitive() const { return !IsArray && !ElemRecord; } in isPrimitive()
154 bool isArray() const { return IsArray; } in isArray()
H A DDescriptor.cpp124 Desc->IsInitialized = (B->isStatic() || F->IsArray) && !IsBase; in ctorRecord()
201 IsMutable(IsMutable), IsTemporary(IsTemporary), IsArray(true), in Descriptor()
211 IsTemporary(IsTemporary), IsArray(true), CtorFn(getCtorArrayPrim(Type)), in Descriptor()
222 IsArray(true), CtorFn(ctorArrayDesc), DtorFn(dtorArrayDesc), in Descriptor()
231 IsConst(true), IsMutable(false), IsTemporary(IsTemporary), IsArray(true), in Descriptor()
H A DPointer.h131 if (!Desc->IsArray) in expand()
203 bool inArray() const { return getFieldDesc()->IsArray; } in inArray()
H A DPointer.cpp192 return A.Base == B.Base && A.getFieldDesc()->IsArray; in hasSameArray()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/
H A Dpointer_type.pass.cpp33 template <bool IsArray>
35 typedef typename std::conditional<IsArray, int[], int>::type VT; in test_basic()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.observers/
H A Dexplicit_bool.pass.cpp34 template <bool IsArray>
36 typedef typename std::conditional<IsArray, int[], int>::type VT; in test_basic()
H A Dget.pass.cpp21 template <bool IsArray>
23 typedef typename std::conditional<IsArray, int[], int>::type VT; in test_basic()
H A Dget_deleter.pass.cpp28 template <bool IsArray>
30 typedef typename std::conditional<IsArray, int[], int>::type VT; in test_basic()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp37 bool &IsArray) const;
72 bool &IsArray) const { in getExtentSizeOfNewTarget()
78 IsArray = false; in getExtentSizeOfNewTarget()
80 IsArray = true; in getExtentSizeOfNewTarget()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DInlayHints.cpp39 IsArray = true; in AggregateDesignatorNames()
61 if (IsArray) in next()
71 if (IsArray) { in append()
103 bool IsArray = false; member in clang::clangd::__anon18ece24e0111::AggregateDesignatorNames
/llvm-project-15.0.7/clang/lib/AST/
H A DExprCXX.cpp199 CXXNewExprBits.IsArray = ArraySize.has_value(); in CXXNewExpr()
234 CXXNewExpr::CXXNewExpr(EmptyShell Empty, bool IsArray, in CXXNewExpr() argument
237 CXXNewExprBits.IsArray = IsArray; in CXXNewExpr()
251 bool IsArray = ArraySize.has_value(); in Create() local
257 IsArray + HasInit + NumPlacementArgs, IsParenTypeId), in Create()
266 CXXNewExpr *CXXNewExpr::CreateEmpty(const ASTContext &Ctx, bool IsArray, in CreateEmpty() argument
271 IsArray + HasInit + NumPlacementArgs, IsParenTypeId), in CreateEmpty()
274 CXXNewExpr(EmptyShell(), IsArray, NumPlacementArgs, IsParenTypeId); in CreateEmpty()
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DBoxAnalyzer.h230 return det && det->IsArray(); in symIsArray()
236 return det && det->IsArray() && det->shape().IsExplicitShape(); in isExplicitShape()
/llvm-project-15.0.7/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h1928 bool IsArray; // new[] ? variable
1933 InitList(InitList_), IsGlobal(IsGlobal_), IsArray(IsArray_) {} in NewExpr()
1936 F(ExprList, Type, InitList, IsGlobal, IsArray, getPrecedence()); in match()
1943 if (IsArray) in printLeft()
1963 bool IsArray; variable
1968 IsArray(IsArray_) {} in DeleteExpr()
1971 F(Op, IsGlobal, IsArray, getPrecedence()); in match()
1978 if (IsArray) in printLeft()
2085 bool IsArray; variable
2088 : Node(KBracedExpr), Elem(Elem_), Init(Init_), IsArray(IsArray_) {} in BracedExpr()
[all …]
/llvm-project-15.0.7/libcxxabi/src/demangle/
H A DItaniumDemangle.h1928 bool IsArray; // new[] ? variable
1933 InitList(InitList_), IsGlobal(IsGlobal_), IsArray(IsArray_) {} in NewExpr()
1936 F(ExprList, Type, InitList, IsGlobal, IsArray, getPrecedence()); in match()
1943 if (IsArray) in printLeft()
1963 bool IsArray; variable
1968 IsArray(IsArray_) {} in DeleteExpr()
1971 F(Op, IsGlobal, IsArray, getPrecedence()); in match()
1978 if (IsArray) in printLeft()
2085 bool IsArray; variable
2088 : Node(KBracedExpr), Elem(Elem_), Init(Init_), IsArray(IsArray_) {} in BracedExpr()
[all …]

12