Skip to content

fix some hangs in daca from uninstantiated template classes derived f… - #3133

Merged
orbitcowboy merged 3 commits into
cppcheck-opensource:mainfrom
IOBYTE:main
Feb 17, 2021
Merged

fix some hangs in daca from uninstantiated template classes derived f…#3133
orbitcowboy merged 3 commits into
cppcheck-opensource:mainfrom
IOBYTE:main

Conversation

@IOBYTE

@IOBYTE IOBYTE commented Feb 15, 2021

Copy link
Copy Markdown
Collaborator

…rom itself

Comment thread test/testclass.cpp Outdated
"}");
ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:2]: (performance, inconclusive) Technically the member function 'MixerParticipant::GetAudioFrame' can be static (but you may consider moving to unnamed namespace).\n", errout.str());
// this code is invalid so a false negative is OK
TODO_ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:2]: (performance, inconclusive) Technically the member function 'MixerParticipant::GetAudioFrame' can be static (but you may consider moving to unnamed namespace).\n", "", errout.str());

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.

Imho it's better that we remove the assertion. In theory it might be better to write a warning but it feels like in practice it's better to not try to handle invalid code. The comment you added is valueable.

@IOBYTE

IOBYTE commented Feb 17, 2021

Copy link
Copy Markdown
Collaborator Author

Could this be merged. It fixes a number of crashes and hangs in daca and I would like to see what problems remain in daca that are not fixed by this.

@orbitcowboy
orbitcowboy merged commit 8547ff8 into cppcheck-opensource:main Feb 17, 2021
@IOBYTE

IOBYTE commented Feb 17, 2021

Copy link
Copy Markdown
Collaborator Author

Thanks.

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