[clang-tools-extra] [clang-doc][NFC] Use qualified auto (PR #136394)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 18 18:03:57 PDT 2025


https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/136394

None

>From f90ab6839b75906a2444868c43086c5d6ed759f5 Mon Sep 17 00:00:00 2001
From: Paul Kirth <paulkirth at google.com>
Date: Fri, 18 Apr 2025 18:01:43 -0700
Subject: [PATCH] [clang-doc][NFC] Use qualified auto

---
 clang-tools-extra/clang-doc/Representation.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang-tools-extra/clang-doc/Representation.cpp b/clang-tools-extra/clang-doc/Representation.cpp
index 0947ecff72272..54d2cb58ea2d9 100644
--- a/clang-tools-extra/clang-doc/Representation.cpp
+++ b/clang-tools-extra/clang-doc/Representation.cpp
@@ -215,7 +215,7 @@ void SymbolInfo::merge(SymbolInfo &&Other) {
   // Unconditionally extend the list of locations, since we want all of them.
   std::move(Other.Loc.begin(), Other.Loc.end(), std::back_inserter(Loc));
   llvm::sort(Loc);
-  auto Last = std::unique(Loc.begin(), Loc.end());
+  auto *Last = std::unique(Loc.begin(), Loc.end());
   Loc.erase(Last, Loc.end());
   mergeBase(std::move(Other));
 }



More information about the cfe-commits mailing list