Skip to content

Commit edcc59c

Browse files
[clang-tools-extra] Use llvm::is_contained (NFC)
1 parent d4773c6 commit edcc59c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang-tools-extra/modularize/PreprocessorTracker.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -987,11 +987,7 @@ class PreprocessorTrackerImpl : public PreprocessorTracker {
987987

988988
// Check for presence of header handle in the header stack.
989989
bool isHeaderHandleInStack(HeaderHandle H) const {
990-
for (auto I = HeaderStack.begin(), E = HeaderStack.end(); I != E; ++I) {
991-
if (*I == H)
992-
return true;
993-
}
994-
return false;
990+
return llvm::is_contained(HeaderStack, H);
995991
}
996992

997993
// Get the handle of a header inclusion path entry.

0 commit comments

Comments
 (0)