| 79 | } |
| 80 | |
| 81 | Parameters::Parameters(KDevelop::IProject* project) |
| 82 | : m_project(project) |
| 83 | { |
| 84 | executablePath = KDevelop::Path(GlobalSettings::executablePath()).toLocalFile(); |
| 85 | hideOutputView = GlobalSettings::hideOutputView(); |
| 86 | showXmlOutput = GlobalSettings::showXmlOutput(); |
| 87 | |
| 88 | if (!project) { |
| 89 | checkStyle = defaults::checkStyle; |
| 90 | checkPerformance = defaults::checkPerformance; |
| 91 | checkPortability = defaults::checkPortability; |
| 92 | checkInformation = defaults::checkInformation; |
| 93 | checkUnusedFunction = defaults::checkUnusedFunction; |
| 94 | checkMissingInclude = defaults::checkMissingInclude; |
| 95 | inconclusiveAnalysis = defaults::inconclusiveAnalysis; |
| 96 | forceCheck = defaults::forceCheck; |
| 97 | checkConfig = defaults::checkConfig; |
| 98 | |
| 99 | useProjectIncludes = defaults::useProjectIncludes; |
| 100 | useSystemIncludes = defaults::useSystemIncludes; |
| 101 | |
| 102 | return; |
| 103 | } |
| 104 | |
| 105 | ProjectSettings projectSettings; |
| 106 | projectSettings.setSharedConfig(project->projectConfiguration()); |
| 107 | projectSettings.load(); |
| 108 | |
| 109 | checkStyle = projectSettings.checkStyle(); |
| 110 | checkPerformance = projectSettings.checkPerformance(); |
| 111 | checkPortability = projectSettings.checkPortability(); |
| 112 | checkInformation = projectSettings.checkInformation(); |
| 113 | checkUnusedFunction = projectSettings.checkUnusedFunction(); |
| 114 | checkMissingInclude = projectSettings.checkMissingInclude(); |
| 115 | inconclusiveAnalysis = projectSettings.inconclusiveAnalysis(); |
| 116 | forceCheck = projectSettings.forceCheck(); |
| 117 | checkConfig = projectSettings.checkConfig(); |
| 118 | |
| 119 | useProjectIncludes = projectSettings.useProjectIncludes(); |
| 120 | useSystemIncludes = projectSettings.useSystemIncludes(); |
| 121 | ignoredIncludes = projectSettings.ignoredIncludes(); |
| 122 | |
| 123 | extraParameters = projectSettings.extraParameters(); |
| 124 | |
| 125 | m_projectRootPath = m_project->path(); |
| 126 | |
| 127 | if (auto buildSystemManager = m_project->buildSystemManager()) { |
| 128 | m_projectBuildPath = buildSystemManager->buildDirectory(m_project->projectItem()); |
| 129 | } |
| 130 | m_includeDirectories = includesForProject(project); |
| 131 | } |
| 132 | |
| 133 | QStringList Parameters::commandLine() const |
| 134 | { |
nothing calls this directly
no test coverage detected