diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-03-20 12:00:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-20 12:00:57 -0700 |
| commit | 2631811e33ed231d785a06c1fd6d4a7e303d22f2 (patch) | |
| tree | f2509197933fbc2cd5feb9dae52925f628a7282a /tools | |
| parent | 9b1e10ea2602c76a97ca25c27a0b3842a5bb69de (diff) | |
Correct modifier isConst initialization (#6645)
The previous implementation had two issues in the modifier processing loop:
1. isConst was incorrectly initialized to true, making the const check redundant
2. Premature loop break could skip processing important modifiers. e.g.
isExtern
Changes:
- Initialize isConst to false by default
- Remove early break condition to process all modifiers
Fixes: #6606
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
