We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4773c6 commit edcc59cCopy full SHA for edcc59c
clang-tools-extra/modularize/PreprocessorTracker.cpp
@@ -987,11 +987,7 @@ class PreprocessorTrackerImpl : public PreprocessorTracker {
987
988
// Check for presence of header handle in the header stack.
989
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;
+ return llvm::is_contained(HeaderStack, H);
995
}
996
997
// Get the handle of a header inclusion path entry.
0 commit comments