MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / addItem

Method addItem

gui/checkstatistics.cpp:41–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void CheckStatistics::addItem(const QString &tool, ShowTypes::ShowType type)
42{
43 const QString lower = tool.toLower();
44 switch (type) {
45 case ShowTypes::ShowStyle:
46 ::addItem(mStyle, lower);
47 break;
48 case ShowTypes::ShowWarnings:
49 ::addItem(mWarning, lower);
50 break;
51 case ShowTypes::ShowPerformance:
52 ::addItem(mPerformance, lower);
53 break;
54 case ShowTypes::ShowPortability:
55 ::addItem(mPortability, lower);
56 break;
57 case ShowTypes::ShowErrors:
58 ::addItem(mError, lower);
59 break;
60 case ShowTypes::ShowInformation:
61 ::addItem(mInformation, lower);
62 break;
63 case ShowTypes::ShowNone:
64 qDebug() << "Unknown error type - not added to statistics.";
65 break;
66 }
67}
68
69void CheckStatistics::addChecker(const QString &checker)
70{

Callers 15

loadMethod · 0.80
findInFilesClickedMethod · 0.80
ProjectFileDialogMethod · 0.80
loadFromProjectFileMethod · 0.80
addIncludeDirMethod · 0.80
addCheckPathMethod · 0.80
addExcludePathMethod · 0.80
addSingleSuppressionMethod · 0.80
initTranslationsListMethod · 0.80
addApplicationMethod · 0.80
errorMethod · 0.80

Calls 1

addItemFunction · 0.85

Tested by

no test coverage detected