Skip to content

checkstl.cpp: small LoopAnalyzer cleanup#8659

Open
firewave wants to merge 5 commits into
cppcheck-opensource:mainfrom
firewave:settings-yyyy
Open

checkstl.cpp: small LoopAnalyzer cleanup#8659
firewave wants to merge 5 commits into
cppcheck-opensource:mainfrom
firewave:settings-yyyy

Conversation

@firewave

@firewave firewave commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator
  • pass Settings by reference
  • cleaned up LoopAnalyzer access
  • removed unnessary condition from LoopAnalyzer::findAlgo()
  • small LoopAnalyzer::findAlgo() cleanup

Comment thread lib/checkstl.cpp Outdated
std::set<nonneg int> mVarsChanged;

public:
explicit LoopAnalyzer(const Token* tok, const Settings& psettings)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can use the name settings now

Suggested change
explicit LoopAnalyzer(const Token* tok, const Settings& psettings)
explicit LoopAnalyzer(const Token* tok, const Settings& settings)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants