Home
last modified time | relevance | path

Searched refs:Array1 (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DEnumeratedArrayTest.cpp26 EnumeratedArray<float, Colors, Colors::Last, size_t> Array1; in TEST() local
28 Array1[Colors::Red] = 1.0; in TEST()
29 Array1[Colors::Blue] = 2.0; in TEST()
30 Array1[Colors::Green] = 3.0; in TEST()
32 EXPECT_EQ(Array1[Colors::Red], 1.0); in TEST()
33 EXPECT_EQ(Array1[Colors::Blue], 2.0); in TEST()
34 EXPECT_EQ(Array1[Colors::Green], 3.0); in TEST()
H A DArrayRefTest.cpp54 ArrayRef<uint16_t> Array1 = makeArrayRef(Words1, 4); in TEST() local
57 ArrayRef<uint16_t> Array1c = Array1.copy(Alloc); in TEST()
59 EXPECT_TRUE(Array1.equals(Array1c)); in TEST()
60 EXPECT_NE(Array1.data(), Array1c.data()); in TEST()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-implicits.cpp50 void templatedArrayRef(int (&Array1)[N], int (&Array2)[M]) {} in templatedArrayRef()
64 void templatedArrayRef(int (&Array1)[8], int (&Array2)[8]) { templatedArrayRef(Array2, Array1); } in templatedArrayRef()
70 void templatedArrayRef(int (&Array1)[16], int (&Array2)[24]) {} in templatedArrayRef()
H A Deasily-swappable-parameters-len2.cpp324 void templatedArrayRef(int (&Array1)[N], int (&Array2)[M]) {} in templatedArrayRef()
338 void templatedArrayRef(int (&Array1)[8], int (&Array2)[8]) { templatedArrayRef(Array2, Array1); } in templatedArrayRef()
344 void templatedArrayRef(int (&Array1)[16], int (&Array2)[24]) {} in templatedArrayRef()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory.cpp330 HeapArray<int> Array1; in test_inner_template() local
335 Array1 = static_cast<HeapArray<int> &&>(Array2); in test_inner_template()
338 int *NonOwningPtr = Array1.data(); // Ok in test_inner_template()
339 gsl::owner<int *> OwningPtr = Array1.data(); // Bad, since it does not return the owner in test_inner_template()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTStructuralEquivalence.cpp588 const ArrayType *Array1, in IsArrayStructurallyEquivalent() argument
590 if (!IsStructurallyEquivalent(Context, Array1->getElementType(), in IsArrayStructurallyEquivalent()
593 if (Array1->getSizeModifier() != Array2->getSizeModifier()) in IsArrayStructurallyEquivalent()
754 const auto *Array1 = cast<ConstantArrayType>(T1); in IsStructurallyEquivalent() local
759 if (!IsArrayStructurallyEquivalent(Context, Array1, Array2)) in IsStructurallyEquivalent()
771 const auto *Array1 = cast<VariableArrayType>(T1); in IsStructurallyEquivalent() local
773 if (!IsStructurallyEquivalent(Context, Array1->getSizeExpr(), in IsStructurallyEquivalent()
777 if (!IsArrayStructurallyEquivalent(Context, Array1, Array2)) in IsStructurallyEquivalent()
784 const auto *Array1 = cast<DependentSizedArrayType>(T1); in IsStructurallyEquivalent() local
786 if (!IsStructurallyEquivalent(Context, Array1->getSizeExpr(), in IsStructurallyEquivalent()
[all …]
H A DExpr.cpp4075 const auto *Array1 = dyn_cast<ArraySubscriptExpr>(E1); in isSameComparisonOperand() local
4077 if (Array1 && Array2) { in isSameComparisonOperand()
4078 if (!isSameComparisonOperand(Array1->getBase(), Array2->getBase())) in isSameComparisonOperand()
4081 auto Idx1 = Array1->getIdx(); in isSameComparisonOperand()
/llvm-project-15.0.7/llvm/test/Analysis/BasicAA/
H A Dfeaturetest.ll41 %Array1 = alloca i32, i32 100
43 call void @llvm.assume(i1 true) ["align"(i32* %Array1, i32 4)]
45 call void @external(i32* %Array1)
48 %pointer = getelementptr i32, i32* %Array1, i64 %A
/llvm-project-15.0.7/llvm/unittests/Support/
H A DHashBuilderTest.cpp221 llvm::ArrayRef<int> Array1(&Values[0], 1); in TYPED_TEST() local
228 auto Hash1And23 = hashWithBuilder<HE>(Array1, Array23); in TYPED_TEST()
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dkindof.m459 @interface Array1<T> : NSObject interface
465 @interface Array1<__kindof I1*>(extensions1) // expected-error{{expected type parameter name}} interface in extensions1