You can download the binary directly. Make sure you put the proper latest version instead of v0.7
curl -O "https://github.com/ayonious/C-Code-Beautifier/releases/download/v0.7/C-Code-Beautifier"
chmod +x C-Code-Beautifier
Or you can build it from source:
g++ src/Main.cpp src/parselib.cpp src/tokenlib.cpp -o C-Code-Beautifier
Now you will get the executables as 'C-Code-Beautifier'
./C-Code-Beautifier <inputfile_to_beformatted> <formatted_outputfile>
Find the beautiful output in . You can try the test cases avilable in 'testcases' folder.
#include<stdio.h> #include<conio.h> if ( ) {
if ( ) the quik ;
else if ( )
asdlkfjaskdjf ;
else
asdfkljsdf ; }
#include<stdio.h>
#include<conio.h>
if ( )
{
if ( )
the quik ;
else if ( )
asdlkfjaskdjf ;
else
asdfkljsdf ;
}