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.
2 parents d192d7f + 52552ce commit 28373d2Copy full SHA for 28373d2
clang-tools-extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp
@@ -51,7 +51,8 @@ Expected<Tweak::Effect> AnnotateHighlightings::apply(const Selection &Inputs) {
51
*Inputs.AST, /*IncludeInactiveRegionTokens=*/true);
52
} else {
53
// Store the existing scopes.
54
- const auto &BackupScopes = Inputs.AST->getASTContext().getTraversalScope();
+ const std::vector<Decl *> BackupScopes =
55
+ Inputs.AST->getASTContext().getTraversalScope();
56
// Narrow the traversal scope to the selected node.
57
Inputs.AST->getASTContext().setTraversalScope(
58
{const_cast<Decl *>(CommonDecl)});
0 commit comments