{"id":19520901,"url":"https://github.com/sebastianbach/clang-format-generator","last_synced_at":"2026-06-19T09:31:50.418Z","repository":{"id":219808666,"uuid":"749988204","full_name":"SebastianBach/clang-format-generator","owner":"SebastianBach","description":"Command line tool that creates a clang-format file from a formatted C++ source code file.","archived":false,"fork":false,"pushed_at":"2024-02-15T19:24:45.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T00:28:41.552Z","etag":null,"topics":["clang-format","codestyle","cpp","cpp20"],"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/SebastianBach.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}},"created_at":"2024-01-29T19:23:49.000Z","updated_at":"2024-01-29T19:34:25.000Z","dependencies_parsed_at":"2024-02-14T21:33:21.031Z","dependency_job_id":"d75efee0-695e-4fea-b72b-b48d2ad4f24e","html_url":"https://github.com/SebastianBach/clang-format-generator","commit_stats":null,"previous_names":["sebastianbach/clang-format-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SebastianBach/clang-format-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBach%2Fclang-format-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBach%2Fclang-format-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBach%2Fclang-format-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBach%2Fclang-format-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebastianBach","download_url":"https://codeload.github.com/SebastianBach/clang-format-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBach%2Fclang-format-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34526065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":["clang-format","codestyle","cpp","cpp20"],"created_at":"2024-11-11T00:28:14.734Z","updated_at":"2026-06-19T09:31:50.378Z","avatar_url":"https://github.com/SebastianBach.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Clang Format Generator\n\n[![build jobs](https://github.com/SebastianBach/clang-format-generator/actions/workflows/build.yml/badge.svg)](https://github.com/SebastianBach/clang-format-generator/actions/workflows/build.yml)\n\nCommand line tool that creates a ```clang-format``` file from a formatted C++ source code file.\n\nSee https://clang.llvm.org/docs/ClangFormat.html \n\n\n# Build\n\nRequires a ```C++20``` compiler.\n\n```sh\nmkdir build\ncd build\ncmake  ..\ncmake --build . --config Release\nctest -C Release  -VV\n```\n\n# Usage\n\n## Create the Reference Source File\n\nUse the tool to create a reference source file:\n\n```sh\nclang_format_generator source_file.cpp\n```\n\n## Format the Reference Source File\n\nFormat the generated source file as you like. Do not add or remove anything.\n\n## Create the clang-format File\n\nRun the tool to parse the reference file and create the clang-format file. Specify the target version of *clang-format*.\n\n```sh\nclang_format_generator source_file.cpp .clang-format 160\n```\n\nDefine the target version of *clang-format* as an integer. For example, use ```160``` for version 16.0.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbach%2Fclang-format-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianbach%2Fclang-format-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbach%2Fclang-format-generator/lists"}