Skip to content

Incorrect "not used" warning for a forward declaration #57

@mharrys

Description

@mharrys

Consider the following

class Bar;

class Foo1 {
    friend Bar;
};

Since it is not friend class Bar, cppclean will give the warning .foo1.h:1: 'Bar' not used even though the syntax is valid and the forward declaration has a purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions