-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
b9479d2
commit 7a0bac9
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters