Summary: | function-args-by-value should ignore std::atomic | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Matthew Woehlke <mwoehlke.floss> |
Component: | general | Assignee: | Sergio Martins <smartins> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | smartins |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/clazy/1ac59a00dc6886ba6e1259daac8980c92230fc2a | Version Fixed In: | |
Sentry Crash Report: |
Description
Matthew Woehlke
2019-01-11 04:00:03 UTC
Git commit 1ac59a00dc6886ba6e1259daac8980c92230fc2a by Sergio Martins. Committed on 13/01/2019 at 21:46. Pushed by smartins into branch '1.4'. Don't suggest to pass classes with deleted copy ctor by value M +2 -1 src/TypeUtils.cpp M +12 -0 tests/function-args-by-value/main.cpp M +12 -0 tests/function-args-by-value/main.cpp_fixed.cpp.expected https://commits.kde.org/clazy/1ac59a00dc6886ba6e1259daac8980c92230fc2a Oh, wow... I hadn't even thought about std::atomic being non-copyable. Checking for that (since following clazy's advice in such cases will break your code) is indeed a much better fix; thanks! |