I'm generally more of a grep person but sometimes it's easier to just use the built-in search in Visual Studio, especially if you want to be able to restrict the search to parts of your Visual Studio solution. Visual Studio does have pretty powerful search built in if you do use regular expressions instead of the default text matching. Here are a couple of regexes to get you started:

Find all shared_ptr calls that use "new" instead of the recommended make_shared: shared_ptr<.+>(new .+)

Find all empty destructors - very useful if you want to remove them in C++11 code: ~.+s+{s*}

Sorry for the disruption, normal service will resume shortly

My apologies for the sudden instability of my blog. I've managed to make a hash of an update on the main Wordpress site when I tried to u...… Continue reading