From 2eebd7170aa72168df1d963422d256411fc4f5ef Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 30 Mar 2020 23:41:52 +0300 Subject: [build] Make the code tidy Now clang-tidy runs for all the mbgl-core. --- .clang-tidy | 6 ++++++ circle.yml | 3 +-- 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 -- cgit v1.2.1