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

Function computeHashSum

plugins/meson/mesonmanager.cpp:231–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231static QByteArray computeHashSum(const QString& filePath)
232{
233 QFile file(filePath);
234 if (!file.open(QIODevice::ReadOnly)) {
235 return QByteArray();
236 }
237 QCryptographicHash hash(QCryptographicHash::Algorithm::Sha1);
238 hash.addData(&file);
239 return hash.result();
240}
241
242void MesonManager::onMesonInfoChanged(QString path, QString projectName)
243{

Callers 1

onMesonInfoChangedMethod · 0.85

Calls 4

addDataMethod · 0.80
QByteArrayClass · 0.50
openMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected