This patch improves the error message provided by the stencil that handles
source from a range selector.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Any chance for a test?
clang/lib/Tooling/Transformer/Stencil.cpp | ||
---|---|---|
244 | must be carry => must carry |
StencilTest.CatOfInvalidRangeFails essentially covers this (indeed, earlier versions of the code failed this test).
https://github.com/llvm/llvm-project/blob/master/clang/unittests/Tooling/StencilTest.cpp#L419
I can make it more specific, but since this only affects the error message and not the control flow, I didn't update the test. Let me know if you disagree -- I generally avoid testing error message content in tests, but I know there's a variety of opinions on this subject...
I generally avoid testing error message content in tests, but I know there's a variety of opinions on this subject...
If you thought that the quality of the error message matters enough to improve it, then it is worth testing the message, I think.
must be carry => must carry