From ea2d20832ecf19b208fc7fd2ce315bd5502b03a2 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sun, 23 Feb 2020 20:15:30 +0100 Subject: clang-parser: advertise global namespace as namespace simplifies config of inline documentation --- src/parser/clang/entities.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/parser/clang/entities.rs b/src/parser/clang/entities.rs index 54570d1..f0acea6 100644 --- a/src/parser/clang/entities.rs +++ b/src/parser/clang/entities.rs @@ -573,20 +573,11 @@ impl Namespace { impl KindName for Namespace { fn kind_name_singular(&self) -> &'static str { - if self.global { - "global namespace" - } else { - "namespace" - } + "namespace" } fn kind_name_plural(&self) -> &'static str { - if self.global { - // TODO: probably panic here, branch should not happen - "global namespaces" - } else { - "namespaces" - } + "namespaces" } } -- cgit v1.2.3