Skip to content

Commit 28373d2

Browse files
authored
Merge branch 'main' into hgh/libcxx/P2255R2-A_type_trait_to_detect_reference_binding_to_temporary
2 parents d192d7f + 52552ce commit 28373d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Expected<Tweak::Effect> AnnotateHighlightings::apply(const Selection &Inputs) {
5151
*Inputs.AST, /*IncludeInactiveRegionTokens=*/true);
5252
} else {
5353
// Store the existing scopes.
54-
const auto &BackupScopes = Inputs.AST->getASTContext().getTraversalScope();
54+
const std::vector<Decl *> BackupScopes =
55+
Inputs.AST->getASTContext().getTraversalScope();
5556
// Narrow the traversal scope to the selected node.
5657
Inputs.AST->getASTContext().setTraversalScope(
5758
{const_cast<Decl *>(CommonDecl)});

0 commit comments

Comments
 (0)