Below is the mapping:
LineEnding DeriveLineEnding UseCRLF LF false false CRLF false true DeriveLF true false DeriveCRLF true true
Paths
| Differential D141654
[clang-format] Replace DeriveLineEnding and UseCRLF with LineEnding ClosedPublic Authored by owenpan on Jan 12 2023, 9:35 PM.
Details Summary Below is the mapping: LineEnding DeriveLineEnding UseCRLF LF false false CRLF false true DeriveLF true false DeriveCRLF true true
Diff Detail
Event TimelineComment Actions (This needs to run the updated dump script from D138446) I'm not sure what the strict benefit of squishing the two options together is, but I support it This revision is now accepted and ready to land.Jan 13 2023, 2:32 AM Comment Actions
Having just one option instead of two, for one feature is better, especially when the two options are that far apart in the documentation. Comment Actions Rebased and ran the latest dump_format_style.py to generate ClangFormatStyleOptions.rst. Comment Actions
+1. Comment Actions
See D108752 and the added table in the summary. This revision was landed with ongoing or failed builds.Jan 13 2023, 3:46 PM Closed by commit rGe3eca3359402: [clang-format] Replace DeriveLineEnding and UseCRLF with LineEnding (authored by owenpan). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions This also made me wonder, is there an actual policy on deprecated options? As in, when they are actually removed. Is there even prior precedent for doing this? (I wouldn't know because I'm a very recent user) Comment Actions
I think the first one was D108752 and the documentation can handle that since D127578. Comment Actions
+1. Comment Actions
We deprecate options only as a cleanup (as in this patch) or when adding new options (as in D108752) and should maintain backward compatibility. (Also see the original idea from @MyDeveloperDay in D19031#1745767.)
Revision Contents
Diff 489144 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
|