llvm-project/clang/lib/Frontend/Rewrite
Chris Bieneman 9d3437fbf3 [ADT] [NFC] Add StringRef::detectEOL
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.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D117626
2022-01-21 09:47:02 -06:00
..
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
FixItRewriter.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FrontendActions.cpp Cleanup identifier parsing; NFC 2021-09-14 09:12:22 -04:00
HTMLPrint.cpp clang/Frontend: Mostly stop using SourceManager::getBuffer, NFC 2020-10-14 23:31:28 -04:00
InclusionRewriter.cpp [ADT] [NFC] Add StringRef::detectEOL 2022-01-21 09:47:02 -06:00
RewriteMacros.cpp Lexer: Update the Lexer to use MemoryBufferRef, NFC 2020-10-19 19:10:21 -04:00
RewriteModernObjC.cpp Use std::string::substr (NFC) 2021-11-22 08:21:09 -08:00
RewriteObjC.cpp Use std::string::substr (NFC) 2021-11-22 08:21:09 -08:00
RewriteTest.cpp