Open traversaro opened 6 years ago
Yes there is. I always kept this file updated with the most recent version of clang, and the last edit was supporting clang 5 in https://github.com/robotology-playground/clang-format/commit/447b53444248b6cfdc0e08a2365851776a1b64ed. I still have to check if clang 6 introduced anything new. Probably to ensure backward compatibility we should create various branches for different clang versions.
Unless there is something that we cannot absolutely miss, I think it make sense to just require the default version provided in the latest Ubuntu LTS (for developers I think we can be a bit more strict, and just support that http://wiki.icub.org/wiki/YARP_Supported_Distributions ).
We can have multiple branches for more recent options, but I don't think it make sense to use them in the actual robotology repositories when 80% (rough estimate of the number of developers running the katest Ubuntu LTS) of the developers cannot use them.
I tried using the
clang-format
file contained in this repo with clang-format 3.8, and I obtained a lot of errors of this kind:I had to comment several properties to get it to work, see:
There a minimum required version of clang-format to use the provided file? @diegoferigo