File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
clang/unittests/DirectoryWatcher Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ struct VerifyingConsumer {
138
138
139
139
void consumeInitial (DirectoryWatcher::Event E) {
140
140
std::unique_lock<std::mutex> L (Mtx);
141
- auto It = std ::find (ExpectedInitial. begin (), ExpectedInitial. end () , E);
141
+ auto It = llvm ::find (ExpectedInitial, E);
142
142
if (It == ExpectedInitial.end ()) {
143
143
UnexpectedInitial.push_back (E);
144
144
} else {
@@ -152,11 +152,9 @@ struct VerifyingConsumer {
152
152
153
153
void consumeNonInitial (DirectoryWatcher::Event E) {
154
154
std::unique_lock<std::mutex> L (Mtx);
155
- auto It =
156
- std::find (ExpectedNonInitial.begin (), ExpectedNonInitial.end (), E);
155
+ auto It = llvm::find (ExpectedNonInitial, E);
157
156
if (It == ExpectedNonInitial.end ()) {
158
- auto OptIt =
159
- std::find (OptionalNonInitial.begin (), OptionalNonInitial.end (), E);
157
+ auto OptIt = llvm::find (OptionalNonInitial, E);
160
158
if (OptIt != OptionalNonInitial.end ()) {
161
159
OptionalNonInitial.erase (OptIt);
162
160
} else {
You can’t perform that action at this time.
0 commit comments