Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Error when declaring a function with a custom (typedef or struct) parameter #244

@jseric

Description

@jseric

When I declare a function that takes a custom parameter, linter-clang reports an error. By custom, I mean a parameter which is either a struct or a typedef. Below is an example code.
Note: the struct/typedef is defined in another header file, but that header file has been included correctly.

// header_file1.h
struct _node;
    typedef struct _node node;
    struct _node
    {
        int a;
        int b;
    };

// header_file2.h
#include "header_file1.h"

int DoSomething(node);

screenshot 2018-11-02 at 11 59 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions