| 86 | } |
| 87 | |
| 88 | Path CompilerFilterStrategyPrivate::pathForFile(const QString& filename) const |
| 89 | { |
| 90 | QFileInfo fi( filename ); |
| 91 | Path currentPath; |
| 92 | if( fi.isRelative() ) { |
| 93 | if( m_currentDirs.isEmpty() ) { |
| 94 | return Path(m_buildDir, filename ); |
| 95 | } |
| 96 | |
| 97 | auto it = m_currentDirs.constEnd() - 1; |
| 98 | do { |
| 99 | currentPath = Path(*it, filename); |
| 100 | } while( (it-- != m_currentDirs.constBegin()) && !QFileInfo::exists(currentPath.toLocalFile()) ); |
| 101 | |
| 102 | return currentPath; |
| 103 | } else { |
| 104 | currentPath = Path(filename); |
| 105 | } |
| 106 | return currentPath; |
| 107 | } |
| 108 | |
| 109 | bool CompilerFilterStrategyPrivate::isMultiLineCase(const KDevelop::ErrorFormat& curErrFilter) const |
| 110 | { |
no test coverage detected