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 9ce7725 commit 4382903Copy full SHA for 4382903
clang/lib/Format/MacroCallReconstructor.cpp
@@ -365,9 +365,9 @@ void MacroCallReconstructor::endReconstruction(FormatToken *Token) {
365
}
366
367
void MacroCallReconstructor::debugParentMap() const {
368
- llvm::DenseSet<FormatToken *> Values;
369
- for (const auto &P : SpelledParentToReconstructedParent)
370
- Values.insert(P.second);
+ llvm::DenseSet<FormatToken *> Values(
+ llvm::from_range,
+ llvm::make_second_range(SpelledParentToReconstructedParent));
371
372
for (const auto &P : SpelledParentToReconstructedParent) {
373
if (Values.contains(P.first))
0 commit comments