Skip to content

Commit f7fafb1

Browse files
committed
clang: Some partially specialized templates return no template argument count.
1 parent 6b30385 commit f7fafb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clang.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl Cursor {
193193
/// Is the referent a fully specialized template specialization without any
194194
/// remaining free template arguments?
195195
pub fn is_fully_specialized_template(&self) -> bool {
196-
self.is_template() && self.num_template_args().unwrap() > 0
196+
self.is_template() && self.num_template_args().unwrap_or(0) > 0
197197
}
198198

199199
/// Is the referent a template specialization that still has remaining free

0 commit comments

Comments
 (0)