Skip to content
This repository has been 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

Open
jseric opened this issue Nov 2, 2018 · 0 comments

Comments

@jseric
Copy link

jseric commented Nov 2, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant