Skip to content

Commit 0e8384a

Browse files
committed
[clangd] Initialize local variable
desugarForDiagnostic only sets value to true.
1 parent c3c37a6 commit 0e8384a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/InlayHints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ bool isSugaredTemplateParameter(QualType QT) {
218218
// A simple wrapper for `clang::desugarForDiagnostic` that provides optional
219219
// semantic.
220220
std::optional<QualType> desugar(ASTContext &AST, QualType QT) {
221-
bool ShouldAKA;
221+
bool ShouldAKA = false;
222222
auto Desugared = clang::desugarForDiagnostic(AST, QT, ShouldAKA);
223223
if (!ShouldAKA)
224224
return std::nullopt;

0 commit comments

Comments
 (0)