We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d53cf4f commit a3e87f4Copy full SHA for a3e87f4
clang/tools/clang-format/clang-format.el
@@ -232,8 +232,6 @@ the function `buffer-file-name'."
232
(defalias 'clang-format 'clang-format-region)
233
234
;; Format on save minor mode.
235
-;;
236
-;; Optional minor mode for formatting on save.
237
238
(defun clang-format--on-save-buffer-hook ()
239
"The hook to run on buffer saving to format the buffer."
@@ -259,7 +257,7 @@ the function `buffer-file-name'."
259
257
(let ((filepath buffer-file-name))
260
258
(cond
261
(filepath
262
- (null (null (locate-dominating-file (file-name-directory filepath) ".clang-format"))))
+ (not (null (locate-dominating-file (file-name-directory filepath) ".clang-format"))))
263
(t
264
nil))))
265
0 commit comments