{"id":24641697,"url":"https://github.com/ayonious/c-code-beautifier","last_synced_at":"2025-08-26T00:16:08.286Z","repository":{"id":66294821,"uuid":"60639082","full_name":"ayonious/C-Code-Beautifier","owner":"ayonious","description":"✂️ A parser that can beautify Code written in C/C++","archived":false,"fork":false,"pushed_at":"2020-11-14T13:13:51.000Z","size":1167,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T15:15:43.541Z","etag":null,"topics":["c-plus-plus","ccode-beautifier","compiler","parser"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayonious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-07T19:06:08.000Z","updated_at":"2022-12-14T12:21:33.000Z","dependencies_parsed_at":"2023-02-22T13:00:59.065Z","dependency_job_id":null,"html_url":"https://github.com/ayonious/C-Code-Beautifier","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ayonious/C-Code-Beautifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayonious%2FC-Code-Beautifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayonious%2FC-Code-Beautifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayonious%2FC-Code-Beautifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayonious%2FC-Code-Beautifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayonious","download_url":"https://codeload.github.com/ayonious/C-Code-Beautifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayonious%2FC-Code-Beautifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272150641,"owners_count":24882204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","ccode-beautifier","compiler","parser"],"created_at":"2025-01-25T12:14:10.465Z","updated_at":"2025-08-26T00:16:08.280Z","avatar_url":"https://github.com/ayonious.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beautify/format your C/C++ code  \r\n[![Build Status](https://travis-ci.com/ayonious/C-Code-Beautifier.svg?branch=master)](https://travis-ci.com/ayonious/C-Code-Beautifier)\r\n\r\n\r\n## Build instructions: \r\n\r\nYou can download the binary directly. Make sure you put the proper latest version instead of v0.7\r\n```\r\ncurl -O \"https://github.com/ayonious/C-Code-Beautifier/releases/download/v0.7/C-Code-Beautifier\"\r\nchmod +x C-Code-Beautifier\r\n```\r\n\r\nOr you can build it from source:\r\n```\r\ng++ src/Main.cpp src/parselib.cpp src/tokenlib.cpp -o C-Code-Beautifier\r\n```\r\n\r\nNow you will get the executables as 'C-Code-Beautifier'\r\n## Running instructions:\r\n```\r\n./C-Code-Beautifier \u003cinputfile_to_beformatted\u003e \u003cformatted_outputfile\u003e\r\n```\r\nFind the beautiful output in \u003coutputfile\u003e. You can try the test cases avilable in 'testcases' folder.\r\n\r\n## Sample Input\r\n```\r\n#include\u003cstdio.h\u003e #include\u003cconio.h\u003e  if ( ) {\r\n\t    if ( ) the quik ; \r\n    else if ( ) \r\n\t\tasdlkfjaskdjf ; \r\nelse \r\n\t\tasdfkljsdf ; }\r\n```\r\n\r\n## Sample output\r\n\r\n```\r\n#include\u003cstdio.h\u003e\r\n#include\u003cconio.h\u003e\r\nif ( ) \r\n{\r\n\tif ( ) \r\n\t\tthe quik ; \r\n\telse if ( ) \r\n\t\tasdlkfjaskdjf ; \r\n\telse \r\n\t\tasdfkljsdf ; \r\n}\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayonious%2Fc-code-beautifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayonious%2Fc-code-beautifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayonious%2Fc-code-beautifier/lists"}