From 91d568180d54fe05103bc42b326424b38925dd63 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 15 Aug 2022 16:12:11 +0200 Subject: [PATCH] ClangTools: Fix clang-tidy documentation URLs The model for the clang-tidy checks absurdly uses a FilePath-based base class, and after cd919e6f612eae94b61eabd10793965a1b141b30 started producing wrong URLs. Work around that. Change-Id: I8ef4f678c3abf991ada1a2955baa3d1ec13a195b Reviewed-by: Qt CI Bot Reviewed-by: Reviewed-by: David Schulz --- src/plugins/clangtools/diagnosticconfigswidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/clangtools/diagnosticconfigswidget.cpp b/src/plugins/clangtools/diagnosticconfigswidget.cpp index b788cd49184..1358c793263 100644 --- a/src/plugins/clangtools/diagnosticconfigswidget.cpp +++ b/src/plugins/clangtools/diagnosticconfigswidget.cpp @@ -263,7 +263,8 @@ static void buildTree(ProjectExplorer::Tree *parent, current->name = node.name; current->isDir = node.children.size(); if (parent) { - current->fullPath = parent->fullPath + current->name; + current->fullPath = Utils::FilePath::fromString(parent->fullPath.toString() + + current->name); parent->childDirectories.push_back(current); } else { current->fullPath = Utils::FilePath::fromString(current->name); @@ -279,7 +280,7 @@ static bool needsLink(ProjectExplorer::Tree *node) { return !node->isDir && !node->fullPath.toString().startsWith("clang-analyzer-"); } -class BaseChecksTreeModel : public ProjectExplorer::SelectableFilesModel +class BaseChecksTreeModel : public ProjectExplorer::SelectableFilesModel // FIXME: This isn't about files. { Q_OBJECT