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

Function fromNativePath

gui/mainwindow.cpp:111–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109static const QString compile_commands_json("compile_commands.json");
110
111static QString fromNativePath(const QString& p) {
112#ifdef Q_OS_WIN
113 QString ret(p);
114 ret.replace('\\', '/');
115 return ret;
116#else
117 return p;
118#endif
119}
120
121MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
122 mSettings(settings),

Callers 2

loadAddonMethod · 0.85
getCppcheckSettingsMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected