[clazy] [Bug 391824] False positive check "qstring-allocations" for function translate

2018-03-15 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=391824 Roman changed: What|Removed |Added Resolution|--- |INVALID

[clazy] [Bug 391824] False positive check "qstring-allocations" for function translate

2018-03-14 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=391824 --- Comment #3 from Sergio Martins --- tr() doesn't take QString as argument, so there's no allocation You can either use const char* in your translate function, or: translate(QStringLiteral("context"), QStringLiteral("string"),

[clazy] [Bug 391824] False positive check "qstring-allocations" for function translate

2018-03-13 Thread Roman
https://bugs.kde.org/show_bug.cgi?id=391824 --- Comment #2 from Roman --- Created attachment 111374 --> https://bugs.kde.org/attachment.cgi?id=111374=edit compilable-testcase Minimal project that shows false positive warning. Uncomment strings to test canonical way. --

[clazy] [Bug 391824] False positive check "qstring-allocations" for function translate

2018-03-13 Thread Sergio Martins
https://bugs.kde.org/show_bug.cgi?id=391824 --- Comment #1 from Sergio Martins --- Can you show a compilable-testcase. Must be minimal, as I'll shove the code directly into clazy's unit-tests thanks -- You are receiving this mail because: You are watching all bug changes.