handling forward declaration in tree sitter

First, tree-sitter is a great project that REALLY need some forum or community of sort to be able to talk to other developers about it and unload the burden of issues Max has. I also think this would benefit documentation for the project that I feel needs help from a community.

I noticed c++ parser don’t seem to be able to handle forward declaration of structs. I am curious if this is correct and what would be the approach to add it. Also I am not sure if the parser should be able to tell it has a forward declaration for a struct that is correct, but it’s not declared after and remains undefined, or if this task would be solely for the compiler or a linter.

I am curious about this because I wanted to add support for forward declaration to a tree-sitter parser for a different language.