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

Method Parameters

plugins/cppcheck/parameters.cpp:81–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81Parameters::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
133QStringList Parameters::commandLine() const
134{

Callers

nothing calls this directly

Calls 9

includesForProjectFunction · 0.85
toLocalFileMethod · 0.80
buildSystemManagerMethod · 0.80
PathClass · 0.50
projectConfigurationMethod · 0.45
loadMethod · 0.45
pathMethod · 0.45
buildDirectoryMethod · 0.45
projectItemMethod · 0.45

Tested by

no test coverage detected