[build] Make the code tidy
Now clang-tidy runs for all the mbgl-core.
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user