[rtems-central commit] content: Support array parameters

Sebastian Huber sebh at rtems.org
Tue May 9 13:45:26 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    ef66cd0fdb5d222013a11004e161bfdb7636d7d2
Changeset: http://git.rtems.org/rtems-central/commit/?id=ef66cd0fdb5d222013a11004e161bfdb7636d7d2

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May  5 14:41:18 2023 +0200

content: Support array parameters

---

 rtemsspec/content.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemsspec/content.py b/rtemsspec/content.py
index 8ecf401a..9045c890 100644
--- a/rtemsspec/content.py
+++ b/rtemsspec/content.py
@@ -560,7 +560,7 @@ def _split_includes(
 
 
 _FUNCTION_POINTER = re.compile(r"^[^(]+\(\s\*([^)]+)\)\s*\(")
-_DESIGNATOR = re.compile(r"([a-zA-Z0-9_]+)$")
+_DESIGNATOR = re.compile(r"([a-zA-Z0-9_]+)(\[[^\]]+])?$")
 
 
 def _get_align_pos(param: str) -> Tuple[int, int]:



More information about the vc mailing list