Commit e32835c
authored
Add Doxygen annotations, resolve TODOs, and minimize stale CI comments (#8)
## Pull Request
### Description
Add directional Doxygen `@param` annotations to all generated and
hand-written C headers, resolve remaining TODO comments across the
Python tooling, and auto-minimize stale CI report comments on PRs.
1. **Doxygen `@param[in]`/`@param[out]` annotations**: Updated 7 Jinja2
templates (`sequence_get`, `sequence_has_extension`,
`sequence_has_field`, `sequence_size`, `sequence_internal_off`,
`sequence_internal_width`, `bitstring_internal_get_one`) and 3
hand-written headers (`J2735_internal_common.h`,
`J2735_internal_inline.h`, `J2735_api.h`) to use directional parameter
annotations. All 15 generated DE headers and 4 generated DF headers now
emit `@param[in]`/`@param[out]` consistently.
2. **TODO resolution — `j2735.py`**: Replaced two independent
`--summary`/`--types` argparse arguments with
`add_mutually_exclusive_group()`, so conflicting flags produce a proper
error instead of silently ignoring one; removed the associated TODO.
3. **TODO resolution — `j2735_c_generator_jinja.py`**: Removed stale
`filter_c_type` TODO (6 existing doctests already cover the function);
suppressed Pylance `reportUnknownMemberType` on untyped `env.filters`
with an explicit `cast(dict[str, Any], ...)`.
4. **TODO resolution — `j2735_spec_parser.py`**: Replaced
circular-reference TODO+`pass` with a descriptive comment and explicit
`return None`; clarified 8 "Inspect if still unused" field TODOs →
"Evaluate for generated C Doxygen" to reflect their actual status.
5. **TODO resolution — `j2735_spec_constraints.py`**: Replaced
placeholder `TODO` docstring on `BitStringConstraint.ext_bits` with a
proper description.
6. **Template fix**: Removed stale `@todo` markers from
`assemble_de_bitstring.j2`; fixed non-extensible wire-format docs that
incorrectly included an extension bit in the total count.
7. **CI workflows**: Added GraphQL `minimizeComment` mutation to both
`ci.yml` and `python.yml` to auto-collapse stale report comments from
previous commits.
### Related Issue
N/A
### Additional Notes
N/A
### Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [ ] Performance improvement
### Checklist
- [x] My code follows the project's zero-copy coding style
- [x] I have read the [CONTRIBUTING.md](../CONTRIBUTING.md) guidelines
- [x] I have added/updated documentation as needed
- [x] I have added tests that prove my fix/feature works
- [x] I have run `make pre-push` and all checks pass
- [x] I have signed my commits (DCO) using `git commit -s`
---------
Signed-off-by: Yogev Neumann <xqgex@users.noreply.github.com>1 parent 292c501 commit e32835c
38 files changed
Lines changed: 182 additions & 170 deletions
File tree
- .github/workflows
- src
- tools
- templates
- bitstring
- sequence
- tests/c_generator
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
463 | 482 | | |
464 | 483 | | |
465 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
512 | 531 | | |
513 | 532 | | |
514 | 533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
147 | | - | |
| 145 | + | |
| 146 | + | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| |||
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
133 | | - | |
| 131 | + | |
| 132 | + | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
208 | | - | |
| 206 | + | |
| 207 | + | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
| 137 | + | |
| 138 | + | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
| 125 | + | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | | - | |
| 141 | + | |
| 142 | + | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
202 | | - | |
| 200 | + | |
| 201 | + | |
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
| |||
0 commit comments