Skip to content

Typos and stilistic updates#5141

Merged
danmar merged 9 commits intocppcheck-opensource:mainfrom
longradix:main
Jun 14, 2023
Merged

Typos and stilistic updates#5141
danmar merged 9 commits intocppcheck-opensource:mainfrom
longradix:main

Conversation

@longradix
Copy link
Copy Markdown
Contributor

  • Most updates from codespell
    • The supine of 'to split' is 'split', not 'splitted'

Comment thread addons/cppcheckdata.py
isRemovedVoidParameter Has void parameter been removed?
isSplittedVarDeclComma Is this a comma changed to semicolon in a splitted variable declaration ('int a,b;' => 'int a; int b;')
isSplittedVarDeclEq Is this a '=' changed to semicolon in a splitted variable declaration ('int a=5;' => 'int a; a=5;')
isSplittedVarDeclComma Is this a comma changed to semicolon in a split variable declaration ('int a,b;' => 'int a; int b;')
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.

Maybe we should change the names of the flags as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Have knowledge of C, but not C++. Do some TODO processors need to be added somewhere?

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 just noticed that this is cppcheckdata.py and not a .cpp file. This just mirrors some code in token.h (which maybe should be changed at some point). Feel free to ignore my comment.

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.

For completeness: The flags in token.h are fIsSplitVarDeclComma and fIsSplitVarDeclEq (so not in sync with cppcheckdata.py, should be adapted), while the accessor functions are still called isSplittedVarDeclComma() and isSplittedVarDeclEq(), ugh...

@danmar danmar merged commit c033c62 into cppcheck-opensource:main Jun 14, 2023
@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Jun 14, 2023

Have we added your name in the AUTHORS yet?

@longradix
Copy link
Copy Markdown
Contributor Author

My contribution is insufficiently substantive to be acknowledged.

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.

3 participants