cmListFileCache: Make cmListFileFunction a shared pointer
This it the last part of !5178 (closed). The idea is to make cmListFileFunction
a shared_ptr
to eliminate relatively expensive and unnecessary copy operations in function blockers. Every time function blocker is executed it copies commands inside. This is only initial proposal, consider next changes to it:
- keep
cmListFileFunction
untouched and replace all its usage withcmListFileFunctionPtr
. - make it
const
:using cmListFileFunctionPtr = std::shared_ptr<const cmListFileFunction>;
.