任务单 #44976

generate_packets.py: don't indent preprocessor directives

开放日期: 2022-07-02 06:03 最后更新: 2022-07-03 21:34

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
1

Details

Part of #43927. For better readability (and thus debuggability) of the generated code, preprocessor directives should not be indented (to keep in style with the non-generated codebase). Make the prefix() function not indent lines starting with a #.

任务单历史 (3/4 Histories)

2022-07-02 06:03 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: don't indent preprocessor directives" created
2022-07-02 06:21 Updated by: alienvalkyrie
  • 处理结果 Update from to Accepted
评论

This patch also makes it so blank lines are no longer indented, something that I (mistakenly) thought had already been the case.

2022-07-03 21:34 Updated by: alienvalkyrie
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名