From 3c3f3853e60f5ee42f2ce23ffb27827eebeae7af Mon Sep 17 00:00:00 2001 From: michal Date: Wed, 11 Mar 2026 11:14:24 +0100 Subject: [PATCH] chore: init setup for clang tidy --- packages/react-native-audio-api/.clang-tidy | 20 ++++++++++++++++++++ packages/react-native-audio-api/.clangd | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 packages/react-native-audio-api/.clang-tidy create mode 100644 packages/react-native-audio-api/.clangd diff --git a/packages/react-native-audio-api/.clang-tidy b/packages/react-native-audio-api/.clang-tidy new file mode 100644 index 000000000..5a134bbce --- /dev/null +++ b/packages/react-native-audio-api/.clang-tidy @@ -0,0 +1,20 @@ +# Full clang-tidy configuration for react-native-audio-api C++. +# See: https://clang.llvm.org/extra/clang-tidy/checks/list.html +# Tweak checks in .clangd (Diagnostics.ClangTidy.Remove) to disable noisy ones. + +Checks: '-*, + bugprone-*, + modernize-*, + -modernize-use-trailing-return-type, + performance-*, + readability-*, + portability-*, + cppcoreguidelines-*, + -cppcoreguidelines-non-private-member-variables-in-classes, + concurrency-*' + +# Only report in our source (exclude external/, node_modules, build dirs) +HeaderFilterRegex: '.*/(audioapi|common/cpp|src/main/cpp)/.*' + +# Apply .clang-format when applying fixes +FormatStyle: file diff --git a/packages/react-native-audio-api/.clangd b/packages/react-native-audio-api/.clangd new file mode 100644 index 000000000..24a825227 --- /dev/null +++ b/packages/react-native-audio-api/.clangd @@ -0,0 +1,6 @@ +Documentation: + CommentFormat: Doxygen + +Diagnostics: + ClangTidy: + FastCheckFilter: Loose