forked from qt-creator/qt-creator
ProjectExplorer: Update header guards also on copying a file
... rather than only on renaming. Fixes: QTCREATORBUG-26654 Change-Id: I5a723969a078d76cc2e833d5e505ff64a3063bbe Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -56,8 +56,15 @@ struct CORE_EXPORT FileUtils
|
||||
static void removeFiles(const Utils::FilePaths &filePaths, bool deleteFromFS);
|
||||
static bool renameFile(const Utils::FilePath &from, const Utils::FilePath &to,
|
||||
HandleIncludeGuards handleGuards = HandleIncludeGuards::No);
|
||||
|
||||
static void updateHeaderFileGuardIfApplicable(const Utils::FilePath &oldFilePath,
|
||||
const Utils::FilePath &newFilePath,
|
||||
HandleIncludeGuards handleGuards);
|
||||
|
||||
private:
|
||||
// This method is used to refactor the include guards in the renamed headers
|
||||
static bool updateHeaderFileGuardAfterRename(const QString &headerPath, const QString &oldHeaderBaseName);
|
||||
static bool updateHeaderFileGuardAfterRename(const QString &headerPath,
|
||||
const QString &oldHeaderBaseName);
|
||||
};
|
||||
|
||||
} // namespace Core
|
||||
|
||||
Reference in New Issue
Block a user