[clang-tools-extra] [clang-tidy][NFC] Add `.editorconfig` for `.rst` files (PR #167269)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 14 01:32:51 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: mitchell (zeyi2)
<details>
<summary>Changes</summary>
Add an `.editorconfig` file, this helps contributors’ editors auto‑apply these conventions and reduces regressions.
This is part of the documentation improvement discussed in #<!-- -->167098
---
Full diff: https://github.com/llvm/llvm-project/pull/167269.diff
2 Files Affected:
- (added) clang-tools-extra/clang-tidy/.editorconfig (+5)
- (added) clang-tools-extra/docs/clang-tidy/checks/.editorconfig (+10)
``````````diff
diff --git a/clang-tools-extra/clang-tidy/.editorconfig b/clang-tools-extra/clang-tidy/.editorconfig
new file mode 100644
index 0000000000000..202fd98590174
--- /dev/null
+++ b/clang-tools-extra/clang-tidy/.editorconfig
@@ -0,0 +1,5 @@
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+max_line_length = 80
diff --git a/clang-tools-extra/docs/clang-tidy/checks/.editorconfig b/clang-tools-extra/docs/clang-tidy/checks/.editorconfig
new file mode 100644
index 0000000000000..08694705c38d8
--- /dev/null
+++ b/clang-tools-extra/docs/clang-tidy/checks/.editorconfig
@@ -0,0 +1,10 @@
+[{**/*.rst,*.rst}]
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+end_of_line = lf
+indent_style = space
+max_line_length = 80
+
+[list.rst]
+max_line_length = unset
``````````
</details>
https://github.com/llvm/llvm-project/pull/167269
More information about the cfe-commits
mailing list