ClangFormat: Fix the "Open Used .clang-format File" function

- FilePathify related functions
- Logic of related functions were updated to use new configuration
files location and new settings variables

Change-Id: I9f5504fc72f5c051a83dc80e1feb2e13272de146
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Artem Sokolovskii
2023-01-16 12:40:41 +01:00
parent f0f0cf129a
commit a20c4c4490
3 changed files with 24 additions and 58 deletions

View File

@@ -113,7 +113,7 @@ bool ClangFormatPlugin::initialize(const QStringList &arguments, QString *errorS
[openClangFormatConfigAction] {
const FilePath fileName = FilePath::fromVariant(openClangFormatConfigAction->data());
if (!fileName.isEmpty())
EditorManager::openEditor(FilePath::fromString(configForFile(fileName)));
EditorManager::openEditor(configForFile(fileName));
});
connect(EditorManager::instance(),