File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -535,7 +535,7 @@ struct FragmentCompiler {
535
535
}
536
536
if (Filters->empty ())
537
537
return std::nullopt;
538
- auto Filter = [Filters](llvm::StringRef Path) {
538
+ auto Filter = [Filters = std::move (Filters) ](llvm::StringRef Path) {
539
539
for (auto &Regex : *Filters)
540
540
if (Regex.match (Path))
541
541
return true ;
Original file line number Diff line number Diff line change @@ -305,14 +305,14 @@ IncludeInserter::calculateIncludePath(const HeaderFile &InsertedHeader,
305
305
if (llvm::sys::path::is_absolute (Suggested))
306
306
return std::nullopt;
307
307
bool IsAngled = false ;
308
- for (auto Filter : AngledHeaders) {
308
+ for (auto & Filter : AngledHeaders) {
309
309
if (Filter (Suggested)) {
310
310
IsAngled = true ;
311
311
break ;
312
312
}
313
313
}
314
314
bool IsQuoted = false ;
315
- for (auto Filter : QuotedHeaders) {
315
+ for (auto & Filter : QuotedHeaders) {
316
316
if (Filter (Suggested)) {
317
317
IsQuoted = true ;
318
318
break ;
You can’t perform that action at this time.
0 commit comments