From 9c89de6617060120e446e8e5e15ba0d5ad003a36 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 22 Dec 2020 18:11:57 +0200 Subject: utils: gen-controls: Fix enumerators documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Doxygen documentation for enumerators prefixes the enumerator name with the enumeration name. For unscoped enumerations, this is incorrect. Drop the scope. This fixes warnings produced by Doxygen when multiple enumerators with identical names are defined in different scopes. Signed-off-by: Laurent Pinchart Tested-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- utils/gen-controls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gen-controls.py b/utils/gen-controls.py index 12a32eaa..3f99b5e2 100755 --- a/utils/gen-controls.py +++ b/utils/gen-controls.py @@ -26,7 +26,7 @@ def generate_cpp(controls): enum_doc_start_template = string.Template('''/** * \\enum ${name}Enum * \\brief Supported ${name} values''') - enum_doc_value_template = string.Template(''' * \\var ${name}Enum::${value} + enum_doc_value_template = string.Template(''' * \\var ${value} ${description}''') doc_template = string.Template('''/** * \\var ${name} -- cgit v1.2.1