Add compatibility note for clang-format and fix a small issue in .clang-format #3877
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried to make clang-format 10 compatible to 7-9, but I didn't found a way to do so. So basically I compared result of
clang-format-8 -dump-config > .clang-format8
withclang-format-10 -dump-config > .clang-format10
. As no default value of an option was changed and we cannot use newer options, as defining them breaks clang-tidy for old version (you can't tell clang-tidy to ignore unknown options) and even no new option sounds like it is the reason for the slightly other formatting, I added a note that PCL is only compatible to clang-tidy 7-9 and not 10.Example of difference between clang-tidy 8 and 10:
![image](https://user-images.githubusercontent.com/483922/78685691-66c7a480-78f2-11ea-92c8-4b1a61276233.png)