Skip to content

Commit e5ae81c

Browse files
authored
Merge pull request #14158 from fzakaria/fzakaria/small-clang-tidy-fix
clang-tidy fix for src/libstore/build/derivation-check.cc
2 parents d5fa131 + 29f3da1 commit e5ae81c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libstore/build/derivation-check.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ void checkOutputs(
1818
for (auto & output : outputs)
1919
outputsByPath.emplace(store.printStorePath(output.second.path), output.second);
2020

21-
for (auto & [outputName, info] : outputs) {
21+
for (auto & pair : outputs) {
22+
// We can't use auto destructuring here because
23+
// clang-tidy seems to complain about it.
24+
const std::string & outputName = pair.first;
25+
const auto & info = pair.second;
2226

2327
auto * outputSpec = get(drvOutputs, outputName);
2428
assert(outputSpec);

0 commit comments

Comments
 (0)