Bug 265019 - Add default indent rules: kdelibs (Qt) coding style
Summary: Add default indent rules: kdelibs (Qt) coding style
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: ident (show other bugs)
Version: unspecified
Platform: unspecified Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 269438 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-31 23:35 UTC by Denis Pesotsky
Modified: 2014-01-25 01:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Pesotsky 2011-01-31 23:35:55 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                unspecified

By default KDevelop provides GNU, K&R, Java etc indent styles, but not the style that is used in KDE. I'm talking about http://techbase.kde.org/Policies/Kdelibs_Coding_Style
It will be nice to have that indent rules by default.
They'r taken from http://qt.gitorious.org/qt/pages/QtCodingStyle so better call that style Qt.

Reproducible: Always




Astyle options for it:
--indent=spaces=4 --brackets=linux \
--indent-labels --pad-oper --unpad-paren \
--keep-one-line-statements --convert-tabs \
--indent-preprocessor \
--fill-empty-lines \
--suffix=none \
--align-pointer=name \ <---- not currently supported, look @ 263834
--formatted
Comment 1 Milian Wolff 2011-04-03 20:42:47 UTC
*** Bug 269438 has been marked as a duplicate of this bug. ***
Comment 2 Milian Wolff 2011-04-03 20:43:20 UTC
from above bug report:

"It should use 4 spaces instead of tabs, unpad parentheses, should not indent
classes."

someone (or me) needs to fix that for 4.3...
Comment 3 Milian Wolff 2011-04-04 00:13:16 UTC
Git commit b4ee4a1d64bec0e5d41093be7ad05a3aab07a869 by Milian Wolff.
Committed on 04/04/2011 at 00:16.
Pushed by mwolff into branch 'master'.

better try to simulate KDELibs and Qt coding styles in predefined AStyle settings

please close bug if this is enough now

CCBUG: 265019

M  +11   -1    formatters/astyle/astyle_formatter.cpp     

http://commits.kde.org/kdevelop/b4ee4a1d64bec0e5d41093be7ad05a3aab07a869
Comment 4 Denis Pesotsky 2014-01-25 01:27:10 UTC
Old & fixed => closed