summaryrefslogtreecommitdiffstats
path: root/src/parser/clang
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2020-02-23 20:14:29 +0100
committerMinijackson <minijackson@riseup.net>2020-02-23 20:14:29 +0100
commit6e995d01ce1cc36f84541b43c33868f090c01ac8 (patch)
tree47eae76e79085d2da96f7ba63c4a95903291a87a /src/parser/clang
parent987a92002ff1d56634e43b5243d7f731e2ef38f6 (diff)
downloadposeidoc-6e995d01ce1cc36f84541b43c33868f090c01ac8.tar.gz
poseidoc-6e995d01ce1cc36f84541b43c33868f090c01ac8.zip
clang-parser: document ClassTemplate as class
Diffstat (limited to 'src/parser/clang')
-rw-r--r--src/parser/clang/entities.rs2
1 files changed, 1 insertions, 1 deletions
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<clang::Entity<'a>> for Struct {
812 812
813 let kind = match clang_kind { 813 let kind = match clang_kind {
814 clang::EntityKind::StructDecl => StructKind::Struct, 814 clang::EntityKind::StructDecl => StructKind::Struct,
815 clang::EntityKind::ClassDecl => StructKind::Class, 815 clang::EntityKind::ClassDecl | clang::EntityKind::ClassTemplate => StructKind::Class,
816 // We panic here because we've asserted the type in the beginning 816 // We panic here because we've asserted the type in the beginning
817 other => panic!("Trying to parse {:?} as a variable", other), 817 other => panic!("Trying to parse {:?} as a variable", other),
818 }; 818 };