---
# System prepended metadata

title: C/C++ source code auto-formating by clang-format
tags: [clang-format]

---

# C/C++ source code auto-formating by clang-format

## Windows
1. Install LLVM
2. Command prompt
```
clang-format -style=Google -i %INPUT_FILE%.cpp
```

## Ubuntu
1. apt install clang-format
2. Command
```
clang-format -style=Google -i $INPUT_FILE.cpp
```



###### tags: `clang-format`
