The bug happened with stream operations, that were not recognized in all cases.
Even there were already existing test for streaming classes, they did not catch this bug.
Adding the isolated example to the existing tests did not trigger the bug.
Therefore i created a new isolated file that did expose the bug indeed.
Details
- Reviewers
aaron.ballman alexfh hokein
Diff Detail
- Build Status
Buildable 10684 Build 10684: arc lint + arc unit
Event Timeline
test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp | ||
---|---|---|
21–27 | Instead of re-testing the same behavior as another test, you can use a different trick to make lit happy: add | count 0 to the end of the RUN line. We also put in a comment like: // Note: this test expects no diagnostics, but FileCheck cannot handle that, // hence the use of | count 0. | |
test/clang-tidy/hicpp-signed-bitwise.cpp | ||
1 | Why is the target no longer needed for this test? |
test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp | ||
---|---|---|
21–27 | Ok. I will do this. | |
test/clang-tidy/hicpp-signed-bitwise.cpp | ||
1 | That line was introduced by chapuni to silence the buildbot. The original error came from ARM having char being unsigned. I changed all occurence of char to unsigned char or signed char in my fix patch, making specifying the target unnecessary. |
LGTM, with a comment about the unrelated test change.
test/clang-tidy/hicpp-signed-bitwise.cpp | ||
---|---|---|
1 | Thanks for the explanation. It sounds like that's unrelated to the current functionality fix, so it should be a separate commit. No review needed for that one. |
test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp | ||
---|---|---|
16 | Typo: occured -> occurred. |
test/clang-tidy/hicpp-signed-bitwise-bug34747.cpp | ||
---|---|---|
16 | Fixed in the next bugfix for standard enums, that are allowed to be signed. |
Typo: occured -> occurred.