forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
36 lines (32 loc) · 1.14 KB
/
Copy path.clang-tidy
File metadata and controls
36 lines (32 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# clang-tidy configuration for matplotlib's src/ directory.
#
# Philosophy: enable checks that find real bugs (memory safety, undefined
# behaviour, security) and suppress checks that are high-noise style rules
# inappropriate for a C/C++ codebase that interfaces heavily with C APIs
# (CPython, FreeType, libagg) via pybind11.
#
# Run with:
# clang-tidy -p <build_dir> --config-file=src/.clang-tidy <file>
Checks: >
bugprone-*,
clang-analyzer-*,
objc-*,
performance-move-const-arg,
performance-move-constructor-init,
performance-no-automatic-move,
portability-*,
-bugprone-assignment-in-if-condition,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-macro-parentheses,
-bugprone-narrowing-conversions,
-bugprone-reserved-identifier,
-bugprone-throwing-static-initialization,
-clang-analyzer-optin.cplusplus.UninitializedObject,
-clang-analyzer-optin.performance.Padding,
# Only report findings in matplotlib's own src/ headers, not in pybind11,
# Python.h, agg, or other vendored includes.
HeaderFilterRegex: '.*/matplotlib/src/.*'
WarningsAsErrors: ''
CheckOptions: []