aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tidy/meson.build')
-rw-r--r--clang-tidy/meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang-tidy/meson.build b/clang-tidy/meson.build
new file mode 100644
index 000000000..48770e39f
--- /dev/null
+++ b/clang-tidy/meson.build
@@ -0,0 +1,8 @@
+project('nix-clang-tidy', ['cpp', 'c'],
+ version : '0.1',
+ default_options : ['warning_level=3', 'cpp_std=c++20'])
+
+llvm = dependency('Clang', version: '>= 14', modules: ['libclang'])
+sources = ['HasPrefixSuffix.cc', 'NixClangTidyChecks.cc']
+shared_module('nix-clang-tidy', sources,
+ dependencies: llvm)