[clang] [Coverage] Handle array decomposition correctly (PR #88881)

Andrey Ali Khan Bolshakov via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 15:00:37 PDT 2024


bolshakov-a wrote:

Honestly, I'm not very familiar with code coverage technique, but it seems to me that only explicitly written code is relevant for that. "Common expression" is exactly the explicitly written part. "Subexpression" is an implicitly generated per-element initializer which refers to the "common expression" (hence, without this patch, the counters for the conditional operator from the test are duplicated despite it is executed only once per function call). Which observable drawbacks do you expect from not visiting the implicit parts of the initializer?

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


More information about the cfe-commits mailing list