Skip to content

Fix clang-tidy issues - deletion of unmarked pointer - cppcoreguidelines-owning-memory #50

@eljonny

Description

@eljonny

These issues in TestCPPTestCase - I am doing this to control how and when they are globally destroyed, because the std global destructors that were inserted before testing with [[clang::no_destroy]] caused segmentation faults because they were destroyed when they should not have been.
This issue is related to #44
I am already using smart pointers to manage the references.

Consider marking them with gsl::owner<> to alleviate this somewhat. It is likely that this just needs to be suppressed as it has to do with TestCase I/O stream capturing for post-test-run analysis.

Per clang-tidy: deleting a pointer through a type that is not marked 'gsl::owner<>'; consider using a smart pointer instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    static-analysisAn issue related to a static analysis result

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions