Add more access annotations.
For some READ_WRITE property, READ is also allowed. Add the annotations
to reflect that.
Test: None
Bug: 288331747
Change-Id: I46d86606087e747e217269db028ddf03c9bdc0b6
diff --git a/automotive/vehicle/tools/generate_annotation_enums.py b/automotive/vehicle/tools/generate_annotation_enums.py
index cfae607..7276fe6 100755
--- a/automotive/vehicle/tools/generate_annotation_enums.py
+++ b/automotive/vehicle/tools/generate_annotation_enums.py
@@ -189,11 +189,12 @@
continue
if RE_COMMENT_BEGIN.match(line):
in_comment = True
+ annotation = None
if RE_COMMENT_END.match(line):
in_comment = False
if in_comment:
match = self.annotation_re.match(line)
- if match:
+ if match and not annotation:
annotation = match.group(1)
else:
match = RE_VALUE.match(line)