Issue 131456
Summary Can't run git-clang-format with python 2.7
Labels clang-format
Assignees
Reporter eoan-ermine
    There is a comment that git-clang-format can be run using python 2.7, but in fact this is not the case.

https://github.com/llvm/llvm-project/blob/5cc2ae0b519065c39df124d46de1ba75d4b144eb/clang/tools/clang-format/git-clang-format#L22

```
root@linux-x64-ztn:/home/user/Downloads# python --version
Python 2.7.5
```

```
root@linux-x64-ztn:/home/user/Downloads# python git-clang-format
  File "git-clang-format", line 428
    commits = [f"{commits[0]}...{commits[1]}"]
 ^
SyntaxError: invalid syntax
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to