[PATCH] D143560: clang-format.el: fix warnings

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 27 01:56:39 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG95c3c2b8570d: [clang-format] clang-format.el: fix warnings (authored by augfab, committed by owenpan).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143560/new/

https://reviews.llvm.org/D143560

Files:
  clang/tools/clang-format/clang-format.el


Index: clang/tools/clang-format/clang-format.el
===================================================================
--- clang/tools/clang-format/clang-format.el
+++ clang/tools/clang-format/clang-format.el
@@ -82,7 +82,7 @@
         (let* ((children (xml-node-children node))
                (text (car children)))
           (cl-case (xml-node-name node)
-            ('replacement
+            (replacement
              (let* ((offset (xml-get-attribute-or-nil node 'offset))
                     (length (xml-get-attribute-or-nil node 'length)))
                (when (or (null offset) (null length))
@@ -93,7 +93,7 @@
                (setq offset (string-to-number offset))
                (setq length (string-to-number length))
                (push (list offset length text) replacements)))
-            ('cursor
+            (cursor
              (setq cursor (string-to-number text)))))))
 
     ;; Sort by decreasing offset, length.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143560.500711.patch
Type: text/x-patch
Size: 944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230227/7f24ec83/attachment.bin>


More information about the cfe-commits mailing list