I just took a large, poorly formatted mass of C ++ code. I am looking for prettifier code with two specific functions.
Remove Redundant Modifiers
Clear the space in a beautiful way. eg. leave empty lines between functions, collapse several empty lines into one of the functions, delete empty lines between the opening / closing bracket of the function and the beginning / end of the code.
This is a typical example. I do not want to write one, it is too long to prove that it cannot damage the code and there is too much to check.
class CLASS_DECL_BASE OComStorage : public OBase
{
private:
protected:
public:
OComStorage (void );
~OComStorage (void );
void Thanks_Guys();
Spike source
share