[clang-tools-extra] [clangd] Initialize HighlightingsBuilder::Resolver (PR #74971)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 9 21:53:17 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clangd
Author: Nathan Ridge (HighCommander4)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/74971.diff
1 Files Affected:
- (modified) clang-tools-extra/clangd/SemanticHighlighting.cpp (+2-1)
``````````diff
diff --git a/clang-tools-extra/clangd/SemanticHighlighting.cpp b/clang-tools-extra/clangd/SemanticHighlighting.cpp
index 49e479abf45621..abc3d1f58a776e 100644
--- a/clang-tools-extra/clangd/SemanticHighlighting.cpp
+++ b/clang-tools-extra/clangd/SemanticHighlighting.cpp
@@ -418,7 +418,8 @@ class HighlightingsBuilder {
public:
HighlightingsBuilder(const ParsedAST &AST, const HighlightingFilter &Filter)
: TB(AST.getTokens()), SourceMgr(AST.getSourceManager()),
- LangOpts(AST.getLangOpts()), Filter(Filter) {}
+ LangOpts(AST.getLangOpts()), Filter(Filter),
+ Resolver(AST.getHeuristicResolver()) {}
HighlightingToken &addToken(SourceLocation Loc, HighlightingKind Kind) {
auto Range = getRangeForSourceLocation(Loc);
``````````
</details>
https://github.com/llvm/llvm-project/pull/74971
More information about the cfe-commits
mailing list