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

Method updateCommandLine

plugins/clazy/config/projectconfigpage.cpp:109–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void ProjectConfigPage::updateCommandLine()
110{
111 QStringList arguments;
112
113 arguments << GlobalSettings::executablePath().toLocalFile();
114
115 const auto checks = m_ui.checks->checks();
116 if (!checks.isEmpty()) {
117 arguments << QLatin1String("-checks=") + checks;
118 }
119
120 if (m_ui.kcfg_onlyQt->isChecked()) {
121 arguments << QStringLiteral("-only-qt");
122 }
123
124 if (m_ui.kcfg_qtDeveloper->isChecked()) {
125 arguments << QStringLiteral("-qt-developer");
126 }
127
128 if (m_ui.kcfg_qt4Compat->isChecked()) {
129 arguments << QStringLiteral("-qt4-compat");
130 }
131
132 if (m_ui.kcfg_visitImplicitCode->isChecked()) {
133 arguments << QStringLiteral("-visit-implicit-code");
134 }
135
136 if (m_ui.kcfg_ignoreIncludedFiles->isChecked()) {
137 arguments << QStringLiteral("-ignore-included-files");
138 }
139
140 const auto headerFilter = m_ui.kcfg_headerFilter->text();
141 if (!headerFilter.isEmpty()) {
142 arguments << QLatin1String("-header-filter=") + headerFilter;
143 }
144
145 if (m_ui.kcfg_enableAllFixits->isChecked()) {
146 arguments << QStringLiteral("-enable-all-fixits");
147 }
148
149 if (m_ui.kcfg_noInplaceFixits->isChecked()) {
150 arguments << QStringLiteral("-no-inplace-fixits");
151 }
152
153 const auto extraAppend = m_ui.kcfg_extraAppend->text();
154 if (!extraAppend.isEmpty()) {
155 arguments << QLatin1String("-extra-arg=") + extraAppend;
156 }
157
158 const auto extraPrepend = m_ui.kcfg_extraPrepend->text();
159 if (!extraPrepend.isEmpty()) {
160 arguments << QLatin1String("-extra-arg-before1") + extraPrepend;
161 }
162
163 const auto extraClazy = m_ui.kcfg_extraClazy->text();
164 if (!extraClazy.isEmpty()) {
165 arguments << KShell::splitArgs(extraClazy);
166 }

Callers

nothing calls this directly

Calls 6

toLocalFileMethod · 0.80
joinMethod · 0.80
checksMethod · 0.45
isEmptyMethod · 0.45
textMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected