@@ -135,15 +135,11 @@ void checkElementPropertiesClangCodeview(LVReader *Reader) {
135
135
ASSERT_NE (Types, nullptr );
136
136
EXPECT_EQ (Types->size (), 6u );
137
137
138
- const auto BoolType =
139
- std::find_if (Types->begin (), Types->end (), [](const LVElement *elt) {
140
- return elt->getName () == " bool" ;
141
- });
138
+ const auto BoolType = llvm::find_if (
139
+ *Types, [](const LVElement *elt) { return elt->getName () == " bool" ; });
142
140
ASSERT_NE (BoolType, Types->end ());
143
- const auto IntType =
144
- std::find_if (Types->begin (), Types->end (), [](const LVElement *elt) {
145
- return elt->getName () == " int" ;
146
- });
141
+ const auto IntType = llvm::find_if (
142
+ *Types, [](const LVElement *elt) { return elt->getName () == " int" ; });
147
143
ASSERT_NE (IntType, Types->end ());
148
144
EXPECT_EQ (static_cast <LVType *>(*BoolType)->getBitSize (), 8u );
149
145
EXPECT_EQ (static_cast <LVType *>(*BoolType)->getStorageSizeInBytes (), 1u );
@@ -221,15 +217,11 @@ void checkElementPropertiesMsvcCodeview(LVReader *Reader) {
221
217
ASSERT_NE (Types, nullptr );
222
218
EXPECT_EQ (Types->size (), 8u );
223
219
224
- const auto BoolType =
225
- std::find_if (Types->begin (), Types->end (), [](const LVElement *elt) {
226
- return elt->getName () == " bool" ;
227
- });
220
+ const auto BoolType = llvm::find_if (
221
+ *Types, [](const LVElement *elt) { return elt->getName () == " bool" ; });
228
222
ASSERT_NE (BoolType, Types->end ());
229
- const auto IntType =
230
- std::find_if (Types->begin (), Types->end (), [](const LVElement *elt) {
231
- return elt->getName () == " int" ;
232
- });
223
+ const auto IntType = llvm::find_if (
224
+ *Types, [](const LVElement *elt) { return elt->getName () == " int" ; });
233
225
ASSERT_NE (IntType, Types->end ());
234
226
EXPECT_EQ (static_cast <LVType *>(*BoolType)->getBitSize (), 8u );
235
227
EXPECT_EQ (static_cast <LVType *>(*BoolType)->getStorageSizeInBytes (), 1u );
0 commit comments