… I get no diagnostics. But, there are four locals leaked (newOutlineNodes, forecastOutlineNodes, formatter and shortFormatter).
Commenting out the for loop (leaving the body, just not the two lines comprising the start and closing curly of the loop) allows the leaks to be found.
Extended Description
Building the following test.m file with:
/Volumes/Space/Users/bungi/Source/LLVM/llvm/Release+Asserts/bin/clang -x objective-c --analyze test.m
… I get no diagnostics. But, there are four locals leaked (newOutlineNodes, forecastOutlineNodes, formatter and shortFormatter).
Commenting out the for loop (leaving the body, just not the two lines comprising the start and closing curly of the loop) allows the leaks to be found.