jessevdk / cldoc

clang based documentation generator for C and C++
GNU General Public License v2.0
552 stars 58 forks source link

Fix: Treat partial class template specializations correctly #136

Open fknorr opened 6 years ago

fknorr commented 6 years ago

cldoc currently does not generate nodes for partial template class specializations. It still tries to process its children, which receive the containing namespace as parent (fallback). This causes problems elsewhere, e.g. if the child is a method, it expects its parent to be a class.

This PR models partial template class specializations as class templates, fixing this issue. The change requires Node types to map to multiple kinds.