forked from qt-creator/qt-creator
		
	CompilationDatabase: Properly detect relative paths
Fixes: QTCREATORBUG-22338 Change-Id: I0fcbd952d3aca4dfd8e56eb00e6a27bd1f1c51fe Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
		@@ -42,10 +42,8 @@ namespace CompilationDatabaseProjectManager {
 | 
			
		||||
static QString updatedPathFlag(const QString &pathStr, const QString &workingDir)
 | 
			
		||||
{
 | 
			
		||||
    QString result = pathStr;
 | 
			
		||||
    if (!QDir(pathStr).exists()
 | 
			
		||||
            && QDir(workingDir + "/" + pathStr).exists()) {
 | 
			
		||||
    if (QDir(pathStr).isRelative())
 | 
			
		||||
        result = workingDir + "/" + pathStr;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return result;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user