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

Function foreach

plugins/qmljs/codecompletion/tests/test_qmljscompletion.cpp:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 DUChainReadLocker lock;
120
121 foreach (const CompletionTreeItemPointer& ptr, params.completionItems) {
122 if (ptr->declaration()) {
123 if (ptr->declaration()->identifier().toString() == itemName) {
124 return true;
125 }
126 }
127 }
128
129 return false;
130}

Callers

nothing calls this directly

Calls 3

declarationMethod · 0.45
toStringMethod · 0.45
identifierMethod · 0.45

Tested by

no test coverage detected