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

Method bailout_

test/testvalueflow.cpp:494–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492#define bailout(...) bailout_(__FILE__, __LINE__, __VA_ARGS__)
493 template<size_t size>
494 void bailout_(const char* file, int line, const char (&code)[size]) {
495 const Settings s = settingsBuilder().debugwarnings().build();
496
497 SimpleTokenizer2 tokenizer(s, *this, code, "test.cpp");
498
499 // Tokenize..
500 ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line);
501 }
502
503#define tokenValues(...) tokenValues_(__FILE__, __LINE__, __VA_ARGS__)
504 std::list<ValueFlow::Value> tokenValues_(const char* file, int line, const char code[], const char tokstr[], const Settings *s = nullptr, bool cpp = true) {

Callers

nothing calls this directly

Calls 3

buildMethod · 0.80
debugwarningsMethod · 0.80
simplifyTokens1Method · 0.80

Tested by

no test coverage detected