Fields in system headers (and generated code) are not really affected.
Fields in system headers (and generated) code were not rewritten even before this CL, because |apply_edits.py| ignores edits that apply to files that |git| doesn't know anything about. But, before this CL, such fields would be considered "affected" and therefore Chromium code might see |.get()| appended when using such fields in |printf|, |reinterpret_cast|, etc. Such inconsistency would lead to build errors after the rewrite. After this CL, fields in system headers (and generated code) are explicitly excluded (early on, in the |field_decl_matcher|). Bug: 1069567 Change-Id: Icc9735b94558828c002572b38dcef12a812de35c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2204305 Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#775250}
Showing
Please register or sign in to comment