Skip to content

Fix #14954: False negatives: noCopyConstructor, noOperatorEq and unsafeClassCanLeak for file descriptor member - #8769

Open
ludviggunne wants to merge 8 commits into
cppcheck-opensource:mainfrom
ludviggunne:14954-class-fd
Open

Fix #14954: False negatives: noCopyConstructor, noOperatorEq and unsafeClassCanLeak for file descriptor member#8769
ludviggunne wants to merge 8 commits into
cppcheck-opensource:mainfrom
ludviggunne:14954-class-fd

Conversation

@ludviggunne

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread test/testclass.cpp
TEST_CASE(copyConstructor4); // base class with private constructor
TEST_CASE(copyConstructor5); // multiple inheritance
TEST_CASE(copyConstructor6); // array of pointers
TEST_CASE(copyConstructor7);

@aadanen aadanen Jul 31, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All the other copy constructor test cases have a reference to a ticket or a description. Should these be updated to match?

Comment thread test/testmemleak.cpp
TEST_CASE(class25); // ticket #4367 - false positive implementation for destructor is not seen
TEST_CASE(class26); // ticket #10789
TEST_CASE(class27); // ticket #8126
TEST_CASE(class28);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

maybe this should also reference ticket #14954

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