From: Jérémie Galarneau Date: Tue, 17 Jan 2023 17:18:25 +0000 (-0500) Subject: clang-tidy: disable analysis for swig-generated code X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=3f46fd26603b3b2450623d79d5cec775dd5e9026 clang-tidy: disable analysis for swig-generated code Signed-off-by: Jérémie Galarneau Change-Id: Idd951400c20ee942b6c9a8fba197d106a3f3d02b --- diff --git a/extras/bindings/swig/python/.clang-tidy b/extras/bindings/swig/python/.clang-tidy new file mode 100644 index 000000000..8866f3d4c --- /dev/null +++ b/extras/bindings/swig/python/.clang-tidy @@ -0,0 +1,7 @@ +# clang-tidy uses the closest .clang-tidy in a parent directory +# to override settings. +# +# Add a dummy check since we can't disable them all without +# clang-tidy complaining. This ensures that generated code +# is not flagged. +Checks: '-*,llvm-twine-local' diff --git a/src/common/filter/.clang-tidy b/src/common/filter/.clang-tidy index 91aebac05..b298fbc77 100644 --- a/src/common/filter/.clang-tidy +++ b/src/common/filter/.clang-tidy @@ -1 +1,8 @@ +# clang-tidy uses the closest .clang-tidy in a parent directory +# to override settings. +# +# Add a dummy check since we can't disable them all without +# clang-tidy complaining. This ensures that generated code +# is not flagged. + Checks: '-*,llvm-twine-local' diff --git a/src/vendor/.clang-tidy b/src/vendor/.clang-tidy index 91aebac05..b298fbc77 100644 --- a/src/vendor/.clang-tidy +++ b/src/vendor/.clang-tidy @@ -1 +1,8 @@ +# clang-tidy uses the closest .clang-tidy in a parent directory +# to override settings. +# +# Add a dummy check since we can't disable them all without +# clang-tidy complaining. This ensures that generated code +# is not flagged. + Checks: '-*,llvm-twine-local'