diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp index f798992d28c..55d90060d12 100644 --- a/src/plugins/clangcodemodel/clangdclient.cpp +++ b/src/plugins/clangcodemodel/clangdclient.cpp @@ -2975,9 +2975,10 @@ MessageId ClangdClient::Private::getAndHandleAst(const TextDocOrFile &doc, const AstHandler &astHandler, AstCallbackMode callbackMode) { - const auto textDocPtr = std::get_if(&doc); + const auto textDocPtr = Utils::get_if(&doc); const TextDocument * const textDoc = textDocPtr ? *textDocPtr : nullptr; - const Utils::FilePath filePath = textDoc ? textDoc->filePath() : std::get(doc); + const Utils::FilePath filePath = textDoc ? textDoc->filePath() + : Utils::get(doc); // If the document's AST is in the cache and is up to date, call the handler. if (const auto ast = textDoc ? astCache.get(textDoc) : externalAstCache.get(filePath)) {