Summary: | Warn when using non-owning smart pointers as associative container key | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Volker Krause <vkrause> |
Component: | general | Assignee: | Sergio Martins <smartins> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | smartins |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/clazy/82804b42907232c3c163028b5d42fe61b29cf5e9 | Version Fixed In: | |
Sentry Crash Report: |
Description
Volker Krause
2016-07-21 10:59:45 UTC
Git commit 82804b42907232c3c163028b5d42fe61b29cf5e9 by Sergio Martins. Committed on 24/07/2016 at 22:52. Pushed by smartins into branch 'master'. new check: mutable-container-key Looks for associative containers that have a key which value can change. QPointer or QWeakPointer are examples of such types M +1 -0 CMakeLists.txt A +5 -0 checks/level0/README-mutable-container-key.md A +72 -0 checks/level0/mutable-container-key.cpp [License: LGPL (v2+)] A +39 -0 checks/level0/mutable-container-key.h [License: LGPL (v2+)] M +11 -11 tests/clazy/test_requested_checks.sh.expected A +7 -0 tests/mutable-container-key/config.json A +26 -0 tests/mutable-container-key/main.cpp [License: UNKNOWN] * A +5 -0 tests/mutable-container-key/main.cpp.expected The files marked with a * at the end have a non valid license. Please read: http://techbase.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page. http://commits.kde.org/clazy/82804b42907232c3c163028b5d42fe61b29cf5e9 |