This change moves EOL detection out of the clang::InclusionRewriter into
llvm::StringRef so that it can be easily reused elsewhere. It also adds
additional explicit test cases to verify the correct and expected return
results.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Sounds good to me
llvm/unittests/ADT/StringRefTest.cpp | ||
---|---|---|
1114–1116 | Usually skip braces on single line blocks. Might be marginally better to write these out without the loop, though - I realize it's some duplication (though currently it's fewer lines anyway). Makes for clearer error messages from gunit because the line of code is unambiguous about what's being tested rather than having to map it up through the array, etc. |
Usually skip braces on single line blocks.
Might be marginally better to write these out without the loop, though - I realize it's some duplication (though currently it's fewer lines anyway). Makes for clearer error messages from gunit because the line of code is unambiguous about what's being tested rather than having to map it up through the array, etc.