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 7365b1c commit c498af7Copy full SHA for c498af7
clang-tools-extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
@@ -116,9 +116,8 @@ void ExpandModularHeadersPPCallbacks::handleModuleFile(
116
if (!MF)
117
return;
118
// Avoid processing a ModuleFile more than once.
119
- if (VisitedModules.count(MF))
+ if (!VisitedModules.insert(MF).second)
120
121
- VisitedModules.insert(MF);
122
123
// Visit all the input files of this module and mark them to record their
124
// contents later.
0 commit comments