From 4717db2a08238dd3dff1bc6246896709fd522648 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 5 Dec 2019 09:21:08 +0100 Subject: [PATCH] clang-format --style=Google -i my_file.cpp --- CONTRIBUTION.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CONTRIBUTION.md b/CONTRIBUTION.md index 5e9526983..c99de6daf 100644 --- a/CONTRIBUTION.md +++ b/CONTRIBUTION.md @@ -90,5 +90,9 @@ If cpplint is ___not___ installed then do: Once cpplint is installed, test your file(s) with: * `cpplint --filter=-legal my_file.cpp my_other_file.cpp` # Fix any issues and try again. +The [__clang-format__](https://clang.llvm.org/docs/ClangFormat.html) tool can fix many but not all _cpplint_ issues. +* On Macs only: `brew install clang-format` # Only needs to be installed once. +* All platforms: `clang-format --style=Google -i my_file.cpp` + - Most importantly, - Happy coding!