[clang-tidy] hicpp-signed-bitwise - Return location of the operand (and not of...
[clang-tidy] hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning) Currently, the "hicpp/signed-bitwise" check returns the beginning of the binary/unary operator as location, which sometimes confuses users in the IDE due to incorrect [[ https://youtrack.jetbrains.com/issue/CPP-12445/Clang-Tidy-highlighting-for-binary-operators-applied-to-wrong-operand | highlighting ]]. Yes, the offset from Ranges can be used for this particular check, but i suppose better solution is to return begin location of the problematic operand instead of operator. Reviewed By: njames93 Differential Revision: https://reviews.llvm.org/D131678
parent
a5b11f40
Please register or sign in to comment