[PATCH] D39121: [clang-tidy] Misplaced Operator in Strlen in Alloc
Balogh, Ádám via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 30 09:34:28 PDT 2017
baloghadamsoftware added a comment.
I thought on something like this, but I still do not like my phrasing:
"Addition operator is applied to the argument of strlen(). instead of its result; move the '+ 1' outside of the call. (Or, if it is intentional then surround the addition subexpression with parentheses to silence this warning)."
Any better ideas?
https://reviews.llvm.org/D39121
More information about the cfe-commits
mailing list