A simple way is to install the "archery" utility as described here:
https://arrow.apache.org/docs/developers/benchmarks.html#archery

then use:
  archery lint --clang-format --fix

to fix files automatically.

Regards

Antoine.


Le 16/07/2020 à 21:13, Patrick Pai a écrit :
> I've written some cpp code and I want to autoformat it so that lint checks 
> pass. I saw the 'clang-format' service on 
> https://arrow.apache.org/docs/developers/integration.html but this doc seems 
> outdated - I can only find the service 'ubuntu-lint' in my docker-compose.yml
> 
> I tried the following series of commands:
>               docker-compose build ubuntu-cpp
>               docker-compose build ubuntu-lint
>               docker-compose run ubuntu-lint
> 
> The third command points out which files (and specific lines) have 
> clang-format style issues but it doesn't actually fix the files. How can I 
> automatically fix any style issues in my cpp code?

Reply via email to