[all-commits] [llvm/llvm-project] 2f9066: clang-format.el: Make clang-format work in indirec...

Philipp Stephani via All-commits all-commits at lists.llvm.org
Wed Feb 23 08:00:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f906683ed14668ceed1f85922789abffd8429fd
      https://github.com/llvm/llvm-project/commit/2f906683ed14668ceed1f85922789abffd8429fd
  Author: Philipp Stephani <phst at google.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M clang/tools/clang-format/clang-format.el

  Log Message:
  -----------
  clang-format.el: Make clang-format work in indirect buffers.

In an indirect buffer, buffer-file-name is nil, so check the base buffer
instead.  This works fine in direct buffers where buffer-base-buffer returns
nil.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D120408




More information about the All-commits mailing list