{"slug": "clang-format", "name": "clang-format", "category": "other", "category_name": "Other software", "description": "", "recommenders": 3, "commenters": 4, "warners": 0, "score": 2.89, "rising": -0.98, "first": "2026-02-03", "latest": "2026-07-03", "why": "clang-format would be the perfect tool for this also", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 3, "neutral": 1, "compare": 0, "warn": 0}, "spark": [0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0], "listed": true, "loved": [], "caveat": "", "short_quote": "clang-format would be the perfect tool for this also", "kind": "", "icon": true, "domain": "llvm.org", "github_repo": null, "official_url": "https://clang.llvm.org/docs/ClangFormat.html", "pricing": "", "aliases": ["clang-format"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 780351537, "item_id": 48771971, "url": "https://news.ycombinator.com/item?id=48771971", "by": "roflcopter69", "date": "2026-07-03", "stance": "recommend", "quote": "figure out good clang-tidy and clang-format rules", "excerpt": "A serious competitor wouldn't use Rust because it immediately disqualifies your engine from being shipped to consoles. At least at the moment. I know it's less of a technical limitation and more of a political one, but if you are serious about shipping your game to various platforms, you cannot use Rust. But things might be about to change, see https://akaganite.com But honestly, as of today, you're probably having a", "context": "", "use_case": "C++ code formatting", "switched_from": "", "story": "Godot will no longer accept AI-authored code contributions"}, {"id": 753588432, "item_id": 47099277, "url": "https://news.ycombinator.com/item?id=47099277", "by": "ivanjermakov", "date": "2026-02-21", "stance": "recommend", "quote": "AlignConsecutiveAssignments in clang-format might be the right fit.", "excerpt": "AlignConsecutiveAssignments in clang-format might be the right fit. https://clang.llvm.org/docs/ClangFormatStyleOptions.html", "context": "", "use_case": "Code formatting", "switched_from": "", "story": "Index, Count, Offset, Size"}, {"id": 749982034, "item_id": 46873877, "url": "https://news.ycombinator.com/item?id=46873877", "by": "its_magic", "date": "2026-02-03", "stance": "recommend", "quote": "clang-format would be the perfect tool for this also", "excerpt": "Good man. Like I said, it's obvious you're going places. D is a good language. You chose well. Walter Bright would be happy to see what you're doing here. If you're not using version control yet, now's a good time to start, as it will help with the cleanup work. Fossil is my favorite as it's easier to use than git, but whatever you like is fine. More people use git than fossil so it's good to learn it and master it. ", "context": "", "use_case": "code formatting", "switched_from": "", "story": "G Lang \u2013 A lightweight interpreter written in D (2.4MB)"}]}], "caveats": [], "who": [], "tags": [], "use_cases": ["code formatting", "c++ code formatting", "c code formatting"], "compared": [{"slug": "clang-tidy", "name": "clang-tidy", "co": 2, "switched_from": 0, "switched_to": 0}], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=48743472", "title": "Godot will no longer accept AI-authored code contributions", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47994012", "title": "Specsmaxxing \u2013 On overcoming AI psychosis, and why I write specs in YAML", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47058584", "title": "Index, Count, Offset, Size", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46824411", "title": "G Lang \u2013 A lightweight interpreter written in D (2.4MB)", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {}, "2026-01": {}, "2026-02": {"recommend": 2}, "2026-03": {}, "2026-04": {}, "2026-05": {"neutral": 1}, "2026-06": {}, "2026-07": {"recommend": 1}, "2026-08": {}, "2026-09": {}, "2026-10": {}}, "quotes": [{"id": 780351537, "item_id": 48771971, "url": "https://news.ycombinator.com/item?id=48771971", "by": "roflcopter69", "date": "2026-07-03", "stance": "recommend", "quote": "figure out good clang-tidy and clang-format rules", "excerpt": "A serious competitor wouldn't use Rust because it immediately disqualifies your engine from being shipped to consoles. At least at the moment. I know it's less of a technical limitation and more of a political one, but if you are serious about shipping your game to various platforms, you cannot use Rust. But things might be about to change, see https://akaganite.com But honestly, as of today, you're probably having a", "context": "", "use_case": "C++ code formatting", "switched_from": "", "story": "Godot will no longer accept AI-authored code contributions"}, {"id": 767958049, "item_id": 47997378, "url": "https://news.ycombinator.com/item?id=47997378", "by": "Stehfyn", "date": "2026-05-03", "stance": "neutral", "quote": "An extremely opinionated mix of clang-format", "excerpt": "I use a multimodal approach to defining my spec: different layers of criteria for how the software looks, behaves, what it produces, and under what constraints. For the literal code: \u2022 A healthy cocktail of /WX + /Wall, plus clang-tidy with very few suppressions \u2022 An extremely opinionated mix of clang-format and LLM-generated bespoke formatting that AST-based tools cant express \u2022 Hungarian notation; all stack locals ", "context": "", "use_case": "C code formatting", "switched_from": "", "story": "Specsmaxxing \u2013 On overcoming AI psychosis, and why I write specs in YAML"}, {"id": 753588432, "item_id": 47099277, "url": "https://news.ycombinator.com/item?id=47099277", "by": "ivanjermakov", "date": "2026-02-21", "stance": "recommend", "quote": "AlignConsecutiveAssignments in clang-format might be the right fit.", "excerpt": "AlignConsecutiveAssignments in clang-format might be the right fit. https://clang.llvm.org/docs/ClangFormatStyleOptions.html", "context": "", "use_case": "Code formatting", "switched_from": "", "story": "Index, Count, Offset, Size"}, {"id": 749982034, "item_id": 46873877, "url": "https://news.ycombinator.com/item?id=46873877", "by": "its_magic", "date": "2026-02-03", "stance": "recommend", "quote": "clang-format would be the perfect tool for this also", "excerpt": "Good man. Like I said, it's obvious you're going places. D is a good language. You chose well. Walter Bright would be happy to see what you're doing here. If you're not using version control yet, now's a good time to start, as it will help with the cleanup work. Fossil is my favorite as it's easier to use than git, but whatever you like is fine. More people use git than fossil so it's good to learn it and master it. ", "context": "", "use_case": "code formatting", "switched_from": "", "story": "G Lang \u2013 A lightweight interpreter written in D (2.4MB)"}]}