Skip to content

Commit

Permalink
Add clang-tidy file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mbr0wn authored and atrnati committed Mar 4, 2021
1 parent f2ae3e9 commit 7d5e480
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -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:
...

0 comments on commit 7d5e480

Please sign in to comment.