[Bug 64481] classparser does not recognice links or rel. paths to sourcefiles outside project dir
Andreas Koepfle
koepfle at ti.uni-mannheim.de
Tue Sep 23 13:53:19 UTC 2003
Hi Roberto,
the following patch fixes it for files with ../ in their file paths in my qmake manager projects, by just using the relative path to the files.
To get it right for the symlinks is harder, as the project file list contains the symlink and you want to check if the real file is in the list.
Hope to help.
RCS file: /home/kde/kdevelop/parts/cppsupport/cppsupportpart.cpp,v
retrieving revision 1.228
diff -u -3 -p -r1.228 cppsupportpart.cpp
--- parts/cppsupport/cppsupportpart.cpp 14 Sep 2003 17:06:50 -0000 1.228
+++ parts/cppsupport/cppsupportpart.cpp 22 Sep 2003 17:11:48 -0000
@@ -1277,7 +1277,7 @@ bool CppSupportPart::isValidSource( cons
{
QFileInfo fileInfo( fileName );
return fileExtensions().contains( fileInfo.extension() )
- && m_projectFileList.contains( URLUtil::canonicalPath( fileInfo.absFilePath() ).mid( m_projectDirectory.length() + 1 ) )
+ && m_projectFileList.contains( URLUtil::relativePathToFile(m_projectDirectory, fileInfo.absFilePath() ) )
&& !QFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");
}
On Tuesday 23 September 2003 12:32, Roberto Raggi wrote:
> Hi Andreas,
> Thanks a lot for your very detailed informations. I'll try to fix it
>
> ciao robe
>
> _______________________________________________
> Kdevelop-devel mailing list
> Kdevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
More information about the KDevelop-devel
mailing list