From 3f46fd26603b3b2450623d79d5cec775dd5e9026 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 17 Jan 2023 12:18:25 -0500 Subject: [PATCH] clang-tidy: disable analysis for swig-generated code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau Change-Id: Idd951400c20ee942b6c9a8fba197d106a3f3d02b --- extras/bindings/swig/python/.clang-tidy | 7 +++++++ src/common/filter/.clang-tidy | 7 +++++++ src/vendor/.clang-tidy | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 extras/bindings/swig/python/.clang-tidy 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' -- 2.34.1