At WWDC a new refactoring feature in Xcode 9 that supports Swift, C, Objective-C, and C++ was announced. It was also announced that the key parts of the engine that support file-level transformations, as well as the compiler pieces for the new index-while-building feature in Xcode will be open sourced.