forked from qt-creator/qt-creator
ClangTools: Simplify Internal::fullPath()
Change-Id: I3b546acdd64c40899c98893c42e9827db2d99b27 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -190,11 +190,8 @@ FilePath shippedClazyStandaloneExecutable()
|
||||
|
||||
FilePath fullPath(const FilePath &executable)
|
||||
{
|
||||
const QString hostExeSuffix = QLatin1String(QTC_HOST_EXE_SUFFIX);
|
||||
const Qt::CaseSensitivity caseSensitivity = Utils::HostOsInfo::fileNameCaseSensitivity();
|
||||
|
||||
FilePath candidate = executable;
|
||||
const bool hasSuffix = candidate.toString().endsWith(hostExeSuffix, caseSensitivity);
|
||||
const bool hasSuffix = candidate.endsWith(QTC_HOST_EXE_SUFFIX);
|
||||
|
||||
if (candidate.isAbsolutePath()) {
|
||||
if (!hasSuffix)
|
||||
|
Reference in New Issue
Block a user