ClangSharp
ClangSharp copied to clipboard
Make Decl.DescribedTemplate property nullable.
Obviously, many Decl cursors will not describe a template. Make this property null to reflect that and avoid an exception by TranslationUnit.GetOrCreate<TemplateDecl>().
Additionally, DescribedTemplate will be null for partial template specializations. Added a doc comment to the property as this is less obvious.