Wingetlywingetly
← All apps
C

ClangFormat

by LLVMv22.1.6

Last updated

A tool to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.

Install with winget

$ winget install --id LLVM.ClangFormat --exact --version 22.1.6

Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.

Built by Pckgr

For Intune admins

Stop chasing app updates. Pckgr patches them for you.

Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.

Start free 30-day trial

No credit card required.

Installers · v22.1.6

ArchitectureTypeScopeInstallDownload
x64ZIP
archive
-Direct

Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.

Security

8 known CVEs via NVD

  • medium5.5Patched in wingetCVE-2023-29942affects v2023-01-12May 5, 2023

    llvm-project commit a0138390 was discovered to contain a segmentation fault via the component mlir::Type::isa<mlir::LLVM::LLVMVoidType.

  • medium5.5Patched in wingetCVE-2023-29941affects v2023-01-12May 5, 2023

    llvm-project commit a0138390 was discovered to contain a segmentation fault via the component matchAndRewriteSortOp<mlir::sparse_tensor::SortOp>(mlir::sparse_tensor::SortOp.

  • medium5.5Patched in wingetCVE-2023-29939affects v2023-01-12May 5, 2023

    llvm-project commit a0138390 was discovered to contain a segmentation fault via the component mlir::spirv::TargetEnv::TargetEnv(mlir::spirv::TargetEnvAttr).

  • medium5.5Patched in wingetCVE-2023-29935affects v2022-11-23May 5, 2023

    llvm-project commit a0138390 was discovered to contain an assertion failure at !replacements.count(op) && "operation was already replaced.

  • medium5.5Patched in wingetCVE-2023-29934affects v2022-11-22May 5, 2023

    llvm-project commit 6c01b5c was discovered to contain a segmentation fault via the component mlir::Type::getDialect().

  • medium5.5Patched in wingetCVE-2023-29933affects v2022-12-11May 5, 2023

    llvm-project commit bd456297 was discovered to contain a segmentation fault via the component mlir::Block::getArgument.

  • medium5.5Patched in wingetCVE-2023-29932affects v2022-11-01May 5, 2023

    llvm-project commit fdbc55a5 was discovered to contain a segmentation fault via the component mlir::IROperand<mlir::OpOperand.

  • medium5.5Patched in wingetCVE-2023-26924affects v2023-01-22Mar 27, 2023

    LLVM a0dab4950 has a segmentation fault in mlir::outlineSingleBlockRegion. NOTE: third parties dispute this because the LLVM security policy excludes "Language front-ends ... for which a malicious input file can cause undesirable behavior."

Source: NVD, updated 5h ago. Patch status is best-effort: NVD's fix version is compared against the latest version in winget, but the two version formats don't always align. Confirm with the vendor advisory before treating any specific build as safe.

See a CVE that affects your fleet? Push the patched version to Intune in one click with Pckgr - automated patching is the only way to keep up.

Related apps

  • C
    clangdLLVM
    LLVM.clangdv22.1.6

    Language server for C/C++, by the LLVM project

  • LLVMLLVM
    LLVM.LLVMv22.1.8

    A collection of modular and reusable compiler and toolchain technologies.

More from LLVM.

Frequently asked questions

How do I install ClangFormat on Windows?
Open Windows Terminal, PowerShell, or Command Prompt and run: winget install --id LLVM.ClangFormat --exact --version 22.1.6. winget downloads the installer from LLVM and runs it. Requires Windows 10 (1809+) or Windows 11.
How do I install ClangFormat silently for unattended deployment?
Add --silent and accept the agreements upfront: winget install --id LLVM.ClangFormat --exact 22.1.6 --silent --accept-package-agreements --accept-source-agreements. This is the variant Intune, Configuration Manager, and other deployment tools should use.
How do I uninstall ClangFormat via winget?
Run: winget uninstall --id LLVM.ClangFormat --exact. Add --silent for unattended uninstalls. winget will use the registered uninstaller from ClangFormat's Apps & Features entry.
Is ClangFormat free?
ClangFormat is distributed under MIT. Refer to the publisher (https://github.com/PolarGoose/clang-format-for-Windows) for the full license terms - Wingetly itself does not charge for installation.
Does ClangFormat work on Windows 10?
Yes, as long as your Windows 10 build supports winget (1809 or newer). winget ships with App Installer on Windows 10/11 and pulls ClangFormat directly from the publisher.
How do I keep ClangFormat up to date?
Run winget upgrade --id LLVM.ClangFormat --exact, or winget upgrade --all to update everything winget tracks. We index 1 version of ClangFormat from microsoft/winget-pkgs.