diff options
| author | mikhnenko <[email protected]> | 2025-10-22 19:09:00 +0300 |
|---|---|---|
| committer | mikhnenko <[email protected]> | 2025-10-22 19:53:31 +0300 |
| commit | cbb542ed10ea73da790c776bef7ca79dcd7d16cc (patch) | |
| tree | 969fb6444bb8a6b8dd9dd3553bc90755efcdbc0a /contrib/restricted/boost/property_tree/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh | |
| parent | 9af9e1f3bcda227b87ea8cd4f9e3ff8e5ec728f9 (diff) | |
Add NOLINT into contribs for clang-tidy support
commit_hash:0aa0f2a11902c2024bb5318ea6fd5d8bd8e1cb1c
Diffstat (limited to 'contrib/restricted/boost/property_tree/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh')
| -rw-r--r-- | contrib/restricted/boost/property_tree/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/restricted/boost/property_tree/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh b/contrib/restricted/boost/property_tree/patches/no-lint-clang-analyzer-optin.cplusplus.UninitializedObject.sh new file mode 100644 index 00000000000..3590742ac5c --- /dev/null +++ b/contrib/restricted/boost/property_tree/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 "callbacks(callbacks), encoding(encoding), src(encoding)" include/boost/property_tree/json_parser/detail/parser.hpp |
