Skip to content

Conversation

@BsAtHome
Copy link
Contributor

@BsAtHome BsAtHome commented Feb 7, 2025

This PR mainly covers all missing class member initialization in the class constructor. It uses init-lists to do so and several places replaces old-style in-constructor assignment with init-list initialization.

Secondly, the PR fixes (suppresses) the duplicate inherited method message on update() as detected by cppcheck. These messages are caused by the sub-class containing the same method as the base-class. However, the sub-class implementation of update() calls the base-class update() correctly. The reason for the construct is because a virtual method is not possible for the set of classes. The scripts/cppcheck.sh script is modified to enable inline suppression of cppcheck messages.

A few instances where the copy-constructor is disabled have been modernized to use = delete syntax on the copy-constructor and copy-assignment.

Allow extra options from environment.
Modernize deleted copy constructor and copy assignment.
Mark cppcheck detected duplicate inherited update() method as fine.
@smoe
Copy link
Collaborator

smoe commented Feb 19, 2025

Impressive. Many thanks!

@BsAtHome
Copy link
Contributor Author

Impressive. Many thanks!

Janitorial work... Tedious but has to be done once in a while ;-)

@BsAtHome BsAtHome merged commit a4c72e9 into LinuxCNC:master Feb 26, 2025
8 checks passed
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