@@ -204,7 +204,7 @@ utils::UseRangesCheck::ReplacerMap UseRangesCheck::getReplacerMap() const {
204
204
ReplacerMap Results;
205
205
static const Signature SingleSig = {{0 }};
206
206
static const Signature TwoSig = {{0 }, {2 }};
207
- static const auto AddFrom =
207
+ const auto AddFrom =
208
208
[&Results](llvm::IntrusiveRefCntPtr<UseRangesCheck::Replacer> Replacer,
209
209
std::initializer_list<StringRef> Names, StringRef Prefix) {
210
210
llvm::SmallString<64 > Buffer;
@@ -214,17 +214,17 @@ utils::UseRangesCheck::ReplacerMap UseRangesCheck::getReplacerMap() const {
214
214
}
215
215
};
216
216
217
- static const auto AddFromStd =
218
- [](llvm::IntrusiveRefCntPtr<UseRangesCheck::Replacer> Replacer,
219
- std::initializer_list<StringRef> Names) {
217
+ const auto AddFromStd =
218
+ [& ](llvm::IntrusiveRefCntPtr<UseRangesCheck::Replacer> Replacer,
219
+ std::initializer_list<StringRef> Names) {
220
220
AddFrom (Replacer, Names, " std" );
221
221
};
222
222
223
- static const auto AddFromBoost =
224
- [](llvm::IntrusiveRefCntPtr<UseRangesCheck::Replacer> Replacer,
225
- std::initializer_list<
226
- std::pair<StringRef, std::initializer_list<StringRef>>>
227
- NamespaceAndNames) {
223
+ const auto AddFromBoost =
224
+ [& ](llvm::IntrusiveRefCntPtr<UseRangesCheck::Replacer> Replacer,
225
+ std::initializer_list<
226
+ std::pair<StringRef, std::initializer_list<StringRef>>>
227
+ NamespaceAndNames) {
228
228
for (auto [Namespace, Names] : NamespaceAndNames)
229
229
AddFrom (Replacer, Names,
230
230
SmallString<64 >{" boost" , (Namespace.empty () ? " " : " ::" ),
0 commit comments