diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/slice2docbook/Gen.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/slice2docbook/Gen.cpp b/cpp/src/slice2docbook/Gen.cpp index 93ba852fe66..22cccad3f72 100644 --- a/cpp/src/slice2docbook/Gen.cpp +++ b/cpp/src/slice2docbook/Gen.cpp @@ -1248,6 +1248,19 @@ Slice::Gen::toString(const SyntaxTreeBasePtr& p, const ContainerPtr& container, tag = "function"; } + ParamDeclPtr pd = ParamDeclPtr::dynamicCast(p); + if(pd) + { + OperationPtr op = OperationPtr::dynamicCast(pd->container()); + assert(op); + if(withLink && pd->includeLevel() == 0) + { + linkend = containedToId(op); + } + s = getScopedMinimized(op, container); + tag = "function"; + } + if(s.empty()) { ContainedPtr contained = ContainedPtr::dynamicCast(p); |