| 176 | } |
| 177 | |
| 178 | static void gettokenlistfromvalid(const std::string& valid, TokenList& tokenList) |
| 179 | { |
| 180 | const std::string str(valid + ','); |
| 181 | tokenList.createTokensFromBuffer(str.data(), str.size()); // TODO: check result? |
| 182 | for (Token *tok = tokenList.front(); tok; tok = tok->next()) { |
| 183 | if (Token::Match(tok,"- %num%")) { |
| 184 | tok->str("-" + tok->strAt(1)); |
| 185 | tok->deleteNext(); |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | Library::Error Library::load(const char exename[], const char path[], bool debug) |
| 191 | { |
no test coverage detected