| /llvm-project/clang-tools-extra/unittests/clang-doc/ |
| H A D | MDGeneratorTest.cpp | 33 I.Children.Functions.back().Name = "OneFunction"; in TEST() 34 I.Children.Functions.back().Access = AccessSpecifier::AS_none; in TEST() 36 I.Children.Enums.back().Name = "OneEnum"; in TEST() 95 I.Children.Functions.back().Name = "OneFunction"; in TEST() 97 I.Children.Enums.back().Name = "OneEnum"; in TEST() 223 CommentInfo *BlankLine = Top.Children.back().get(); in TEST() 226 BlankLine->Children.back()->Kind = "TextComment"; in TEST() 229 CommentInfo *Brief = Top.Children.back().get(); in TEST() 232 Brief->Children.back()->Kind = "TextComment"; in TEST() 233 Brief->Children.back()->Name = "ParagraphComment"; in TEST() [all …]
|
| H A D | YAMLGeneratorTest.cpp | 38 I.Children.Functions.back().Name = "OneFunction"; in TEST() 39 I.Children.Functions.back().Access = AccessSpecifier::AS_none; in TEST() 41 I.Children.Enums.back().Name = "OneEnum"; in TEST() 96 CommentInfo *Brief = TopComment.Children.back().get(); in TEST() 99 Brief->Children.back()->Kind = "TextComment"; in TEST() 100 Brief->Children.back()->Name = "ParagraphComment"; in TEST() 101 Brief->Children.back()->Text = "Value of the thing."; in TEST() 102 I.Members.back().Description.push_back(std::move(TopComment)); in TEST() 107 I.Bases.back().Children.Functions.emplace_back(); in TEST() 108 I.Bases.back().Children.Functions.back().Name = "InheritedFunctionOne"; in TEST() [all …]
|
| H A D | BitcodeTest.cpp | 88 I.Bases.back().Children.Functions.emplace_back(); in TEST() 89 I.Bases.back().Members.emplace_back(TypeInfo("int"), "X", in TEST() 98 CommentInfo *Brief = TopComment.Children.back().get(); in TEST() 101 Brief->Children.back()->Kind = "TextComment"; in TEST() 102 Brief->Children.back()->Name = "ParagraphComment"; in TEST() 103 Brief->Children.back()->Text = "Value of the thing."; in TEST() 104 I.Bases.back().Members.back().Description.emplace_back(std::move(TopComment)); in TEST() 190 CommentInfo *BlankLine = Top.Children.back().get(); in TEST() 193 BlankLine->Children.back()->Kind = "TextComment"; in TEST() 226 CommentInfo *BlankLine = Top.Children.back().get(); in TEST() [all …]
|
| H A D | MergeTest.cpp | 26 One.Children.Functions.back().Name = "OneFunction"; in TEST() 27 One.Children.Functions.back().USR = NonEmptySID; in TEST() 29 One.Children.Enums.back().Name = "OneEnum"; in TEST() 30 One.Children.Enums.back().USR = NonEmptySID; in TEST() 41 Two.Children.Functions.back().Name = "TwoFunction"; in TEST() 43 Two.Children.Enums.back().Name = "TwoEnum"; in TEST() 62 Expected->Children.Functions.back().Name = "OneFunction"; in TEST() 63 Expected->Children.Functions.back().USR = NonEmptySID; in TEST() 65 Expected->Children.Functions.back().Name = "TwoFunction"; in TEST() 67 Expected->Children.Enums.back().Name = "OneEnum"; in TEST() [all …]
|
| /llvm-project/llvm/unittests/Remarks/ |
| H A D | RemarksAPITest.cpp | 24 R.Args.back().Key = "key"; in TEST() 25 R.Args.back().Val = "value"; in TEST() 27 R.Args.back().Key = "keydebug"; in TEST() 28 R.Args.back().Val = "valuedebug"; in TEST() 29 R.Args.back().Loc = remarks::RemarkLocation{"argpath", 6, 7}; in TEST() 41 R3.Args.back().Val = "not"; in TEST() 54 R.Args.back().Key = "key"; in TEST() 55 R.Args.back().Val = "value"; in TEST() 57 R.Args.back().Key = "keydebug"; in TEST() 58 R.Args.back().Val = "valuedebug"; in TEST() [all …]
|
| H A D | YAMLRemarksSerializerTest.cpp | 80 R.Args.back().Key = "key"; in TEST() 81 R.Args.back().Val = "value"; in TEST() 83 R.Args.back().Key = "keydebug"; in TEST() 84 R.Args.back().Val = "valuedebug"; in TEST() 85 R.Args.back().Loc = remarks::RemarkLocation{"argpath", 6, 7}; in TEST() 113 R.Args.back().Key = "key"; in TEST() 114 R.Args.back().Val = "value"; in TEST() 116 R.Args.back().Key = "keydebug"; in TEST() 117 R.Args.back().Val = "valuedebug"; in TEST() 118 R.Args.back().Loc = remarks::RemarkLocation{"argpath", 6, 7}; in TEST() [all …]
|
| H A D | BitstreamRemarksSerializerTest.cpp | 202 R.Args.back().Key = "key"; in TEST() 203 R.Args.back().Val = "value"; in TEST() 231 R.Args.back().Key = "key"; in TEST() 232 R.Args.back().Val = "value"; in TEST() 233 R.Args.back().Loc.emplace(); in TEST() 234 R.Args.back().Loc->SourceFilePath = "path"; in TEST() 235 R.Args.back().Loc->SourceLine = 99; in TEST() 236 R.Args.back().Loc->SourceColumn = 55; in TEST() 270 R.Args.back().Key = "key"; in TEST() 271 R.Args.back().Val = "value"; in TEST() [all …]
|
| /llvm-project/clang/lib/Format/ |
| H A D | MacroCallReconstructor.cpp | 153 getParentInResult(MacroCallStructure.back().MacroCallLParen); in prepareParent() 156 << MacroCallStructure.back().MacroCallLParen->TokenText in prepareParent() 162 (!ActiveReconstructedLines.back()->Tokens.empty() && in prepareParent() 163 Parent == ActiveReconstructedLines.back()->Tokens.back()->Tok)) { in prepareParent() 166 while (ActiveReconstructedLines.back()->Tokens.empty() || in prepareParent() 167 (Parent != ActiveReconstructedLines.back()->Tokens.back()->Tok && in prepareParent() 168 ActiveReconstructedLines.back()->Tokens.back()->Tok != in prepareParent() 174 ActiveReconstructedLines.back()->Tokens.back()->Children.push_back( in prepareParent() 177 &*ActiveReconstructedLines.back()->Tokens.back()->Children.back()); in prepareParent() 178 } else if (parentLine().Tokens.back()->Tok != Parent) { in prepareParent() [all …]
|
| /llvm-project/flang/test/Evaluate/ |
| H A D | fold-findloc.f90 | 16 logical, parameter :: test_fi1b = all(findloc(ia1, 1, back=.true.) == 5) 21 logical, parameter :: test_fi2b = all(findloc(ia2, 1, back=.true.) == [2, 3]) 31 logical, parameter :: test_xi1b = all(maxloc(ia1, back=.true.) == 3) 33 … :: test_xi1d = all(maxloc(ia1, mask=[.false., .true., .false., .true., .true.], back=.true.) == 4) 37 logical, parameter :: test_xi2b = all(maxloc(ia2, back=.true.) == [2, 2]) 39 …ask=reshape([.false., .true., .true., .true., .true., .true.], shape(ia2)), back=.true.) == [2, 2]) 41 logical, parameter :: test_xi2f = all(maxloc(ia2, dim=1, back=.true.) == [2, 2, 1]) 49 logical, parameter :: test_ni1b = all(minloc(ia1, back=.true.) == 5) 51 … :: test_ni1d = all(minloc(ia1, mask=[.false., .true., .true., .true., .false.], back=.true.) == 4) 55 logical, parameter :: test_ni2b = all(minloc(ia2, back=.true.) == [2, 3]) [all …]
|
| H A D | folding05.f90 | 104 logical, parameter :: test_c1_index4 = index("ABBA", "A", back=.true.) .EQ. 4 105 logical, parameter :: test_c1_index5 = index("", "") .EQ. 1 .AND. index("","",back=.TRUE.) .EQ. 1 106 …logical, parameter :: test_c1_index6 = index("", "a") .EQ. 0 .AND. index("","a",back=.TRUE.) .EQ. 0 107 …logical, parameter :: test_c1_index7 = index("a", "") .EQ. 1 .AND. index("a","",back=.TRUE.) .EQ. 2 111 logical, parameter :: test_c4_index4 = index(4_"ABBA", 4_"A", back=.true.) .EQ. 4 112 …logical, parameter :: test_c4_index5 = index(4_"", 4_"") .EQ. 1 .AND. index(4_"",4_"",back=.TRUE.)… 113 …logical, parameter :: test_c4_index6 = index(4_"", 4_"a") .EQ. 0 .AND. index(4_"",4_"a",back=.TRUE… 114 …logical, parameter :: test_c4_index7 = index(4_"a", 4_"") .EQ. 1 .AND. index(4_"a",4_"",back=.TRUE… 117 logical, parameter :: test_c1_scan2 = scan("ABBA", "ACD", back=.true.) .EQ. 4 123 logical, parameter :: test_c4_scan2 = scan(4_"ABBA", 4_"ACD", back=.true.) .EQ. 4 [all …]
|
| /llvm-project/llvm/lib/BinaryFormat/ |
| H A D | MsgPackDocument.cpp | 197 else if (Stack.back().Node.getKind() == Type::Array) { in readFromBlob() 199 auto &Array = Stack.back().Node.getArray(); in readFromBlob() 200 DestNode = &Array[Stack.back().Index++]; in readFromBlob() 202 auto &Map = Stack.back().Node.getMap(); in readFromBlob() 203 if (!Stack.back().MapEntry) { in readFromBlob() 205 Stack.back().MapKey = Node; in readFromBlob() 206 Stack.back().MapEntry = &Map[Node]; in readFromBlob() 210 DestNode = Stack.back().MapEntry; in readFromBlob() 211 Stack.back().MapEntry = nullptr; in readFromBlob() 212 ++Stack.back().Index; in readFromBlob() [all …]
|
| /llvm-project/clang/lib/Lex/ |
| H A D | PPConditionalDirectiveRecord.cpp | 53 if (SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in findConditionalDirectiveRegionLoc() 55 return CondDirectiveStack.back(); in findConditionalDirectiveRegionLoc() 70 SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(), in addCondDirectiveLoc() 78 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in If() 85 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in Ifdef() 92 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in Ifndef() 100 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in Elif() 101 CondDirectiveStack.back() = Loc; in Elif() 106 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back())); in Elifdef() 107 CondDirectiveStack.back() = Loc; in Elifdef() [all …]
|
| /llvm-project/llvm/unittests/ADT/ |
| H A D | SmallVectorTest.cpp | 418 EXPECT_EQ(5U, V.back()); in TEST() 421 EXPECT_EQ(0U, V.back()); in TEST() 429 EXPECT_EQ(5U, V.back()); in TEST() 432 EXPECT_EQ(0U, V.back()); in TEST() 467 EXPECT_TRUE(*it == V.back()); in TYPED_TEST() 1042 Emplaceable &back = V.emplace_back(); in TEST() local 1043 EXPECT_TRUE(&back == &V.back()); in TEST() 1045 EXPECT_TRUE(back.State == ES_Emplaced); in TEST() 1046 EXPECT_TRUE(back.A0.State == EAS_Defaulted); in TEST() 1047 EXPECT_TRUE(back.A1.State == EAS_Defaulted); in TEST() [all …]
|
| H A D | IListTest.cpp | 31 EXPECT_EQ(1, List.back().Value); in TEST() 32 EXPECT_EQ(nullptr, List.getPrevNode(List.back())); in TEST() 33 EXPECT_EQ(nullptr, List.getNextNode(List.back())); in TEST() 36 EXPECT_EQ(2, List.back().Value); in TEST() 38 EXPECT_EQ(1, List.getPrevNode(List.back())->Value); in TEST() 41 EXPECT_EQ(2, ConstList.back().Value); in TEST() 43 EXPECT_EQ(1, ConstList.getPrevNode(ConstList.back())->Value); in TEST() 64 EXPECT_EQ(&L1Nodes[1], &L1.back()); in TEST() 67 EXPECT_EQ(&L2Nodes[1], &L2.back()); in TEST() 70 EXPECT_EQ(1, L3.back().Value); in TEST() [all …]
|
| /llvm-project/lldb/source/Expression/ |
| H A D | DWARFExpression.cpp | 963 stack.back().SetValueType(Value::ValueType::LoadAddress); in Evaluate() 965 stack.back().SetValueType(Value::ValueType::FileAddress); in Evaluate() 1016 Value::ValueType value_type = stack.back().GetValueType(); in Evaluate() 1019 void *src = (void *)stack.back().GetScalar().ULongLong(); in Evaluate() 1022 stack.back().GetScalar() = ptr; in Evaluate() 1023 stack.back().ClearContext(); in Evaluate() 1026 auto file_addr = stack.back().GetScalar().ULongLong( in Evaluate() 1036 stack.back().GetScalar() = *maybe_load_addr; in Evaluate() 1042 stack.back().SetValueType(Value::ValueType::LoadAddress); in Evaluate() 1048 stack.back() in Evaluate() [all...] |
| /llvm-project/flang/runtime/ |
| H A D | extrema.cpp | 122 int line, const Descriptor *mask, bool back) { in DoMaxOrMinLoc() argument 125 if (back) { in DoMaxOrMinLoc() 138 const Descriptor *mask, bool back) const { in operator ()() 140 intrinsic, result, x, kind, source, line, mask, back); in operator ()() 148 int line, const Descriptor *mask, bool back) { in CharacterMaxOrMinLoc() argument 166 line, mask, back); in CharacterMaxOrMinLoc() 177 int line, const Descriptor *mask, bool back) { in TotalNumericMaxOrMinLoc() argument 191 intrinsic, result, x, kind, source, line, mask, back); in TotalNumericMaxOrMinLoc() 198 const char *source, int line, const Descriptor *mask, bool back) { in RTDEF() 200 "MAXLOC", result, x, kind, source, line, mask, back); in RTDEF() 332 DoPartialMaxOrMinLoc(const char * intrinsic,Descriptor & result,const Descriptor & x,int kind,int dim,const Descriptor * mask,bool back,Terminator & terminator) DoPartialMaxOrMinLoc() argument 358 TypedPartialMaxOrMinLoc(const char * intrinsic,Descriptor & result,const Descriptor & x,int kind,int dim,const char * source,int line,const Descriptor * mask,bool back) TypedPartialMaxOrMinLoc() argument [all...] |
| H A D | findloc.cpp | 92 const Descriptor &array, const Descriptor &target, bool back) in GetResult() 93 : array_{array}, target_{target}, back_{back} {} in GetResult() 140 bool back, Terminator &terminator) const { in operator ()() 143 Accumulator accumulator{x, target, back}; 158 int kind, int dim, const Descriptor *mask, bool back, in operator ()() 165 targetKind, terminator, result, x, target, kind, dim, mask, back, in operator ()() 171 targetKind, terminator, result, x, target, kind, dim, mask, back, in operator ()() 177 targetKind, terminator, result, x, target, kind, dim, mask, back, in operator ()() 191 const Descriptor &target, int kind, const Descriptor *mask, bool back, in operator ()() 194 Accumulator accumulator{x, target, back}; in LogicalFindlocHelper() 86 LocationAccumulator(const Descriptor & array,const Descriptor & target,bool back) LocationAccumulator() argument 196 LogicalFindlocHelper(Descriptor & result,const Descriptor & x,const Descriptor & target,int kind,const Descriptor * mask,bool back,Terminator & terminator) LogicalFindlocHelper() argument 295 PartialLogicalFindlocHelper(Descriptor & result,const Descriptor & x,const Descriptor & target,int kind,int dim,const Descriptor * mask,bool back,Terminator & terminator) PartialLogicalFindlocHelper() argument [all...] |
| H A D | character.cpp | 273 const CHAR *want, std::size_t wantLen, bool back) { in Index() argument 280 if (back) { in Index() 339 const CHAR *set, std::size_t setLen, bool back) { in ScanVerify() argument 340 std::size_t at{back ? xLen : 1}; in ScanVerify() 341 int increment{back ? -1 : 1}; in ScanVerify() 362 const char *set, std::size_t setLen, bool back) { in ScanVerify() argument 363 std::size_t at{back ? xLen : 1}; in ScanVerify() 364 int increment{back ? -1 : 1}; in ScanVerify() 385 const Descriptor &string, const Descriptor &arg, const Descriptor *back, in GeneralCharFunc() argument 389 : back ? back->rank() in GeneralCharFunc() [all …]
|
| /llvm-project/flang/test/Lower/Intrinsics/ |
| H A D | maxloc.f90 | 46 subroutine test_maxloc_optional_scalar_mask(mask, back, array) argument 49 logical, optional :: back local 50 print *, maxloc(array, mask=mask, back=back) 72 subroutine test_maxloc_optional_array_mask(mask, back, array) argument 75 logical, optional :: back local 76 print *, maxloc(array, mask=mask, back=back)
|
| H A D | minloc.f90 | 46 subroutine test_minloc_optional_scalar_mask(mask, back, array) argument 49 logical, optional :: back local 50 print *, minloc(array, mask=mask, back=back) 72 subroutine test_minloc_optional_array_mask(mask, back, array) argument 75 logical, optional :: back local 76 print *, minloc(array, mask=mask, back=back)
|
| /llvm-project/libcxx/test/std/containers/sequences/vector/vector.modifiers/ |
| H A D | emplace_back.pass.cpp | 64 assert(&r1 == &c.back()); in tests() 70 assert(&r2 == &c.back()); in tests() 82 assert(c.back().geti() == 3); in tests() 83 assert(c.back().getd() == 4.5); in tests() 91 assert(&r1 == &c.back()); in tests() 97 assert(&r2 == &c.back()); in tests() 109 assert(c.back().geti() == 3); in tests() 110 assert(c.back().getd() == 4.5); in tests() 118 assert(&r1 == &c.back()); in tests() 124 assert(&r2 == &c.back()); in tests() [all …]
|
| H A D | emplace.pass.cpp | 70 assert(c.back().geti() == 3); in tests() 71 assert(c.back().getd() == 4.5); in tests() 80 assert(c.back().geti() == 3); in tests() 81 assert(c.back().getd() == 4.5); in tests() 97 assert(c.back().geti() == 3); in tests() 98 assert(c.back().getd() == 4.5); in tests() 107 assert(c.back().geti() == 3); in tests() 108 assert(c.back().getd() == 4.5); in tests() 123 assert(c.back().geti() == 3); in tests() 124 assert(c.back().getd() == 4.5); in tests() [all …]
|
| /llvm-project/libcxx/test/std/strings/basic.string/string.access/ |
| H A D | back.pass.cpp | 23 ASSERT_SAME_TYPE(decltype(s.back()), typename S::reference); in test() 24 ASSERT_SAME_TYPE(decltype(cs.back()), typename S::const_reference); in test() 25 LIBCPP_ASSERT_NOEXCEPT(s.back()); in test() 26 LIBCPP_ASSERT_NOEXCEPT(cs.back()); in test() 27 assert(&cs.back() == &cs[cs.size() - 1]); in test() 28 assert(&s.back() == &s[cs.size() - 1]); in test() 29 s.back() = typename S::value_type('z'); in test() 30 assert(s.back() == typename S::value_type('z')); in test()
|
| /llvm-project/libcxx/test/std/containers/sequences/deque/deque.capacity/ |
| H A D | access.pass.cpp | 62 LIBCPP_ASSERT_NOEXCEPT( c.back()); in main() 63 ASSERT_SAME_TYPE(decltype(c.back()), C::reference); in main() 69 assert(c.back() == 9); in main() 79 LIBCPP_ASSERT_NOEXCEPT( c.back()); in main() 80 ASSERT_SAME_TYPE(decltype(c.back()), C::const_reference); in main() 86 assert(c.back() == 9); in main() 97 LIBCPP_ASSERT_NOEXCEPT( c.back()); in main() 98 ASSERT_SAME_TYPE(decltype(c.back()), C::reference); in main() 104 assert(c.back() == 9); in main() 114 LIBCPP_ASSERT_NOEXCEPT( c.back()); in main() [all …]
|
| /llvm-project/clang/unittests/Driver/ |
| H A D | MultilibTest.cpp | 162 ASSERT_TRUE(Selection1.back().gccSuffix() == "/foo") in TEST() 163 << "Selection picked " << Selection1.back() << " which was not expected"; in TEST() 169 ASSERT_TRUE(Selection2.back().gccSuffix() == "/bar") in TEST() 170 << "Selection picked " << Selection2.back() << " which was not expected"; 425 EXPECT_EQ("/s", Selected.back().gccSuffix()); in TEST() 427 EXPECT_EQ("/f", Selected.back().gccSuffix()); in TEST() 429 EXPECT_EQ("/h", Selected.back().gccSuffix()); in TEST() 451 EXPECT_EQ("/s", Selected.back().gccSuffix()); in TEST() 453 EXPECT_EQ("/s", Selected.back().gccSuffix()); in TEST() 455 EXPECT_EQ("/h", Selected.back() in TEST() [all...] |