From 190d6e983cd342c862ff8784869c7a26704620bf Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 6 Mar 2025 09:33:39 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF-8?q?l=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created using spr 1.3.4 --- .../clangd/refactor/tweaks/AnnotateHighlightings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp b/clang-tools-extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp index 3a320260238b6..5432b1ef37ec2 100644 --- a/clang-tools-extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp @@ -51,7 +51,8 @@ Expected AnnotateHighlightings::apply(const Selection &Inputs) { *Inputs.AST, /*IncludeInactiveRegionTokens=*/true); } else { // Store the existing scopes. - const auto &BackupScopes = Inputs.AST->getASTContext().getTraversalScope(); + const std::vector BackupScopes = + Inputs.AST->getASTContext().getTraversalScope(); // Narrow the traversal scope to the selected node. Inputs.AST->getASTContext().setTraversalScope( {const_cast(CommonDecl)});