[PATCH] D117626: [ADT] [NFC] Add StringRef::detectEOL

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 18 16:37:05 PST 2022


beanz created this revision.
beanz added reviewers: rnk, jyknight, dexonsmith.
beanz requested review of this revision.
Herald added projects: clang, LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117626

Files:
  clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
  llvm/include/llvm/ADT/StringRef.h
  llvm/unittests/ADT/StringRefTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117626.401037.patch
Type: text/x-patch
Size: 3748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220119/f5107a7c/attachment.bin>


More information about the cfe-commits mailing list