llvm-project/llvm/.gitattributes
Justin Bogner 88bd2601c0 [Test] Set gitattributes for line endings in tapi inputs
LLVM's parsing of .tbd files errors out with "unsupported file type"
if the tbd files have CRLF line endings. Add gitattributes for the
inputs to avoid test failures on windows.

Differential Revision: https://reviews.llvm.org/D144527
2023-02-21 16:07:08 -08:00

32 lines
1.3 KiB
Plaintext

# binary files
test/Object/Inputs/*.a* binary
test/tools/dsymutil/Inputs/*.o binary
test/tools/dsymutil/Inputs/*.a binary
test/tools/dsymutil/Inputs/*.i386 binary
test/tools/dsymutil/Inputs/*.x86_64 binary
test/tools/dsymutil/Inputs/*.armv7m binary
test/tools/dsymutil/Inputs/*.dylib binary
test/tools/dsymutil/Inputs/*.dSYM binary
test/tools/dsymutil/Inputs/*.swiftmodule binary
test/tools/llvm-ar/Inputs/*.lib binary
test/tools/llvm-ar/Inputs/*.a binary
test/tools/llvm-objdump/Inputs/*.a binary
test/tools/llvm-rc/Inputs/* binary
test/tools/llvm-strings/Inputs/numbers binary
test/MC/AsmParser/incbin_abcd binary
test/YAMLParser/spec-09-02.test binary
# These files must have CRLF line endings, therefore git should explicity treat
# them as always having crlf line endings
test/MC/AsmParser/preserve-comments-crlf.s text eol=crlf
test/tools/llvm-mca/X86/directives-handle-crlf.s text eol=crlf
# These files must have LF line endings because the test requires exact matching
test/Object/Inputs/*.tbd eol=lf
test/tools/llvm-strings/radix.test text eol=lf
test/tools/llvm-tapi-diff/Inputs/*.tbd text eol=lf
test/tools/split-file/basic.test text eol=lf
test/tools/split-file/Inputs/basic-*.txt eol=lf
test/tools/split-file/basic.crlf.test text eol=crlf
test/tools/split-file/Inputs/basic-*.crlf eol=crlf