-
Notifications
You must be signed in to change notification settings - Fork 126
refactor: add explicit comparison to strcmp/stricmp results #1956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
refactor: add explicit comparison to strcmp/stricmp results #1956
Conversation
dcec451 to
b15065d
Compare
xezon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am surprised that no file of tools was touched. Is this correct or did it not search in Tools?
Core/GameEngineDevice/Source/Win32Device/Common/Win32LocalFileSystem.cpp
Outdated
Show resolved
Hide resolved
This seems to be about MFC and clang-tidy not mixing well. 90+% of tools files are skipped because of this. |
|
These are the ones it missed There are also indirect issues where the result of str(i)cmp is returned e.g. ASciistring::compare. |
b15065d to
3577e04
Compare
the ones that are not in Tools should be fixed now |
xezon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change complete or still missing edits?
Core/GameEngineDevice/Source/StdDevice/Common/StdLocalFileSystem.cpp
Outdated
Show resolved
Hide resolved
8a1192f to
600b528
Compare
I ran it again, should be complete |
…-suspicious-string-compare)
600b528 to
a15d54b
Compare
|
I found and fixed the rest that I could find with manual search (in the tools) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all correct to me. I did not check if this is complete.
This change must not be merged before #1989, because texturethumbnail.cpp will conflict.
Ran clang-tidy (bugprone-suspicious-string-compare)