Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » clang-format integration
clang-format integration [message #59632] Sun, 19 February 2023 11:38 Go to next message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
I am happy to announce that clang-format integration is almost finished.

There is a new submenu of local editor menu, "Reformat". In that there are Reformat and Reformat with options.. entries. Second one allows you to setup your formatting preferences...

Possible "underdevelopment" here is that we did not really had yet the time to fix installation of more exotic POSIX platforms to actually make sure that clang-format is installed in the host (apt-gets and rmps should work).

Thanks to Klugier for all the hard lifting here.

Mirek
Re: clang-format integration [message #59633 is a reply to message #59632] Sun, 19 February 2023 13:25 Go to previous messageGo to next message
coolman is currently offline  coolman
Messages: 114
Registered: April 2006
Location: Czech Republic
Experienced Member
Hi,

I tried this new functionality and I can't use it. I got error: "Clang-format has failed: Invalid value for -style"

Ubuntu clang-format version 13.0.1-++20220120110924+75e33f71c2da-1~exp1~20220120231001.5 8
Linux 5.15.0-60-generic #66~20.04.1-Ubuntu SMP Wed Jan 25 09:41:30 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

BR, Radek
Re: clang-format integration [message #59634 is a reply to message #59633] Sun, 19 February 2023 13:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
coolman wrote on Sun, 19 February 2023 13:25
Hi,

I tried this new functionality and I can't use it. I got error: "Clang-format has failed: Invalid value for -style"

Ubuntu clang-format version 13.0.1-++20220120110924+75e33f71c2da-1~exp1~20220120231001.5 8
Linux 5.15.0-60-generic #66~20.04.1-Ubuntu SMP Wed Jan 25 09:41:30 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

BR, Radek


With options dialog or without? Any set of options that works?

Thanks for reporting, so far only me and Klugier tested...
Re: clang-format integration [message #59637 is a reply to message #59634] Sun, 19 February 2023 15:41 Go to previous messageGo to next message
coolman is currently offline  coolman
Messages: 114
Registered: April 2006
Location: Czech Republic
Experienced Member
mirek wrote on Sun, 19 February 2023 13:51
coolman wrote on Sun, 19 February 2023 13:25
Hi,

I tried this new functionality and I can't use it. I got error: "Clang-format has failed: Invalid value for -style"

Ubuntu clang-format version 13.0.1-++20220120110924+75e33f71c2da-1~exp1~20220120231001.5 8
Linux 5.15.0-60-generic #66~20.04.1-Ubuntu SMP Wed Jan 25 09:41:30 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

BR, Radek

With options dialog or without? Any set of options that works?


With dialog - CTRL+I. None of the options work, not even the custom settings.
Re: clang-format integration [message #59638 is a reply to message #59633] Sun, 19 February 2023 16:36 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1096
Registered: August 2007
Senior Contributor
Hi,

It appears that "-style=file:path" is only supported from v14.0 and on.
It should be "-style=file" for previous versions (or so it seems)...

Best regards,
Oblivion


[Updated on: Sun, 19 February 2023 16:43]

Report message to a moderator

Re: clang-format integration [message #59643 is a reply to message #59638] Sun, 19 February 2023 19:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
Oblivion wrote on Sun, 19 February 2023 16:36
Hi,

It appears that "-style=file:path" is only supported from v14.0 and on.
It should be "-style=file" for previous versions (or so it seems)...

Best regards,
Oblivion


Workaround pushed. Please recheck.
Re: clang-format integration [message #59644 is a reply to message #59643] Sun, 19 February 2023 20:22 Go to previous message
coolman is currently offline  coolman
Messages: 114
Registered: April 2006
Location: Czech Republic
Experienced Member
mirek wrote on Sun, 19 February 2023 19:28
Oblivion wrote on Sun, 19 February 2023 16:36
Hi,

It appears that "-style=file:path" is only supported from v14.0 and on.
It should be "-style=file" for previous versions (or so it seems)...

Best regards,
Oblivion


Workaround pushed. Please recheck.


Now it works.
Previous Topic: 2022.3rc5
Next Topic: ide: build code changes
Goto Forum:
  


Current Time: Sun Jun 23 19:33:54 CEST 2024

Total time taken to generate the page: 0.01078 seconds