.clang-format file support

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin

.clang-format file support

Postby shushens » Fri Apr 22, 2016 5:04 pm

Typically, when using a CLang-centric development process, I keep a .clang-format file at the project root, which is nothing but a dump I make out of one of the widely known style presets (e.g., google or LLVM). Afterwards, I change perhaps one or two things (wrap width 120, sort includes false, etc.). From that point on, I can format all files in the project room using those settings, and various plugins in various editors first search for a .clang-format file anywhere on the path of the file, and if not found, LLVM style is commonly used.

In CodeLite, I am having difficulty achieving this. Although there is a .clang-format file at the project root, it is not used. There are some options exposed through CodeLite preferences. But the options I have in my clang-format file are way more. One of the reasons could be that I am normally using clang and clang-format 3.8 (Ubuntu Xenial) and CodeLite is trying to use a clang-format 3.4 (Which is prehistoric!) that it would not get installed without.

Why is it this way and is there a workaround for this? I am not being able to use such a great lightweight editor mostly because of this. When I open old projects and hit save, things get real messy.
shushens
CodeLite Curious
 
Posts: 1
Joined: Wed Feb 10, 2016 5:25 pm

Re: .clang-format file support

Postby eranif » Fri Apr 22, 2016 9:00 pm

please open a feature request at github

thanks,
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
 
Posts: 5713
Joined: Wed Feb 06, 2008 9:29 pm

Re: .clang-format file support

Postby salamanderrake » Fri Sep 02, 2016 3:54 am

There is already a feature request from 2015, https://github.com/eranif/codelite/issues/1082
salamanderrake
CodeLite Curious
 
Posts: 1
Joined: Fri Sep 02, 2016 3:47 am

Re: .clang-format file support

Postby eranif » Fri Sep 02, 2016 7:42 pm

Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
 
Posts: 5713
Joined: Wed Feb 06, 2008 9:29 pm


Return to CodeFormatter

Who is online

Users browsing this forum: No registered users and 2 guests