Configure clang-format A .clang-format configuration template I prefer to use. 123456789101112131415# .clang-format# Run manually to reformat a file:# clang-format -i --style=file <file># find . -iname '*.cc' -o -iname '*.h' -o -iname '*.h.in' | xargs clang-format -i --style=fileLanguage: CppBasedOnStyle: Google# The offset of Access specifier(public/protected/private)AccessModifierOffset: -4AllowShortBlocksOnASingleLine: falseAllowShortFunctionsOnASingleLine: falseAllowShortLambdasOnASingleLine: falseColumnLimit: 120DerivePointerAlignment: falseIndentWidth: 4 configuration > clang #configuration #clang #clang-format Configure clang-format http://wasprime.github.io/Configuration/clang/Configure-clang-format/ Author wasPrime Posted on May 4, 2023 Updated on May 3, 2023 Licensed under Configure clang-tidy Previous Learn coroutine - A asymmetric coroutine library for C Next