I want to replace the raw pointers that are in a project with std::shared_ptr
and I have around 4500 pointer declarations.
So before I start to replace them, I would like to know if there are some tools or some other utilities that I can use to do a study of how much time I need to do it.
In particular I am wondering if there are some consistent tools for Static and Dynamic analisys of pointer usage (for Unix, Linux or Windows) in order to understand what is the workload of the task involved and eventually have some support during this task.
Asked
Active
Viewed 131 times
3
-
In general, prefer replacing owning pointers with `std::unique_ptr` whenever possible, only use `std::shared_ptr` as a last resort. If the pointer is non-owning, use a reference or raw pointer. Raw pointers aren't bad. _Owning_ raw pointers are bad. – Mooing Duck May 27 '14 at 18:57
1 Answers
1
Don`t know if it will help, but I found this : Dynamic code analysis for C++
If by any chance your project can be run under xCode, you have a tool called instruments that is awesome.

Community
- 1
- 1

peterphonic
- 951
- 1
- 19
- 38