File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -247,13 +247,11 @@ import Dep;
247247 ProjectModules->getRequiredModules (getFullPath (" M.cppm" )).empty ());
248248
249249 // Set the mangler to filter out the invalid flag
250- ProjectModules->setCommandMangler (
251- [](tooling::CompileCommand &Command, PathRef) {
252- auto const It =
253- std::find (Command.CommandLine .begin (), Command.CommandLine .end (),
254- " -invalid-unknown-flag" );
255- Command.CommandLine .erase (It);
256- });
250+ ProjectModules->setCommandMangler ([](tooling::CompileCommand &Command,
251+ PathRef) {
252+ auto const It = llvm::find (Command.CommandLine , " -invalid-unknown-flag" );
253+ Command.CommandLine .erase (It);
254+ });
257255
258256 // And now it returns a non-empty list of required modules since the
259257 // compilation succeeded
You can’t perform that action at this time.
0 commit comments