summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-09-12 02:20:37 +0000
committerVitaly Buka <vitalybuka@google.com>2019-09-12 02:20:37 +0000
commit35386e756449da9e348acf22a85f8d142a424016 (patch)
tree4f1899da1878c0c564f7bc20672d15b824839864
parente51f24cf674f842be7e37e12bff99e22e21e5044 (diff)
downloadcompiler-rt-35386e756449da9e348acf22a85f8d142a424016.tar.gz
[compiler-rt] cpplint of inc files in background
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@371705 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xlib/sanitizer_common/scripts/check_lint.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/scripts/check_lint.sh b/lib/sanitizer_common/scripts/check_lint.sh
index 8c8fc33ee..fdd8de792 100755
--- a/lib/sanitizer_common/scripts/check_lint.sh
+++ b/lib/sanitizer_common/scripts/check_lint.sh
@@ -124,10 +124,12 @@ run_lint ${SCUDO_RTL_LINT_FILTER} ${SCUDO_RTL}/*.cpp \
${SCUDO_RTL}/*.h &
# Misc files
+(
rsync -a --prune-empty-dirs --exclude='*/profile/*' --exclude='*/builtins/*' --exclude='*/xray/*' --include='*/' --include='*.inc' --exclude='*' "${COMPILER_RT}/" "${MKTEMP_DIR}/"
find ${MKTEMP_DIR} -type f -name '*.inc' -exec mv {} {}.cpp \;
( ERROR_LOG=${ERROR_LOG}.inc run_lint ${COMMON_RTL_INC_LINT_FILTER} $(find ${MKTEMP_DIR} -type f -name '*.inc.cpp') )
sed "s|${MKTEMP_DIR}|${COMPILER_RT}|g" ${ERROR_LOG}.inc | sed "s|.inc.cpp|.inc|g" >> ${ERROR_LOG}
+) &
wait