Created by: typhoonzero
Fix https://github.com/PaddlePaddle/Paddle/issues/10971
Fixed clang-format and cpplint "public|private|protected" confliction. clang-format ask "public" to have no indentation while cpplint uses google style which ask for indent 1 space which will cause conflict. This PR changed clang-format to fit google style.
changed files:
.clang-format
./tools/codestyle/cpplint_pre_commit.hook
Changed ./tools/codestyle/cpplint_pre_commit.hook
to make sure cpplint wont check old codes under directories ^(paddle/api/.*|paddle/capi/.*|paddle/contrib/.*|paddle/cuda/.*|paddle/function/.*|paddle/gserver/.*|paddle/math/.*|paddle/optimizer/.*|paddle/ parameter/.*|paddle/pserver/.*|paddle/trainer/.*|paddle/utils/.*)