This repository exists to decide on a code style for C/C++ code,
to be enforced by clang-format
,clang-tidy
tool.
Accepted RFCs live in the directory and form a specification for formatting tools..clang-format
,.clang-tidy
This repository contains a bash script that will run clang-format -i
on your code.
Features:
- Find the right path to
clang-format
on Linux, which may encode the LLVM version in theclang-format
filename - Fixes files recursively
- Detects the most common file extensions used by C/C++ projects
Move the .clang-format
from the current repository to your project directory.
Run script:
clang-format-all src/
Use the built-in or available plugins in your integrated development environment (IDE) or code editor to automate code formatting.
- Support for
Windows
platform - Support for
clang-tidy
tools
We would like to extend our sincere appreciation to the following projects and individuals for their invaluable contributions and inspiration: