However, since the symbolizer_ initialization depends on the variable opts and you can't move all those property assignments happening on opts to the initialization list, I feel like this is a false positive.
Last edit: Tobias Markus 2025-10-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm currently running cppcheck on Google's perfetto source code. See https://github.com/google/perfetto
Here's part of the source code where it gives me a potential performance info:
The warning is:
However, since the symbolizer_ initialization depends on the variable opts and you can't move all those property assignments happening on opts to the initialization list, I feel like this is a false positive.
Last edit: Tobias Markus 2025-10-10
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/14189