Details
- Reviewers
aaron.ballman hokein
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 23354 Build 23353: arc lint + arc unit
Event Timeline
test/clang-tidy/misc-misplaced-const.c | ||
---|---|---|
18 | These notes are also just marginally useful and make it harder to change the test. I wonder whether an absolute line number would make more sense here. Or maybe just add a test for one of the notes and leave out the rest (and keep CHECK-MESSAGES)? |
test/clang-tidy/misc-misplaced-const.c | ||
---|---|---|
18 | Absolute line number makes sense. IMHO the tests should cover all generated diagnostics including the notes. Would you accept sticking with CHECK-NOTES but with absolute line numbers? |
test/clang-tidy/misc-misplaced-const.c | ||
---|---|---|
18 |
I wouldn't call this the most important goal. I'd say that tests should cover important aspects of the output, not every single character of it. Another useful feature is that tests should be easy to create, read, and change. In cases like this - where the benefit of the change is not obvious - I would leave the decision to the author of the check. Aaron, WDYT? |
test/clang-tidy/misc-misplaced-const.c | ||
---|---|---|
18 | @aaron.ballman not sure if you overlooked that note |
These notes are also just marginally useful and make it harder to change the test. I wonder whether an absolute line number would make more sense here. Or maybe just add a test for one of the notes and leave out the rest (and keep CHECK-MESSAGES)?