![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file
Wiki Tutorials
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged uncrustify at Robotics Stack Exchange
![]() |
uncrustify package from uncrustify repouncrustify |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.61.20150413 |
License | GNU GENERAL PUBLIC LICENSE Version 3 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ament/uncrustify.git |
VCS Type | git |
VCS Version | ardent |
Last Updated | 2017-09-29 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Dirk Thomas
Authors
Uncrustify
A source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA
Features
- highly configurable - 590 configurable options as of version 0.65
-
add/remove spaces
- `sp_before_sparen`: _Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc._ - `sp_compare`: _Add or remove space around compare operator '<', '>', '==', etc_
</details>
-
add/remove newlines
- `nl_if_brace`: _Add or remove newline between 'if' and '{'_ - `nl_brace_while`: _Add or remove newline between '}' and 'while' of 'do' statement_
</details>
-
add/remove blanklines
- `eat_blanks_before_close_brace`: _Whether to remove blank lines before '}'_ - `nl_max`: _The maximum consecutive newlines (3 = 2 blank lines)_
</details>
-
indent code
- `indent_switch_case`: _indent_switch_case: Spaces to indent 'case' from 'switch'_ - `indent_class_colon`: _Whether to indent the stuff after a leading base class colon_
</details>
-
align code
- `align_func_params`: _Align variable definitions in prototypes and functions_ - `align_struct_init_span`: _The span for aligning struct initializer values (0=don't align)_
</details>
-
modify code
- `mod_full_brace_for`: _Add or remove braces on single-line 'for' statement_ - `mod_paren_on_return`: _Add or remove unnecessary paren on 'return' statement_
</details>
Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do.
Binaries
Pre compiled binaries for Windows can be downloaded here.
Build
CMake is a tool that generates build systems (Makefiles, Visual Studio project files, Xcode project files and others).
To generate a build system for Uncrustify using CMake, create a build folder and run CMake from it:
$ mkdir build
$ cd build
$ cmake ..
(Use cmake -G Xcode ..
for Xcode)
Then use the build tools of your build system (in many cases this will
simply be make
, but on Windows it could be MSBuild or Visual Studio).
Or use CMake to invoke it:
$ cmake --build .
If testing is enabled, CMake generates a test
target, which you can
build using your build system tools (usually make test
). This can also
be invoked using CTest:
$ ctest -V -C Debug
There is also an install
target, which can be used to install the
Uncrustify executable (typically make install
).
A note on CMake configurations
Some build systems are single-configuration, which means you specify the
build type when running CMake (by setting the CMAKE_BUILD_TYPE
variable), and the generated files then build that configuration.
File truncated at 100 lines see the full file