Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions lib/token.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1421,11 +1421,6 @@ std::string Token::stringifyList(const Token* end, bool attributes) const
return stringifyList(false, attributes, false, false, false, nullptr, end);
}

std::string Token::stringifyList(bool varid) const
{
return stringifyList(varid, false, true, true, true, nullptr, nullptr);
}

void Token::astParent(Token* tok)
{
const Token* tok2 = tok;
Expand Down
3 changes: 1 addition & 2 deletions lib/token.h
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ class CPPCHECKLIB Token {
options.files = true;
return options;
}
// cppcheck-suppress unusedFunction
// cppcheck-suppress unusedFunction - used in tests only
static stringifyOptions forDebugVarId() {
stringifyOptions options = forDebug();
options.varid = true;
Expand Down Expand Up @@ -1142,7 +1142,6 @@ class CPPCHECKLIB Token {

std::string stringifyList(const stringifyOptions& options, const std::vector<std::string>* fileNames = nullptr, const Token* end = nullptr) const;
std::string stringifyList(const Token* end, bool attributes = true) const;
std::string stringifyList(bool varid = false) const;

/**
* Stringify a list of token, from current instance on.
Expand Down
2 changes: 1 addition & 1 deletion test/testsimplifytokens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class TestSimplifyTokens : public TestFixture {
ASSERT_LOC(tokenizer.tokenize(code), file, line);

// result..
return tokenizer.tokens()->stringifyList(true);
return tokenizer.tokens()->stringifyList(true, false, true, true, true);
}


Expand Down
2 changes: 1 addition & 1 deletion test/testtokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8378,7 +8378,7 @@ class TestTokenizer : public TestFixture {
// Tokenizer..
ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line);

return tokenizer.tokens()->stringifyList();
return tokenizer.tokens()->stringifyList(false, false, true, true, true);
}

void checkHeader1() {
Expand Down
Loading