summaryrefslogtreecommitdiffstats
path: root/src/parser
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2020-02-23 20:15:30 +0100
committerMinijackson <minijackson@riseup.net>2020-02-23 20:15:30 +0100
commitea2d20832ecf19b208fc7fd2ce315bd5502b03a2 (patch)
tree4f8fa02be24004c3a07726697dc6e08a6e7f9d38 /src/parser
parentee2c0b769601fcaec11477746f056c80708058db (diff)
downloadposeidoc-ea2d20832ecf19b208fc7fd2ce315bd5502b03a2.tar.gz
poseidoc-ea2d20832ecf19b208fc7fd2ce315bd5502b03a2.zip
clang-parser: advertise global namespace as namespace
simplifies config of inline documentation
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/clang/entities.rs13
1 files changed, 2 insertions, 11 deletions
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 {
573 573
574impl KindName for Namespace { 574impl KindName for Namespace {
575 fn kind_name_singular(&self) -> &'static str { 575 fn kind_name_singular(&self) -> &'static str {
576 if self.global { 576 "namespace"
577 "global namespace"
578 } else {
579 "namespace"
580 }
581 } 577 }
582 578
583 fn kind_name_plural(&self) -> &'static str { 579 fn kind_name_plural(&self) -> &'static str {
584 if self.global { 580 "namespaces"
585 // TODO: probably panic here, branch should not happen
586 "global namespaces"
587 } else {
588 "namespaces"
589 }
590 } 581 }
591} 582}
592 583