MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / removeIgnorePatterns

Method removeIgnorePatterns

context/IgnoreManager.cpp:216–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void IgnoreManager::removeIgnorePatterns(ProjectExplorer::Project *project)
217{
218 m_projectIgnorePatterns.remove(project);
219
220 QStringList keysToRemove;
221 for (auto it = m_ignoreCache.begin(); it != m_ignoreCache.end(); ++it) {
222 if (it.key().contains(project->projectDirectory().toUrlishString()))
223 keysToRemove << it.key();
224 }
225
226 for (const QString &key : keysToRemove)
227 m_ignoreCache.remove(key);
228
229 if (m_projectConnections.contains(project)) {
230 disconnect(m_projectConnections[project]);
231 m_projectConnections.remove(project);
232 }
233
234 LOG_MESSAGE(QString("Removed ignore patterns for project: %1").arg(project->displayName()));
235}
236
237void IgnoreManager::reloadAllPatterns()
238{

Callers

nothing calls this directly

Calls 1

displayNameMethod · 0.45

Tested by

no test coverage detected