Skip to content

clang-format Code Formatter

Actions
Runs clang-format on your source code so your users do not have to
v1.4
Latest
Star (5)

Tags

 (1)

Clang format Github action

This project can be used to run clang-format on every push using Github actions. Uses Microsoft codestyle by default.

Usage

For a more detailed installation guide look there

Create a formatter.yml file in .github/workflows/. Paste this code into the file:

on: push
name: clang-format Code Formatter
jobs:
  lint:
    name: clang-format Code Formatter
    runs-on: ubuntu-latest
    steps:
    - name: Clang Code Formatter
      uses: ivanludvig/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

clang-format Code Formatter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Runs clang-format on your source code so your users do not have to
v1.4
Latest

Tags

 (1)

clang-format Code Formatter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.