Hi folks,
I was wondering, why I can’t find misc-string-integer-assignment check. It is in docs, but there is no check like this (and no code for it).
Piotr
Hi folks,
I was wondering, why I can’t find misc-string-integer-assignment check. It is in docs, but there is no check like this (and no code for it).
Piotr
Hi Piotr,
There actually is such check.
You can confirm there is such check via
$ ./clang-tidy -checks=* -list-checks | grep ‘misc-string-integer-assignment’
Its code lives in llvm/tools/clang/tools/extra/clang-tidy/misc/StringIntegerAssignmentCheck{.cpp, .h}
Hi Kirill,
unfortunatelly, the version that I compiled yesterday doesn’t have that (and doesn’t have that files).
Piotr
Hi Kirill,
unfortunatelly, the version that I compiled yesterday doesn't have that (and
doesn't have that files).
It's on the ToT, but perhaps you have source from an older release of
Clang instead.
IIRC, this was added in mid to late Dec 2015.
~Aaron
Oh I see what I did there - I was using git and I though that I was using svn, and the output from svn update was kinda misleading.