Skip to content

Commit 3762b49

Browse files
committed
Access removeComments and createDirectives through class
1 parent 5846627 commit 3762b49

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/cppcheck.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ unsigned int CppCheck::checkInternal(const FileWithDetails& file, const std::str
10141014
// Parse comments and then remove them
10151015
preprocessor.addRemarkComments(tokens1, mLogger->remarkComments());
10161016
preprocessor.inlineSuppressions(tokens1, mSuppressions.nomsg);
1017-
preprocessor.removeComments(tokens1);
1017+
Preprocessor::removeComments(tokens1);
10181018

10191019
if (!mSettings.buildDir.empty()) {
10201020
analyzerInformation.reset(new AnalyzerInformation);
@@ -1037,7 +1037,7 @@ unsigned int CppCheck::checkInternal(const FileWithDetails& file, const std::str
10371037

10381038
// Get directives
10391039
std::list<Directive> directives;
1040-
preprocessor.createDirectives(tokens1, directives);
1040+
Preprocessor::createDirectives(tokens1, directives);
10411041
preprocessor.simplifyPragmaAsm(tokens1);
10421042

10431043
// This needs to be a linked list to allow new configurations to be discovered
@@ -1049,8 +1049,8 @@ unsigned int CppCheck::checkInternal(const FileWithDetails& file, const std::str
10491049
// Do preprocessing on included file
10501050
preprocessor.addRemarkComments(data.tokens, mLogger->remarkComments());
10511051
preprocessor.inlineSuppressions(data.tokens, mSuppressions.nomsg);
1052-
preprocessor.removeComments(data.tokens);
1053-
preprocessor.createDirectives(data.tokens, directives);
1052+
Preprocessor::removeComments(data.tokens);
1053+
Preprocessor::createDirectives(data.tokens, directives);
10541054
preprocessor.simplifyPragmaAsm(data.tokens);
10551055
// Discover new configurations from included file
10561056
if ((mSettings.checkAllConfigurations && mSettings.userDefines.empty()) || mSettings.force)

0 commit comments

Comments
 (0)