tools format: remove tizen specific

When ready, we will use this c++ formatter...
This commit is contained in:
Hermet Park 2020-12-25 20:05:42 +09:00
parent 4767f83b99
commit c1e36bcb01
5 changed files with 0 additions and 6364 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,16 +0,0 @@
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$SCRIPT_DIR/$SOURCE"
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
patch_cpp="$SCRIPT_DIR/cpplint_tizen_160919.py"
# check rule to cpp
find -- "$1" \( -name "*.cpp" -o name "*.cc" \) -exec python "$patch_cpp" {} \;
find -- "$1" -name "*.h" -exec python "$patch_cpp" {} \;

View file

@ -1,13 +1,8 @@
[Tools] Added scripts for code style validation and auto fixing [Tools] Added scripts for code style validation and auto fixing
These tools are based on:
https://review.tizen.org/gerrit/gitweb?p=platform/core/api/webapi-plugins.git;a=tree;f=tools/codestyle;h=8a8bd7adfcfe7ed144e8937fda00ae4e3793c33a;hb=refs/heads/tizen
[Features] [Features]
- tools/codestyle/code_formatter.sh - formatter for C/C++ (changes files) - tools/codestyle/code_formatter.sh - formatter for C/C++ (changes files)
- tools/codestyle/c++_clang_formatter.sh - for auto formating C++ files - tools/codestyle/c++_clang_formatter.sh - for auto formating C++ files
- tools/codestyle/cpplint_tizen_160919.py and tools/codestyle/cpplint_tizen_dir.sh
scripts for C++ code style validation, provided by HQ
- code_format - link to script for easier access - code_format - link to script for easier access
[Help] You can check usage for code_format using '-h' option [Help] You can check usage for code_format using '-h' option