Skip to content

Commit cb350c0

Browse files
committed
Fix clang-tidy issues
1 parent 1c54f77 commit cb350c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/testpreprocessor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class TestPreprocessor : public TestFixture {
122122
Preprocessor preprocessor(settings, errorlogger, Path::identify(tokens.getFiles()[0], false));
123123
if (inlineSuppression)
124124
preprocessor.inlineSuppressions(tokens, *inlineSuppression);
125-
preprocessor.removeComments(tokens);
125+
Preprocessor::removeComments(tokens);
126126
preprocessor.simplifyPragmaAsm(tokens);
127127

128128
preprocessor.reportOutput(outputList, true);
@@ -369,7 +369,7 @@ class TestPreprocessor : public TestFixture {
369369
std::vector<std::string> files;
370370
// TODO: this adds an empty filename
371371
simplecpp::TokenList tokens(code,files);
372-
tokens.removeComments();
372+
Preprocessor::removeComments(tokens);
373373
Preprocessor preprocessor(settings, *this, Standards::Language::C); // TODO: do we need to consider #file?
374374
std::list<std::string> configs = { "" };
375375
{
@@ -388,7 +388,7 @@ class TestPreprocessor : public TestFixture {
388388
std::vector<std::string> files;
389389
// TODO: this adds an empty filename
390390
simplecpp::TokenList tokens(code,files);
391-
tokens.removeComments();
391+
Preprocessor::removeComments(tokens);
392392
Preprocessor preprocessor(settingsDefault, *this, Standards::Language::C); // TODO: do we need to consider #file?
393393
return preprocessor.calculateHash(tokens, "");
394394
}

0 commit comments

Comments
 (0)