cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

reduced scope of some variables and avoided some copies

Open firewave opened this issue 3 years ago • 4 comments

Another piece of preparation before applying misc-const-correctness fixes.

firewave avatar Jul 30 '22 20:07 firewave

Hitting the known limitations of GCC 4.8 with initializer lists...

firewave avatar Jul 31 '22 17:07 firewave

FYI I did some short profiling and I did not see any differences. So this is just about (c)leaner code.

firewave avatar Aug 06 '22 11:08 firewave

I will also check if tickets need to be filed about the reduced variable scope.

The inconsistent copy vs. move in some of the calls in valueflow.cop will be cleaned up/clarified in another PR.

firewave avatar Aug 06 '22 11:08 firewave

This is ready for merge now.

firewave avatar Aug 10 '22 14:08 firewave