From 6e995d01ce1cc36f84541b43c33868f090c01ac8 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sun, 23 Feb 2020 20:14:29 +0100 Subject: clang-parser: document ClassTemplate as class --- src/parser/clang/entities.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser/clang/entities.rs b/src/parser/clang/entities.rs index e6fe59d..c0c5490 100644 --- a/src/parser/clang/entities.rs +++ b/src/parser/clang/entities.rs @@ -812,7 +812,7 @@ impl<'a> TryFrom> for Struct { let kind = match clang_kind { clang::EntityKind::StructDecl => StructKind::Struct, - clang::EntityKind::ClassDecl => StructKind::Class, + clang::EntityKind::ClassDecl | clang::EntityKind::ClassTemplate => StructKind::Class, // We panic here because we've asserted the type in the beginning other => panic!("Trying to parse {:?} as a variable", other), }; -- cgit v1.2.3