summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodeformatter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* C++ indenter: Respect user indent with stream operators.Christian Kamm2010-07-151-5/+15
| | | | Reviewed-by: Erik Verbruggen
* Fix brace statesmae2010-07-121-3/+3
| | | | | | | | The lexer needs its own lexerState, before it was using the syntax highlighter user state. This breaks the brace depth calculation of the highlighter. Reviewed-by: Roberto Raggi
* Add missing license headers.Christian Kamm2010-07-091-0/+29
|
* C++ indenter: Fix for extending if conditions.Christian Kamm2010-07-081-5/+7
| | | | Task-number: QTCREATORBUG-1825
* C++ indenter: Be more careful when comparing states.Christian Kamm2010-07-081-1/+2
| | | | Task-number: QTCREATORBUG-1818
* C++ indenter: Refactor to be independent of BaseTextDocumentLayout.Christian Kamm2010-07-081-68/+88
| | | | Done-with: Thomas Hartmann
* C++ indenter: Don't add continuation indent after function return type.Christian Kamm2010-07-081-1/+13
| | | | Task-number: QTCREATORBUG-1816
* C++ indenter: Enable class, struct, enum, namespace, using in functions.Christian Kamm2010-07-081-21/+20
| | | | | Fixes incorrect indentation we got previously when they were used in a statement context.
* C++ indenter: Add more functions to manage the indenter state.Christian Kamm2010-07-061-1/+40
|
* C++ indenter: Add special case rule for indenting enums.Christian Kamm2010-07-061-3/+8
| | | | | | | So you now get enum A { a = 2, b = 3, };
* C++ indenter: Require explicit state update requests.Christian Kamm2010-07-061-3/+2
| | | | | This will allow much faster indenting of selected areas as the state doesn't have to be checked again for every line.
* C++ indenter: Fix 'else' indentation in GNU style.Christian Kamm2010-07-061-0/+2
|
* C++ indenter: Store tab size and use it to calculate the column positionChristian Kamm2010-07-051-1/+25
|
* C++ indenter: Make building custom styles easier, fix style issues.Christian Kamm2010-07-051-54/+118
| | | | | Keep more information by using enter() instead of turnInto() when moving from a *_start to *_open.
* C++ indenter: Add support for other brace styles.Christian Kamm2010-07-051-0/+14
|
* C++: Introduce the new CodeFormatter.Christian Kamm2010-07-021-0/+1067
Done-with: Erik Verbruggen