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

Method enrichFilesForAnalysis

gui/mainwindow.cpp:2356–2364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2354}
2355
2356std::list<FileWithDetails> MainWindow::enrichFilesForAnalysis(const QStringList& fileNames, const Settings& settings) const {
2357 std::list<FileWithDetails> fdetails;
2358 std::transform(fileNames.cbegin(), fileNames.cend(), std::back_inserter(fdetails), [](const QString& f) {
2359 return FileWithDetails{f.toStdString(), Standards::Language::None, static_cast<std::size_t>(QFile(f).size())};
2360 });
2361 const Standards::Language enforcedLang = static_cast<Standards::Language>(mSettings->value(SETTINGS_ENFORCED_LANGUAGE, 0).toInt());
2362 frontend::applyLang(fdetails, settings, enforcedLang);
2363 return fdetails;
2364}

Callers

nothing calls this directly

Calls 3

applyLangFunction · 0.85
sizeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected