[llvm] [CodingStandard] Require Unix line endings for C/C++ source and headers (PR #161228)
Baranov Victor via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 11:14:25 PDT 2025
================
@@ -1790,6 +1790,13 @@ would help to avoid running into a "dangling else" situation.
markAsIgnored(D);
}
+Use Unix style line endings for source files
----------------
vbvictor wrote:
> Actually, does clang-tidy have such a check?
clang-tidy does not have it (and this isn't its job IMO) but clang-format does have an [option for LF/CRLF](https://clang.llvm.org/docs/ClangFormatStyleOptions.html#lineending). Maybe placing it inside [.clang-format](https://github.com/llvm/llvm-project/blob/main/.clang-format) would do the trick in `"code-format" premerge CI`. We can also do it on per-directory basis (if needed).
https://github.com/llvm/llvm-project/pull/161228
More information about the llvm-commits
mailing list