[PATCH] D37903: Fix assume-filename handling in clang-format.el

Micah Werbitt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 3 13:22:02 PDT 2017


werbitt updated this revision to Diff 117574.
werbitt added a comment.

Use uppercase when referring to arguments


https://reviews.llvm.org/D37903

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


Index: tools/clang-format/clang-format.el
===================================================================
--- tools/clang-format/clang-format.el
+++ tools/clang-format/clang-format.el
@@ -122,8 +122,8 @@
 (defun clang-format-region (start end &optional style assume-file-name)
   "Use clang-format to format the code between START and END according to STYLE.
 If called interactively uses the region or the current statement if there is no
-no active region. If no style is given uses `clang-format-style'. Use
-ASSUME-FILE-NAME to locate a style config file, if no  assume-file-name is given
+no active region. If no STYLE is given uses `clang-format-style'. Use
+ASSUME-FILE-NAME to locate a style config file, if no ASSUME-FILE-NAME is given
 uses the function `buffer-file-name'."
   (interactive
    (if (use-region-p)
@@ -193,8 +193,8 @@
 ;;;###autoload
 (defun clang-format-buffer (&optional style assume-file-name)
   "Use clang-format to format the current buffer according to STYLE.
-If no style is given uses `clang-format-style'. Use ASSUME-FILE-NAME
-to locate a style config file. If no assume-file-name is given uses
+If no STYLE is given uses `clang-format-style'. Use ASSUME-FILE-NAME
+to locate a style config file. If no ASSUME-FILE-NAME is given uses
 the function `buffer-file-name'."
   (interactive)
   (clang-format-region (point-min) (point-max) style assume-file-name))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37903.117574.patch
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171003/ecbea76a/attachment.bin>


More information about the cfe-commits mailing list