https://bugs.kde.org/show_bug.cgi?id=367484
--- Comment #2 from Mathias Hasselmann <mathias.hasselm...@kdab.com> --- (In reply to Sergio Martins from comment #1) > Wouldn't a reserve make sense in that example ? Not at all. The purpose of QVarLengthArray is to save the reserve, or rather to do it right on the stack - therefore the pre-alloc parameter. > How do you know FooLast - FooFirst isn't bigger than 160 ? Because this are program specific constants. As they are constexpr clazy can evaluate them them. I'd expect clang to have API for that evaluations as compilers have to do those constexpr evaluations all the time. -- You are receiving this mail because: You are watching all bug changes.