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

Function unquote

gui/checkthread.cpp:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52#include <QVariant>
53
54static QString unquote(QString s) {
55 if (s.startsWith("\""))
56 s = s.mid(1, s.size() - 2);
57 return s;
58}
59
60// NOLINTNEXTLINE(performance-unnecessary-value-param) - used as callback so we need to preserve the signature
61int CheckThread::executeCommand(std::string exe, std::vector<std::string> args, std::string redirect, std::string &output) // cppcheck-suppress passedByValueCallback

Callers 1

executeCommandMethod · 0.70

Calls 2

startsWithMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected