Merge "Add C++ support for coding style check tool."

This commit is contained in:
Junyu Lai
2018-11-05 01:54:56 +00:00
committed by Gerrit Code Review

View File

@@ -22,6 +22,10 @@ function main() {
local PARAMS=" --config_xml $ANDROID_BUILD_TOP/prebuilts/checkstyle/android-style.xml"
$ANDROID_BUILD_TOP/prebuilts/checkstyle/checkstyle.py $PARAMS
#C++ check, no-op if no C, C++ files.
$ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-stable/bin/git-clang-format \
--commit HEAD^ --style file --extensions c,h,cc,cpp
#commit message equal or less then 65 char for each line (suggested by lorenzo@20180625)
local MSG=`git rev-list --format=%B --max-count=1 HEAD`
local i=1