File indexing completed on 2024-05-05 04:39:30

0001 /*
0002     SPDX-FileCopyrightText: 2017 Anton Anikin <anton.anikin@htower.ru>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "utils.h"
0008 
0009 #include <interfaces/icore.h>
0010 #include <interfaces/iprojectcontroller.h>
0011 
0012 namespace cppcheck
0013 {
0014 
0015 QString prettyPathName(const QString& path)
0016 {
0017     return KDevelop::ICore::self()->projectController()->prettyFileName(
0018         QUrl::fromLocalFile(path),
0019         KDevelop::IProjectController::FormatPlain);
0020 }
0021 
0022 }