vcglib
vcglib copied to clipboard
added .clang-format and formatted example file
The style described in this .clang-format file can be used to auto format the source code. I looked at a couple of files, and this file should be quite close to what the general style in the project looked. You will need to install clang-format (sudo apt-get install clang-format [or any other package manager]) Then you can apply this style to any file with
clang-format --style=file -i path/to/file.h
Please let me know, what you think of this.
Thanks @zebastian, and sorry for the very late reply! I didn't know about clang-format, it seems a very useful tool! I'll look into it and I'll slowly apply it on vcg and meshlab!
@alemuntoni glad you like it, its been a while i looked into clang-format :-) Let me know if you have any questions...