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

Method addIncludeDirs

gui/mainwindow.cpp:901–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901void MainWindow::addIncludeDirs(const QStringList &includeDirs, Settings &result)
902{
903 for (const QString& dir : includeDirs) {
904 QString incdir;
905 if (!QDir::isAbsolutePath(dir))
906 incdir = mCurrentDirectory + "/";
907 incdir += dir;
908 incdir = QDir::cleanPath(incdir);
909
910 // include paths must end with '/'
911 if (!incdir.endsWith("/"))
912 incdir += "/";
913 result.includePaths.push_back(incdir.toStdString());
914 }
915}
916
917Library::Error MainWindow::loadLibrary(Library &library, const QString &filename)
918{

Callers

nothing calls this directly

Calls 3

isAbsolutePathFunction · 0.85
endsWithMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected