[PATCH] D28419: clang-tools-extra: add gitattributes to disable EOL conversions on checkout of test source files

Antonio Maiorano via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 6 15:51:34 PST 2017


amaiorano created this revision.
amaiorano added reviewers: malcolm.parsons, ioeric.
amaiorano added a subscriber: cfe-commits.

Certain tests expect their input files to have LF line endings, while others expect CRLF. On Windows, when using Git with core.autocrlf=true, these tests fail because all source files are checked out with CRLF line endings. This change makes sure that these files are not converted at all on checkout.


https://reviews.llvm.org/D28419

Files:
  .gitattributes


Index: .gitattributes
===================================================================
--- /dev/null
+++ .gitattributes
@@ -0,0 +1,5 @@
+text=auto
+
+# Disable eol conversions as certain tests rely on specific line endings
+test/**/*.h -text
+test/**/*.cpp -text


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28419.83451.patch
Type: text/x-patch
Size: 266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170106/fb38073c/attachment.bin>


More information about the cfe-commits mailing list