llvm/clang-tools-extra/test/.gitattributes
Michael Forster 4aba5fa774 Use -text git attribute instead of text eol=...
These automatic conversions lead to issues in various workflows, and all
we want here are files that retain their line endings under all
circumstances. `-text` captures that perfectly well and leads to fewer
issues.

It is preferable to `binary`, because with `-text` we still get textual
diffs.

Differential Revision: https://reviews.llvm.org/D124606
2022-04-28 14:27:29 +02:00

16 lines
838 B
Plaintext

# CRLF (Windows) line endings take two bytes instead of one, so any tests that
# rely on or check fixed character -offset, Offset: or FileOffset: locations
# will fail when run on input files checked out with different line endings.
# These test input files rely on one-byte Unix (LF) line-endings, as they use
# fixed -offset, FileOffset:, or Offset: numbers in their tests.
clang-apply-replacements/ClangRenameClassReplacements.cpp -text
clang-apply-replacements/Inputs/basic/basic.h -text
clang-apply-replacements/Inputs/format/no.cpp -text
clang-apply-replacements/Inputs/format/yes.cpp -text
clang-tidy/infrastructure/export-diagnostics.cpp -text
# These test input files rely on two-byte Windows (CRLF) line endings.
clang-apply-replacements/Inputs/crlf/crlf.cpp -text
clang-apply-replacements/Inputs/crlf/crlf.cpp.expected -text