[clang] [analyzer][NFC] Simplify Analysis/csv2json.py (PR #161665)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 3 06:05:10 PDT 2025


https://github.com/NagyDonat approved this pull request.

LGTM, seems to be a nice simplification.

Note that `skipinitialspace` is not completely identical to the `.strip()` call because it only strips the whitespace _before_ the actual value, while `.strip()` would also strip whitespace after the value (and before the next value). If this script needs to handle input like `foo , bar , baz , spam` (with spaces before the delimiter `,`), then you should keep the original code. (However, I presume that your usecase is handling input like `foo, bar, baz, spam`.)

https://github.com/llvm/llvm-project/pull/161665


More information about the cfe-commits mailing list