[clang-tools-extra] [clang] [mlir] [emacs] Fix Emacs library formatting (PR #76110)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 20 15:37:37 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: None (darkfeline)
<details>
<summary>Changes</summary>
This makes it easier to ship/install these using the builtin Emacs package format (in particular, a Version is required).
---
Full diff: https://github.com/llvm/llvm-project/pull/76110.diff
5 Files Affected:
- (modified) clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.el (+1)
- (modified) clang/tools/clang-format/clang-format.el (+1)
- (modified) clang/tools/clang-rename/clang-rename.el (+1)
- (modified) mlir/utils/emacs/mlir-lsp-client.el (+2)
- (modified) mlir/utils/emacs/mlir-mode.el (+2-1)
``````````diff
diff --git a/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.el b/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.el
index 272f282c47f5fc..f3a949f8c1b552 100644
--- a/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.el
+++ b/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.el
@@ -1,5 +1,6 @@
;;; clang-include-fixer.el --- Emacs integration of the clang include fixer -*- lexical-binding: t; -*-
+;; Version: 0.1.0
;; Keywords: tools, c
;; Package-Requires: ((cl-lib "0.5") (json "1.2") (let-alist "1.0.4"))
diff --git a/clang/tools/clang-format/clang-format.el b/clang/tools/clang-format/clang-format.el
index 30ac7501afcb61..f43bf063c62970 100644
--- a/clang/tools/clang-format/clang-format.el
+++ b/clang/tools/clang-format/clang-format.el
@@ -1,5 +1,6 @@
;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*-
+;; Version: 0.1.0
;; Keywords: tools, c
;; Package-Requires: ((cl-lib "0.3"))
;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
diff --git a/clang/tools/clang-rename/clang-rename.el b/clang/tools/clang-rename/clang-rename.el
index b6c3ed4c686b76..3f47c11e2c752e 100644
--- a/clang/tools/clang-rename/clang-rename.el
+++ b/clang/tools/clang-rename/clang-rename.el
@@ -1,5 +1,6 @@
;;; clang-rename.el --- Renames every occurrence of a symbol found at <offset>. -*- lexical-binding: t; -*-
+;; Version: 0.1.0
;; Keywords: tools, c
;;; Commentary:
diff --git a/mlir/utils/emacs/mlir-lsp-client.el b/mlir/utils/emacs/mlir-lsp-client.el
index 09dfa835deccdc..4397a55e7206ac 100644
--- a/mlir/utils/emacs/mlir-lsp-client.el
+++ b/mlir/utils/emacs/mlir-lsp-client.el
@@ -14,6 +14,8 @@
;; See the License for the specific language governing permissions and
;; limitations under the License.
+;; Version: 0.1.0
+
;;; Commentary:
;; LSP clinet to use with `mlir-mode' that uses `mlir-lsp-server' or any
diff --git a/mlir/utils/emacs/mlir-mode.el b/mlir/utils/emacs/mlir-mode.el
index 69056ba3620eb8..e5947df03f86c8 100644
--- a/mlir/utils/emacs/mlir-mode.el
+++ b/mlir/utils/emacs/mlir-mode.el
@@ -14,6 +14,8 @@
;; See the License for the specific language governing permissions and
;; limitations under the License.
+;; Version: 0.1.0
+
;;; Commentary:
;; Major mode for editing MLIR files.
@@ -96,5 +98,4 @@
(add-to-list 'auto-mode-alist (cons "\\.mlirbc\\'" 'mlir-mode))
(provide 'mlir-mode)
-
;;; mlir-mode.el ends here
``````````
</details>
https://github.com/llvm/llvm-project/pull/76110
More information about the cfe-commits
mailing list