summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/regex
diff options
context:
space:
mode:
authormikhnenko <[email protected]>2025-10-22 19:09:00 +0300
committermikhnenko <[email protected]>2025-10-22 19:53:31 +0300
commitcbb542ed10ea73da790c776bef7ca79dcd7d16cc (patch)
tree969fb6444bb8a6b8dd9dd3553bc90755efcdbc0a /contrib/restricted/boost/regex
parent9af9e1f3bcda227b87ea8cd4f9e3ff8e5ec728f9 (diff)
Add NOLINT into contribs for clang-tidy support
commit_hash:0aa0f2a11902c2024bb5318ea6fd5d8bd8e1cb1c
Diffstat (limited to 'contrib/restricted/boost/regex')
-rw-r--r--contrib/restricted/boost/regex/include/boost/regex/v5/perl_matcher.hpp2
-rw-r--r--contrib/restricted/boost/regex/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh10
2 files changed, 11 insertions, 1 deletions
diff --git a/contrib/restricted/boost/regex/include/boost/regex/v5/perl_matcher.hpp b/contrib/restricted/boost/regex/include/boost/regex/v5/perl_matcher.hpp
index 8e600dba4b5..e66b2b840d5 100644
--- a/contrib/restricted/boost/regex/include/boost/regex/v5/perl_matcher.hpp
+++ b/contrib/restricted/boost/regex/include/boost/regex/v5/perl_matcher.hpp
@@ -386,7 +386,7 @@ public:
m_independent(false), next_count(&rep_obj), rep_obj(&next_count)
, m_recursions(0)
{
- construct_init(e, f);
+ construct_init(e, f); /* NOLINT(clang-analyzer-optin.cplusplus.UninitializedObject) */
}
bool match();
diff --git a/contrib/restricted/boost/regex/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh b/contrib/restricted/boost/regex/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh
new file mode 100644
index 00000000000..80b88990d78
--- /dev/null
+++ b/contrib/restricted/boost/regex/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh
@@ -0,0 +1,10 @@
+set -xue
+
+add_nolint_to()
+{
+ search_text=$(echo "$1" | sed 's/[\/&]/\\&/g')
+ pattern='/'${search_text}'/s/$/ \/* NOLINT(clang-analyzer-optin.cplusplus.UninitializedObject) *\//'
+ sed -i "$pattern" "$2"
+}
+
+add_nolint_to "construct_init(e, f);" include/boost/regex/v5/perl_matcher.hpp