Re: [Inkscape-devel] code formating
Hi Samuel, I try it like this:
~/Development/inkscape/fillet-chamfer$ clang-format-3.3 -assume-filename=/home2/Development/inkscape/fillet-chamfer/_clang-format src/ui/dialog/lpe-fillet-chamfer-properties.h clang-format-3.3: Unknown command line argument '-assume-filename=/home2/Development/inkscape/fillet-chamfer/_clang-format'. Try: 'clang-format-3.3 -help' clang-format-3.3: Did you mean '-profile-file=/home2/Development/inkscape/fillet-chamfer/_clang-format'?
also use profile-file and 2 spaces. also copy to .clang-format and again 2 spaces.
regards, Jabier.
Thanks again Samuel!
El mié, 02-07-2014 a las 12:44 +0530, Samuel Chase escribió:
Hi Jabier,
Try using clang-format -assume-filename=<toplevel-inkscape-src-dir>/_clang-format <FILE>.cpp That has the appropriate options set to 4 spaces.
You could also copy that file to ``.clang-format``, and then clang-format will autmatically find it if you are working in an Inkscape subdirectory.
Samuel
Hi Jabier,
We're using different versions of clang-format, so try doing: clang-format -profile-file=~/src/inkscape/trunkscape/_clang-format <cpp_file>
Samuel
participants (2)
-
Jabiertxo Arraiza Cenoz
-
Samuel Chase