MCPcopy Create free account
hub / github.com/KDE/kdevelop / pathForFile

Method pathForFile

kdevplatform/outputview/outputfilteringstrategies.cpp:88–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88Path 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
109bool CompilerFilterStrategyPrivate::isMultiLineCase(const KDevelop::ErrorFormat& curErrFilter) const
110{

Callers 1

errorInLineMethod · 0.80

Calls 5

constEndMethod · 0.80
constBeginMethod · 0.80
toLocalFileMethod · 0.80
PathClass · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected