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

Method find

kdevplatform/util/kdevformatfile.cpp:26–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26bool KDevFormatFile::find()
27{
28 QDir srcDir(QFileInfo(m_origFilePath).canonicalPath());
29
30 do {
31 if (srcDir.exists(formatFileName)) {
32 QDir::setCurrent(srcDir.canonicalPath());
33
34 qStdOut() << "found \""
35 << QFileInfo(srcDir.canonicalPath() + QDir::separator() + formatFileName).canonicalFilePath()
36 << "\"\n";
37 return true;
38 }
39 } while (!srcDir.isRoot() && srcDir.cdUp());
40
41 return false;
42}
43
44bool KDevFormatFile::read()
45{

Callers 15

localsMethod · 0.45
dataMethod · 0.45
delDocumentMethod · 0.45
activateSessionMethod · 0.45
deleteSessionMethod · 0.45
findStyleMethod · 0.45
hideProgressMethod · 0.45
showProgressMethod · 0.45
removeFromFileSetMethod · 0.45

Calls 3

canonicalPathMethod · 0.80
existsMethod · 0.80
QFileInfoClass · 0.50

Tested by 12

addMethod · 0.36
removeMethod · 0.36
applyFormattingFunction · 0.36
runTestMethod · 0.36
launchCaseMethod · 0.36
launchCasesMethod · 0.36
testSuiteMethod · 0.36
expandTestFilesDirFunction · 0.36
adjustTemplateArgumentsFunction · 0.36
definesMethod · 0.36
TESTFunction · 0.36
testQtTestCasesMethod · 0.36