From 9277e1466f91d7b2d4190b4e55d6e7b9b5e3962d Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 17 May 2018 13:25:39 +0200 Subject: Bug 782437 - Annotated function parameter generates
warning in todo list Problems are cause by the annotation in the arguments (i.e. @myAnnotation) and the fact that the function prototype is used as title for the todo list. Escaping the @ (by means of @@) solves this problem. --- src/reflist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reflist.cpp b/src/reflist.cpp index 5a80b19..e60bcc6 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -21,6 +21,7 @@ #include "util.h" #include "ftextstream.h" #include "definition.h" +#include /*! Create a list of items that are cross referenced with documentation blocks * @param listName String representing the name of the list. @@ -169,7 +170,7 @@ void RefList::generatePage() // write declaration in case a function with arguments if (!item->args.isEmpty()) { - doc += item->args; + doc += item->args.replace(QRegExp("@"),"@@"); } doc += "
"; doc += item->text; -- cgit v0.12