Skip to content

Commit e32e3d6

Browse files
committed
[CodingStandard] Require Unix line endings for C/C++ source and headers
Require all C/C++ source files to use Unix style line endings. This is just formalizing an already loosely followed convention and not doing so can cause build failure for some downstream clients of LLVM.
1 parent 3b299af commit e32e3d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/docs/CodingStandards.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,13 @@ would help to avoid running into a "dangling else" situation.
17901790
markAsIgnored(D);
17911791
}
17921792
1793+
Use Unix style line endings for source files
1794+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1795+
1796+
Use Unix style line endings for C/C++ source files (``.c``, ``.cpp`` and header
1797+
files). This is required to avoid various build issue for downstream clients of
1798+
LLVM. Test files like C/C++/HLSL test inputs can continue to use any line ending
1799+
style.
17931800

17941801
See Also
17951802
========

0 commit comments

Comments
 (0)