summaryrefslogtreecommitdiff
path: root/utils/gen-controls.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-22 18:11:57 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-27 12:28:00 +0200
commit9c89de6617060120e446e8e5e15ba0d5ad003a36 (patch)
tree6eb9c5bde76e6962882093dc45ec9bb8cfe11330 /utils/gen-controls.py
parent50ec902aa8b6b345b20529e338c2f09d72b99184 (diff)
utils: gen-controls: Fix enumerators documentation
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 <laurent.pinchart@ideasonboard.com> Tested-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'utils/gen-controls.py')
-rwxr-xr-xutils/gen-controls.py2
1 files changed, 1 insertions, 1 deletions
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}