MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getSearchPaths

Method getSearchPaths

gui/projectfile.cpp:1184–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182}
1183
1184QStringList ProjectFile::getSearchPaths(const QString& projectPath, const QString& appPath, const QString& datadir, const QString& dir) {
1185 QStringList ret;
1186 ret << appPath << (appPath + "/" + dir) << projectPath;
1187#ifdef FILESDIR
1188 if (FILESDIR[0])
1189 ret << FILESDIR << (FILESDIR "/" + dir);
1190#endif
1191 if (!datadir.isEmpty())
1192 ret << datadir << (datadir + "/" + dir);
1193 return ret;
1194}
1195
1196QStringList ProjectFile::getSearchPaths(const QString& dir) const {
1197 const QFileInfo inf(mFilename);

Callers 1

ProjectFileDialogMethod · 0.45

Calls 2

getDataDirFunction · 0.85
isEmptyMethod · 0.80

Tested by

no test coverage detected