Skip to content

Conversation

@firewave
Copy link
Collaborator

No description provided.

@firewave
Copy link
Collaborator Author

No test has been added since it is tested via the TEST_CPPCHECK_INJECT_BUILDDIR enhancements in #7079.

@firewave firewave marked this pull request as ready for review September 25, 2025 07:29
Comment on lines 326 to 330
// cppcheck-suppress accessMoved - FP
while (std::getline(fout, line))
{
// cppcheck-suppress accessMoved - FP
activeCheckers.emplace(std::move(line));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This code was copied and the false positives are already being tracked in https://trac.cppcheck.net/ticket/11300.

Copy link
Owner

@danmar danmar left a comment

Choose a reason for hiding this comment

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

👍 I am happy with this if the ifstream object is renamed to fin.

if (mCheckersFile.empty())
return;

std::ifstream fout(mCheckersFile);
Copy link
Owner

Choose a reason for hiding this comment

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

please rename fout to fin

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@sonarqubecloud
Copy link

@firewave firewave merged commit a5bc2f9 into danmar:main Sep 29, 2025
53 checks passed
@firewave firewave deleted the builddir-checkers branch September 29, 2025 09:45
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