lix/subprojects/lix-clang-tidy/meson.build
jade a5f0954c29 clang-tidy: write a lint for charptr_cast
This lets us ensure that nobody is putting in new reinterpret_cast
instances where they could safely use charptr_cast instead.

Change-Id: I6358a3934c8133c7150042635843bdbb6b9218d4
2024-08-08 14:53:17 -07:00

20 lines
561 B
Meson

project('lix-clang-tidy', ['cpp', 'c'],
version : '0.1',
default_options : ['warning_level=3', 'cpp_std=c++20']
)
llvm = dependency('Clang', version: '>= 17', modules: ['libclang'])
sources = files(
'CharPtrCast.cc',
'FixIncludes.cc',
'HasPrefixSuffix.cc',
'LixClangTidyChecks.cc',
)
lix_clang_tidy = shared_module('lix-clang-tidy', sources,
dependencies: llvm,
# overrides build_by_default, see https://github.com/mesonbuild/meson/issues/13498
install : get_option('build-by-default'),
build_by_default : get_option('build-by-default')
)