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

Method CheckSetSelectionLockPrivate

plugins/clangtidy/checksetselectionlock.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36CheckSetSelectionLockPrivate::CheckSetSelectionLockPrivate(const QString& fileName,
37 const QString& id)
38 : lockFile(new QLockFile(fileName.isEmpty() ? fileName : checkSetSelectionFileLockPath(fileName)))
39 , checkSetSelectionId(id)
40{
41 if (!fileName.isEmpty()) {
42 if (!lockFile->tryLock(1000)) {
43 qCWarning(KDEV_CLANGTIDY)
44 << "Failed to acquire lock file" << fileName
45 << "error =" << lockFile->error();
46 }
47 }
48}
49
50CheckSetSelectionLock::CheckSetSelectionLock(const QString& fileName,
51 const QString& checkSetSelectionId)

Callers

nothing calls this directly

Calls 4

tryLockMethod · 0.80
isEmptyMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected