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

Method remove

kdevplatform/language/duchain/tests/bench_hashes.cpp:175–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void BenchHashes::remove()
176{
177 QFETCH(bool, useStl);
178 QFETCH(const InputData, data);
179
180 if (useStl) {
181 StlHash hash;
182 insertData(hash, data);
183 QBENCHMARK {
184 for (const DataPair& pair : data) {
185 hash.erase(pair.first);
186 }
187 }
188 } else {
189 QStringHash hash;
190 insertData(hash, data);
191 QBENCHMARK {
192 for (const DataPair& pair : data) {
193 hash.remove(pair.first);
194 }
195 }
196 }
197}
198
199void BenchHashes::remove_data()
200{

Callers 15

setFeaturesMethod · 0.45
addDeclarationMethod · 0.45
removeDeclarationMethod · 0.45
loadChainMethod · 0.45
doMoreCleanupMethod · 0.45
addContextsForRemovalMethod · 0.45
documentClosedMethod · 0.45

Calls 1

insertDataFunction · 0.70

Tested by

no test coverage detected