mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Add a base clang-tidy configuration
This commit is contained in:
parent
0dfaa98e86
commit
9b041f3d74
73 changed files with 484 additions and 279 deletions
22
.clang-tidy
Normal file
22
.clang-tidy
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Checks: >
|
||||
-clang-analyzer-cplusplus.NewDeleteLeaks,
|
||||
-clang-analyzer-optin.performance.Padding,
|
||||
-clang-analyzer-security.FloatLoopCounter,
|
||||
-clang-analyzer-security.insecureAPI.strcpy,
|
||||
|
||||
WarningsAsErrors: '*'
|
||||
|
||||
# No negative lookahead available here, which makes things difficult.
|
||||
#
|
||||
# We want checks to run on JUCE files included from the JUCE modules. We can
|
||||
# restrict these to files named `juce_.*`.
|
||||
#
|
||||
# We also want checks to run on any files inlcuded from the examples or extras
|
||||
# directories. However, some include paths generated by the Android Studio build
|
||||
# system look like:
|
||||
#
|
||||
# ~/JUCE/examples/DemoRunner/Builds/Android/app/../../../../../modules/juce_box2d/box2d/Collision/b2CollideEdge.cpp
|
||||
#
|
||||
# Since we can only opt-in to paths, we restrict the maximum depth of the path
|
||||
# past examples/extras.
|
||||
HeaderFilterRegex: '(.*\/modules\/juce_.*juce_[^\/]*$)|(\/(examples|extras)(\/[^\/]*){1,7}$)'
|
||||
Loading…
Add table
Add a link
Reference in a new issue