[all-commits] [llvm/llvm-project] b5fbc6: [clang-format] State where clang-format-diff.py sh...

David Spickett via All-commits all-commits at lists.llvm.org
Mon Nov 30 02:01:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b5fbc60e4de45f2b56331281a706b78ff52bd286
      https://github.com/llvm/llvm-project/commit/b5fbc60e4de45f2b56331281a706b78ff52bd286
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2020-11-30 (Mon, 30 Nov 2020)

  Changed paths:
    M clang/docs/ClangFormat.rst

  Log Message:
  -----------
  [clang-format] State where clang-format-diff.py should be run from

At least with git, file paths in a diff will be relative
to the repo root. So if you are in "llvm-project/lldb"
and the diff shows "clang/foo" modified you get:
No such file or directory

>From clang-format-diff.py, since clang-format was
asked to read:
llvm-project/lldb/clang/foo

Add a note to the docs to explain this.

(there is `git diff --relative` but that excludes
changes outside of the current dir)

Reviewed By: sylvestre.ledru

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




More information about the All-commits mailing list