aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-tidy
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-03-02 09:44:49 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:07:26 -0600
commit7d5e48032baa62cbe7467833b9e057900602f4b9 (patch)
tree14d9ea78fb14e7da34a07306bc9b67cad61f5fa1 /.clang-tidy
parentf2ae3e93f7d1a8facc667f042731b080ff86732a (diff)
downloaduhd-7d5e48032baa62cbe7467833b9e057900602f4b9.tar.gz
uhd-7d5e48032baa62cbe7467833b9e057900602f4b9.tar.bz2
uhd-7d5e48032baa62cbe7467833b9e057900602f4b9.zip
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.
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy7
1 files changed, 7 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 000000000..958f37f4c
--- /dev/null
+++ b/.clang-tidy
@@ -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:
+...