# indicate generated files so they don't appear in GitHub diffs
*.slang.cpp linguist-generated

# Set the line endings to LF for shell scripts
*.sh text eol=lf

# Unified diffs preserve blank context lines, including the final line of a hunk.
external/llvm-coff-pageoffset12l.patch text eol=lf whitespace=-blank-at-eol,-blank-at-eof

# Enable git archive substitution for tagged version file
cmake/slang_git_version export-subst

# The UTF-8 boundary test positions a multi-byte code point on an exact byte offset
# (the 65535-byte SPIR-V string split); CRLF checkout would shift it, so pin to LF.
tests/spirv/debug-info-include-source-utf8-boundary.slang text eol=lf
