Skip to content

phyllome/clang-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

clang-format

Clang format file for embedded c projects

Installation

  • Change directory to project root.

  • Add submodule in folder: git submodule add [email protected]:phyllome/clang-format.git .clang

  • Create symbolic link (OSX/Linux): ln -s .clang/.clang-format

  • Create symbolic link (Windows): mklink .clang-format .clang\.clang-format

  • Add symbolic link (.clang-format) to .gitignore (OSX/linux terminal echo ".clang-format" >> .gitignore)

VS Code

clang-format is supported out of the box by the C/C++ extension in VS Code. As long as the .clang-format file is present in the root directory, all subdirectories will inherit it. Formatting is invoked by pressing ⇧⌥F (osx) additionally you can modify the vscode settings editor.formatOnSave and editor.formatOnType for continuous formatting.

About

Clang format file for embedded c projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published