mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-14 20:58:09 +00:00
Add clang-tidy file
This adds a .clang-tidy file to the tree, which enables a small number of checks. The only checks that are applied are: - readability-container-size-empty: Mostly, this makes empty string checks use .empty() instead of .size(). - modernize-use-override: This adds override where applicable. This causes clang to build UHD with fewer warnings.
This commit is contained in:
parent
f2ae3e93f7
commit
7d5e48032b
1 changed files with 7 additions and 0 deletions
7
.clang-tidy
Normal file
7
.clang-tidy
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
Checks: '-*,misc-throw-by-value-catch-by-reference,misc-static-assert,readability-container-size-empty,modernize-use-override'
|
||||
WarningsAsErrors: ''
|
||||
AnalyzeTemporaryDtors: false
|
||||
FormatStyle: file
|
||||
CheckOptions:
|
||||
...
|
||||
Loading…
Reference in a new issue