Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-02 00:36:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-02 00:36:39 +0400
commit4cfa761951b885a06608b1f0f1feda4c8c617544 (patch)
treec16669ac2b3727f19ccfb48aebef71610d76f470 /GNUmakefile
parent6327c9aae18df2f226bd2b3207d51c920dc9a8af (diff)
source code style checker to, (similar to pythons pep8 checker)
currently checks for brace placement and some whitespace use. can be accessed with: make test_style or... source/tools/check_style_c.py source/blender also style cleanup on bmo_primitives.c
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b448f93310d..fcbc79e26a8 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -164,6 +164,7 @@ help:
@echo " * test_cmake - runs our own cmake file checker which detects errors in the cmake file list definitions"
@echo " * test_pep8 - checks all python script are pep8 which are tagged to use the stricter formatting"
@echo " * test_deprecated - checks for deprecation tags in our code which may need to be removed"
+ @echo " * test_style - checks C/C++ conforms with blenders style guide: http://wiki.blender.org/index.php/Dev:Doc/CodeStyle"
@echo ""
@echo "Static Source Code Checking (not assosiated with building blender)"
@echo " * check_cppcheck - run blender source through cppcheck (C & C++)"
@@ -213,6 +214,9 @@ test_cmake:
test_deprecated:
python3 source/tests/check_deprecated.py
+test_style:
+ # run our own checks on C/C++ style
+ PYTHONIOENCODING=utf_8 python3 $(BLENDER_DIR)/source/tools/check_style_c.py $(BLENDER_DIR)/source/blender $(BLENDER_DIR)/source/creator
# -----------------------------------------------------------------------------
# Project Files
@@ -250,7 +254,6 @@ check_spelling_py:
check_spelling_c:
cd $(BUILD_DIR) ; PYTHONIOENCODING=utf_8 python3 $(BLENDER_DIR)/source/tools/spell_check_source.py $(BLENDER_DIR)/source
-
# -----------------------------------------------------------------------------
# Documentation
#