[clang-format] Replace DeriveLineEnding and UseCRLF with LineEnding
authorOwen Pan <owenpiano@gmail.com>
Fri, 13 Jan 2023 05:14:03 +0000 (21:14 -0800)
committerOwen Pan <owenpiano@gmail.com>
Fri, 13 Jan 2023 23:46:34 +0000 (15:46 -0800)
commite3eca335940251308c8990c8880341002e74b9c1
tree7f4f5989dff1438c9208471f2aa01bae3f1428e7
parentdf589353e83fac78737fb973745d0dfa89d2e775
[clang-format] Replace DeriveLineEnding and UseCRLF with LineEnding

Below is the mapping:
LineEnding  DeriveLineEnding UseCRLF
LF                false       false
CRLF              false       true
DeriveLF          true        false
DeriveCRLF        true        true

Differential Revision: https://reviews.llvm.org/D141654
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/DefinitionBlockSeparator.cpp
clang/lib/Format/Format.cpp
clang/unittests/Format/ConfigParseTest.cpp
clang/unittests/Format/FormatTest.cpp