diff --git a/helper/src/cpp/docs/doxygen_cpp_comment_exclamation.yaml b/helper/src/cpp/docs/doxygen_cpp_comment_exclamation.yaml index c06abd3a..60566a82 100644 --- a/helper/src/cpp/docs/doxygen_cpp_comment_exclamation.yaml +++ b/helper/src/cpp/docs/doxygen_cpp_comment_exclamation.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - //! {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + //! {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/helper/src/cpp/docs/doxygen_cpp_comment_slash.yaml b/helper/src/cpp/docs/doxygen_cpp_comment_slash.yaml index 0c6c9725..2a808a8e 100644 --- a/helper/src/cpp/docs/doxygen_cpp_comment_slash.yaml +++ b/helper/src/cpp/docs/doxygen_cpp_comment_slash.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - /// {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + /// {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/helper/src/cpp/docs/doxygen_cpp_comment_slash_banner.yaml b/helper/src/cpp/docs/doxygen_cpp_comment_slash_banner.yaml index 29416f27..13896682 100644 --- a/helper/src/cpp/docs/doxygen_cpp_comment_slash_banner.yaml +++ b/helper/src/cpp/docs/doxygen_cpp_comment_slash_banner.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - /// {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + /// {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/helper/src/cpp/docs/doxygen_javadoc.yaml b/helper/src/cpp/docs/doxygen_javadoc.yaml index 430d5c9a..1b4315f8 100644 --- a/helper/src/cpp/docs/doxygen_javadoc.yaml +++ b/helper/src/cpp/docs/doxygen_javadoc.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - * {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + * {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/helper/src/cpp/docs/doxygen_javadoc_banner.yaml b/helper/src/cpp/docs/doxygen_javadoc_banner.yaml index 791cc4b3..4391021b 100644 --- a/helper/src/cpp/docs/doxygen_javadoc_banner.yaml +++ b/helper/src/cpp/docs/doxygen_javadoc_banner.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - * {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + * {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/helper/src/cpp/docs/doxygen_javadoc_no_asterisk.yaml b/helper/src/cpp/docs/doxygen_javadoc_no_asterisk.yaml index bace4337..91db3191 100644 --- a/helper/src/cpp/docs/doxygen_javadoc_no_asterisk.yaml +++ b/helper/src/cpp/docs/doxygen_javadoc_no_asterisk.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/helper/src/cpp/docs/doxygen_qt.yaml b/helper/src/cpp/docs/doxygen_qt.yaml index 300a4944..2173f0e6 100644 --- a/helper/src/cpp/docs/doxygen_qt.yaml +++ b/helper/src/cpp/docs/doxygen_qt.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - * {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + * {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/helper/src/cpp/docs/doxygen_qt_no_asterisk.yaml b/helper/src/cpp/docs/doxygen_qt_no_asterisk.yaml index e36aee49..20cbc8c5 100644 --- a/helper/src/cpp/docs/doxygen_qt_no_asterisk.yaml +++ b/helper/src/cpp/docs/doxygen_qt_no_asterisk.yaml @@ -33,7 +33,7 @@ templates: {% endif %} {% if params %} {% for param in params %} - {{ char }}param[[TODO:direction]] {{ param.name }} [TODO:description] + {{ char }}param[[TODO:direction]] {{ param.name | default(value="[TODO:name]") }} [TODO:description] {% endfor %} {% endif %} {% if return_type %} diff --git a/test/filetypes/cpp/functions.vader b/test/filetypes/cpp/functions.vader index 593e1c7b..263164f7 100644 --- a/test/filetypes/cpp/functions.vader +++ b/test/filetypes/cpp/functions.vader @@ -108,3 +108,20 @@ Expect cpp (generated comment with @brief and @param tag): * @param[[TODO:direction]] x [TODO:description] */ void foo( int x = y ); + +# ============================================================================== +# Functions with unnamed parameters +# ============================================================================== +Given cpp (Functions with unnamed parameter): + Game(const Game &)=default; + +Do (trigger doge): + \ + +Expect cpp (generated comment with @brief and @param tag): + /** + * @brief [TODO:summary] + * + * @param[[TODO:direction]] [TODO:name] [TODO:description] + */ + Game(const Game &)=default;