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

Method updateData

plugins/clangtidy/config/checkgroup.cpp:250–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void CheckGroup::updateData() const
251{
252 if (m_enabledChecksCountDirty) {
253 m_enabledChecksCount = 0;
254 m_hasSubGroupWithExplicitEnabledState = false;
255
256 for (auto* subGroup : m_subGroups) {
257 m_enabledChecksCount += subGroup->enabledChecksCount();
258 m_hasSubGroupWithExplicitEnabledState |= subGroup->hasSubGroupWithExplicitEnabledState();
259 m_hasSubGroupWithExplicitEnabledState |= (subGroup->groupEnabledState() != EnabledInherited);
260 }
261
262 for (int i = 0; i < m_checks.size(); ++i) {
263 if (effectiveCheckEnabledState(i) == Enabled) {
264 ++m_enabledChecksCount;
265 }
266 m_hasSubGroupWithExplicitEnabledState |= (m_checksEnabledStates[i] != EnabledInherited);
267 }
268 m_enabledChecksCountDirty = false;
269 }
270}
271
272int CheckGroup::enabledChecksCount() const
273{

Callers

nothing calls this directly

Calls 4

enabledChecksCountMethod · 0.80
groupEnabledStateMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected