diff options
author | Minijackson <minijackson@riseup.net> | 2020-02-23 20:15:30 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2020-02-23 20:15:30 +0100 |
commit | ea2d20832ecf19b208fc7fd2ce315bd5502b03a2 (patch) | |
tree | 4f8fa02be24004c3a07726697dc6e08a6e7f9d38 | |
parent | ee2c0b769601fcaec11477746f056c80708058db (diff) | |
download | poseidoc-ea2d20832ecf19b208fc7fd2ce315bd5502b03a2.tar.gz poseidoc-ea2d20832ecf19b208fc7fd2ce315bd5502b03a2.zip |
clang-parser: advertise global namespace as namespace
simplifies config of inline documentation
-rw-r--r-- | src/parser/clang/entities.rs | 13 |
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 | ||
574 | impl KindName for Namespace { | 574 | impl 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 | ||