Google Coding style in C++

Jimmy (xiaoke) Shen
1 min readAug 26, 2020

--

Clang format

Download clang-format

On mac

brew install clang-format

How to use it to edit a file

clang-format -style=Google -i filename.h --verbose

The filename.h will be formatted as the Google coding style in place. -i mean in place.

--

--