Sure, the idea is not new.
Using the compilers libraries and internal representation to re-format your code is new, though.
You want the compilers knowledge of the code for this, e.g. while formating C++ template mess.
There's a tight integration into the actual toolchains, which is a good thing.