Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » TheIDE ClangFormat Integration (Preview)
TheIDE ClangFormat Integration [message #59432] |
Mon, 26 December 2022 22:22 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
In the last release cycle (2022.3) we made the decision to drop formatting support due to outdated AStyle library. To mitigate this lack I implemented clang-format integration to our TheIDE. It is basing on the binary not LibFormat. The binary of clang-format will be bundled on Windows in bin/clang-format directory. For POSIX platform it should be downloaded via package manager. For my Manajro it is available through regular clang installation.
Features:
- clang-format do not wipe the whole content of the file. It means that you will see blue spots to determine where formatting changes has been applied
- you can have separate .clang-format per package or assembly. Using assembly approach is useful for example for UppHub packages
- .clang-format configuration file can be created from new package window
- U++ style has been created. It is basing on the style used in U++ library. For more information you can see this .clang-format file.
ToDo:
- documentation will be provided once changes will be merged
- bundling .clang-format style file for our installation packages (Windows, POSIX & macOS)
- bundling clang-format executable on Windows
- configuration option like format on save, alternative executable path etc.
If you want to try it by yourself, you can checkout my branch from our GitHub repository (#122):
klugier/clang-format-itnegration
I would be grateful for any feedback you will provide. Finding bugs are much more appropriated!
Klugier
U++ - one framework to rule them all.
[Updated on: Wed, 28 December 2022 18:47] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Apr 24 05:54:41 CEST 2024
Total time taken to generate the page: 0.03538 seconds
|