[build] Make the code tidy

Now clang-tidy runs for all the mbgl-core.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-30 23:41:52 +03:00
parent a71e672dfa
commit 2eebd7170a
2 changed files with 7 additions and 2 deletions

View File

@@ -8,8 +8,10 @@ Checks: >
performance-*,
portability-*,
readability-*,
-bugprone-macro-parentheses,
-bugprone-narrowing-conversions,
-google-build-using-namespace,
-google-explicit-constructor,
-google-readability-braces-around-statements,
-google-readability-todo,
-google-runtime-int,
@@ -26,3 +28,7 @@ Checks: >
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: file
CheckOptions:
- key: performance-unnecessary-value-param.AllowedTypes
value: 'exception_ptr'

View File

@@ -726,8 +726,7 @@ jobs:
- run:
name: Clang Tidy
command: |
# FIXME: Run on the headers, add -header-filter='.*'
run-clang-tidy-8 -quiet -j $(nproc) -p build $PWD/src/.*cpp $PWD/platform/.*cpp
run-clang-tidy-8 -quiet -j $(nproc) -header-filter='.*' -p build $PWD/src/.*cpp $PWD/platform/.*cpp
- save
baselines:
executor: ubuntu-eoan