added (optional) lazy execution of ValueFlow#4521
Conversation
2b93752 to
07ba92f
Compare
September 29, 2022 13:26
|
I think its a lot cleaner to use |
Sorry, something went wrong.
That was my takeaway as well after I "cracked" this and saw only one method needs to access the raw pointers - which is quite nice. I will extract the encapsulation and cleanup parts of this into a separate PR but it still needs some work (see below).
I am aware of that. I already fixed up a few mistakes I made in earlier revisions. But it is still very much WIP... I still have to profile this with valueflow enabled and disabled. Also the lazy execution doesn't save anything at all. There's also some tests failing with the lazy execution. But I guess they just lack the lazy execution hook. Still it is interesting and maybe we should make valueflow more explicit in tests so we know what depends on it. It might also help with determining how to increase the test coverage. But I haven't looked into this at all. |
Sorry, something went wrong.
|
This should "help" (as in executing less code) with tests which use the |
Sorry, something went wrong.
|
I will try to pull out the wrapper function for values so this can finally progress. |
Sorry, something went wrong.
|
I filed https://trac.cppcheck.net/ticket/14243 about this. |
Sorry, something went wrong.
No description provided.