From b9fdaf8a942ea2f79e48e3f735ba8916f3364e70 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sun, 6 May 2018 19:07:34 +0200 Subject: Use clang-tidy to check more code conventions (#4214) * Create clang-tidy.sh * Add clang-tidy to circle.yml * Fixed some naming violations Fixes #4164 --- circle.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'circle.yml') diff --git a/circle.yml b/circle.yml index f13d02ce8..3a8cac12b 100644 --- a/circle.yml +++ b/circle.yml @@ -4,9 +4,17 @@ dependencies: pre: - - sudo apt-get install lua5.1 + - sudo apt-get update + - sudo apt-get install lua5.1 cmake clang-3.9 clang-tidy-3.9 + - sudo ln -s /usr/bin/clang-tidy-3.9 /usr/bin/clang-tidy + - sudo ln -s /usr/bin/clang-apply-replacements-3.9 /usr/bin/clang-apply-replacements + - pip install PyYAML test: override: - cd src && find . -name \*.cpp -or -name \*.h > AllFiles.lst && lua CheckBasicStyle.lua - cd src/Bindings && lua CheckBindingsDependencies.lua + - curl -o "$HOME/bin/run-clang-tidy.py" "https://raw.githubusercontent.com/llvm-mirror/clang-tools-extra/45fb9b20ed7da2f6b95d83e5ef45bb536f49d8ca/clang-tidy/tool/run-clang-tidy.py" + - chmod +x "$HOME/bin/run-clang-tidy.py" + - git submodule update --init + - ./clang-tidy.sh -- cgit v1.2.3