vcglib icon indicating copy to clipboard operation
vcglib copied to clipboard

added .clang-format and formatted example file

Open zebastian opened this issue 7 years ago • 2 comments

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.

zebastian avatar Mar 29 '17 16:03 zebastian

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 avatar Aug 23 '21 09:08 alemuntoni

@alemuntoni glad you like it, its been a while i looked into clang-format :-) Let me know if you have any questions...

zebastian avatar Sep 01 '21 11:09 zebastian