Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Decl.DescribedTemplate property nullable. #530

Merged
merged 1 commit into from
May 15, 2024

Commits on Feb 12, 2024

  1. Make Decl.DescribedTemplate property nullable.

    Obviously, many Decl cursors will not describe a template. Make this property null to reflect that an 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.
    ceresgalax committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    7a0bac9 View commit details
    Browse the repository at this point in the history