summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 23:41:52 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commit2eebd7170aa72168df1d963422d256411fc4f5ef (patch)
tree3a2bb89b4d4f3944c2859a0acce79cf5d4dc7cab
parenta71e672dfaef8a5cdb13f2331b2e6e74c182ac45 (diff)
downloadqtlocation-mapboxgl-2eebd7170aa72168df1d963422d256411fc4f5ef.tar.gz
[build] Make the code tidy
Now clang-tidy runs for all the mbgl-core.
-rw-r--r--.clang-tidy6
-rw-r--r--circle.yml3
2 files changed, 7 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy
index a6f4b3f4ac..701d5071fb 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -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'
diff --git a/circle.yml b/circle.yml
index e17b0083c8..dfba9caede 100644
--- a/circle.yml
+++ b/circle.yml
@@ -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