serge-sans-paille wrote:

> See below. Seems it's already working as expected without this patch.
> 
> ```
> $ clang-format -version
> clang-format version 17.0.5
> $ clang-format-diff.py foo
> usage: clang-format-diff.py [-h] [-i] [-p NUM] [-regex PATTERN] [-iregex 
> PATTERN]
>                             [-sort-includes] [-v] [-style STYLE]
>                             [-fallback-style FALLBACK_STYLE] [-binary BINARY]
> clang-format-diff.py: error: unrecognized arguments: foo
> $ ln -s clang-format-diff.py cfd
> $ cfd foo
> usage: cfd [-h] [-i] [-p NUM] [-regex PATTERN] [-iregex PATTERN] 
> [-sort-includes] [-v]
>            [-style STYLE] [-fallback-style FALLBACK_STYLE] [-binary BINARY]
> cfd: error: unrecognized arguments: foo
> ```

try with `clang-format-diff.py --help` vs `cfd --help` ;-)

https://github.com/llvm/llvm-project/pull/73491
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to