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);
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.