forked from qt-creator/qt-creator
Fix compile after FileName drop
Amends 44acfc0702
.
Change-Id: I1bddb0642e181b0a02d4ecba7ff1ae282218338f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -433,7 +433,7 @@ QList<ToolChain *> IarToolChainFactory::autoDetect(const QList<ToolChain *> &alr
|
|||||||
if (!compilerPath.isEmpty()) {
|
if (!compilerPath.isEmpty()) {
|
||||||
// Build full compiler path.
|
// Build full compiler path.
|
||||||
compilerPath += entry.subExePath;
|
compilerPath += entry.subExePath;
|
||||||
const FileName fn = FileName::fromString(compilerPath);
|
const FilePath fn = FilePath::fromString(compilerPath);
|
||||||
if (compilerExists(fn)) {
|
if (compilerExists(fn)) {
|
||||||
// Note: threeLevelKey is a guessed toolchain version.
|
// Note: threeLevelKey is a guessed toolchain version.
|
||||||
candidates.push_back({fn, threeLevelKey});
|
candidates.push_back({fn, threeLevelKey});
|
||||||
|
@@ -135,7 +135,7 @@ bool ClangFormatPlugin::initialize(const QStringList &arguments, QString *errorS
|
|||||||
const QString fileName = openClangFormatConfigAction->data().toString();
|
const QString fileName = openClangFormatConfigAction->data().toString();
|
||||||
if (!fileName.isEmpty()) {
|
if (!fileName.isEmpty()) {
|
||||||
const QString clangFormatConfigPath = configForFile(
|
const QString clangFormatConfigPath = configForFile(
|
||||||
Utils::FileName::fromString(fileName));
|
Utils::FilePath::fromString(fileName));
|
||||||
Core::EditorManager::openEditor(clangFormatConfigPath);
|
Core::EditorManager::openEditor(clangFormatConfigPath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -430,7 +430,7 @@ Utils::FilePath CompilationDatabaseProject::rootPathFromSettings() const
|
|||||||
#ifdef WITH_TESTS
|
#ifdef WITH_TESTS
|
||||||
return Utils::FilePath::fromString(projectDirectory().fileName());
|
return Utils::FilePath::fromString(projectDirectory().fileName());
|
||||||
#else
|
#else
|
||||||
return Utils::FileName::fromString(
|
return Utils::FilePath::fromString(
|
||||||
namedSettings(ProjectExplorer::Constants::PROJECT_ROOT_PATH_KEY).toString());
|
namedSettings(ProjectExplorer::Constants::PROJECT_ROOT_PATH_KEY).toString());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -602,7 +602,7 @@ void tst_SettingsAccessor::findIssues_ok()
|
|||||||
{
|
{
|
||||||
const TestSettingsAccessor accessor;
|
const TestSettingsAccessor accessor;
|
||||||
const QVariantMap data = versionedMap(6, TESTACCESSOR_DEFAULT_ID);
|
const QVariantMap data = versionedMap(6, TESTACCESSOR_DEFAULT_ID);
|
||||||
const Utils::FileName path = Utils::FileName::fromString("/foo/baz.user");
|
const Utils::FilePath path = Utils::FilePath::fromString("/foo/baz.user");
|
||||||
|
|
||||||
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
||||||
|
|
||||||
@@ -613,7 +613,7 @@ void tst_SettingsAccessor::findIssues_emptyData()
|
|||||||
{
|
{
|
||||||
const TestSettingsAccessor accessor;
|
const TestSettingsAccessor accessor;
|
||||||
const QVariantMap data;
|
const QVariantMap data;
|
||||||
const Utils::FileName path = Utils::FileName::fromString("/foo/bar.user");
|
const Utils::FilePath path = Utils::FilePath::fromString("/foo/bar.user");
|
||||||
|
|
||||||
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
||||||
|
|
||||||
@@ -624,7 +624,7 @@ void tst_SettingsAccessor::findIssues_tooNew()
|
|||||||
{
|
{
|
||||||
const TestSettingsAccessor accessor;
|
const TestSettingsAccessor accessor;
|
||||||
const QVariantMap data = versionedMap(42, TESTACCESSOR_DEFAULT_ID);
|
const QVariantMap data = versionedMap(42, TESTACCESSOR_DEFAULT_ID);
|
||||||
const Utils::FileName path = Utils::FileName::fromString("/foo/bar.user");
|
const Utils::FilePath path = Utils::FilePath::fromString("/foo/bar.user");
|
||||||
|
|
||||||
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
||||||
|
|
||||||
@@ -635,7 +635,7 @@ void tst_SettingsAccessor::findIssues_tooOld()
|
|||||||
{
|
{
|
||||||
const TestSettingsAccessor accessor;
|
const TestSettingsAccessor accessor;
|
||||||
const QVariantMap data = versionedMap(2, TESTACCESSOR_DEFAULT_ID);
|
const QVariantMap data = versionedMap(2, TESTACCESSOR_DEFAULT_ID);
|
||||||
const Utils::FileName path = Utils::FileName::fromString("/foo/bar.user");
|
const Utils::FilePath path = Utils::FilePath::fromString("/foo/bar.user");
|
||||||
|
|
||||||
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
||||||
|
|
||||||
@@ -646,7 +646,7 @@ void tst_SettingsAccessor::findIssues_wrongId()
|
|||||||
{
|
{
|
||||||
const TestSettingsAccessor accessor;
|
const TestSettingsAccessor accessor;
|
||||||
const QVariantMap data = versionedMap(6, "foo");
|
const QVariantMap data = versionedMap(6, "foo");
|
||||||
const Utils::FileName path = Utils::FileName::fromString("/foo/bar.user");
|
const Utils::FilePath path = Utils::FilePath::fromString("/foo/bar.user");
|
||||||
|
|
||||||
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
||||||
|
|
||||||
@@ -657,7 +657,7 @@ void tst_SettingsAccessor::findIssues_nonDefaultPath()
|
|||||||
{
|
{
|
||||||
const TestSettingsAccessor accessor;
|
const TestSettingsAccessor accessor;
|
||||||
const QVariantMap data = versionedMap(6, TESTACCESSOR_DEFAULT_ID);
|
const QVariantMap data = versionedMap(6, TESTACCESSOR_DEFAULT_ID);
|
||||||
const Utils::FileName path = Utils::FileName::fromString("/foo/bar.user.foobar");
|
const Utils::FilePath path = Utils::FilePath::fromString("/foo/bar.user.foobar");
|
||||||
|
|
||||||
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
const Utils::optional<Utils::SettingsAccessor::Issue> info = accessor.findIssues(data, path);
|
||||||
|
|
||||||
|
@@ -32,6 +32,6 @@ namespace ProjectExplorer {
|
|||||||
class BuildConfiguration
|
class BuildConfiguration
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Utils::FileName buildDirectory() const { return {}; }
|
Utils::FilePath buildDirectory() const { return {}; }
|
||||||
}; // namespace Target
|
}; // namespace Target
|
||||||
} // namespace ProjectExplorer
|
} // namespace ProjectExplorer
|
||||||
|
@@ -34,7 +34,7 @@ class Kit;
|
|||||||
class SysRootKitInformation
|
class SysRootKitInformation
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Utils::FileName sysRoot(const Kit *) { return Utils::FileName(); }
|
static Utils::FilePath sysRoot(const Kit *) { return Utils::FilePath(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ProjectExplorer
|
} // namespace ProjectExplorer
|
||||||
|
@@ -37,16 +37,16 @@ class Project : public QObject {
|
|||||||
public:
|
public:
|
||||||
Project() = default;
|
Project() = default;
|
||||||
|
|
||||||
Utils::FileName projectDirectory() const { return {}; }
|
Utils::FilePath projectDirectory() const { return {}; }
|
||||||
|
|
||||||
Utils::FileName rootProjectDirectory() const { return rootProjectDirectoryPath; }
|
Utils::FilePath rootProjectDirectory() const { return rootProjectDirectoryPath; }
|
||||||
|
|
||||||
Target *activeTarget() const { return {}; }
|
Target *activeTarget() const { return {}; }
|
||||||
|
|
||||||
QVariant namedSettings(const QString &name) const { return settings.at(name); }
|
QVariant namedSettings(const QString &name) const { return settings.at(name); }
|
||||||
void setNamedSettings(const QString &name, const QVariant &value) { settings[name] = value; }
|
void setNamedSettings(const QString &name, const QVariant &value) { settings[name] = value; }
|
||||||
|
|
||||||
Utils::FileName rootProjectDirectoryPath;
|
Utils::FilePath rootProjectDirectoryPath;
|
||||||
mutable std::map<QString, QVariant> settings;
|
mutable std::map<QString, QVariant> settings;
|
||||||
};
|
};
|
||||||
} // namespace ProjectExplorer
|
} // namespace ProjectExplorer
|
||||||
|
Reference in New Issue
Block a user