summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodeformatter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* C++: Add parsing of Q_PRIVATE_PROPERTY.Christian Kamm2011-01-041-0/+1
| | | | Reviewed-by: Roberto Raggi
* Merge branch '2.1'con2010-12-171-7/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/basemode.cpp src/plugins/coreplugin/basemode.h src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp src/plugins/debugger/debuggeragents.cpp src/plugins/debugger/debuggeruiswitcher.cpp src/plugins/debugger/debuggeruiswitcher.h src/plugins/projectexplorer/buildconfigdialog.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.h src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h src/plugins/qmldesigner/designercore/include/modelutilities.h src/plugins/qmldesigner/designercore/include/nodeinstance.h src/plugins/qmldesigner/designercore/include/propertymetainfo.h src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp src/plugins/qmldesigner/designercore/model/modelutilities.cpp src/plugins/snippets/inputwidget.cpp src/plugins/snippets/snippetscompletion.cpp src/plugins/snippets/snippetscompletion.h src/plugins/snippets/snippetspec.cpp src/plugins/snippets/snippetsplugin.cpp src/plugins/snippets/snippetswindow.cpp src/plugins/snippets/snippetswindow.h src/plugins/texteditor/snippetsparser.cpp src/tools/qml/qmldom/main.cpp tests/manual/trk/runner.cpp tests/manual/trk/trkolddevice.cpp tests/manual/trk/trkolddevice.h tests/manual/trk/trkserver.cpp
| * License headers.con2010-12-171-7/+11
| |
* | C++ indenter: Fix labels.Christian Kamm2010-12-011-0/+20
| | | | | | | | Reviewed-by: Roberto Raggi
* | C++ indenter: Align to next token instead of end of current.Christian Kamm2010-11-221-15/+16
| | | | | | | | | | Task-number: QTCREATORBUG-3136 Reviewed-by: Erik Verbruggen
* | C++ indenter: Fix for GNU and Whitesmiths style switch statement.Christian Kamm2010-11-041-5/+18
|/ | | | Task-number: QTCREATORBUG-2994
* C++ indenter: Ensure indent and padding are non-negative.Christian Kamm2010-10-251-4/+20
| | | | Reviewed-by: Roberto Raggi
* C++ indenter: Fix indentation after namespace aliases.Christian Kamm2010-10-191-0/+1
| | | | | Task-number: QTCREATORBUG-2574 Reviewed-by: Roberto Raggi
* C++ indenter: Don't get confused on 'for (a in b)'.Christian Kamm2010-10-081-0/+2
| | | | | | Reviewed-by: Roberto Raggi Reviewed-by: Erik Verbruggen (cherry picked from commit c2d890f65e3d1975022aec4a70a93c53e43f38bc)
* C++ indenter: Fix member initializer indent being hardcoded to 4.Christian Kamm2010-09-271-1/+1
| | | | Task-number: QTCREATORBUG-2456
* C++ indenter: Fix error recovery in function definitions.Christian Kamm2010-09-241-2/+2
| | | | Task-number: QTCREATORBUG-1517
* C++ indenter: Add some small error recovery.Christian Kamm2010-09-241-0/+7
|
* C++ indenter: Fix indentation if template and class appear on one line.Christian Kamm2010-09-241-6/+9
| | | | Task-number: QTCREATORBUG-2427
* C++ indenter: Simplify debugging by making dump() more verbose.Christian Kamm2010-09-241-1/+4
|
* C++ indenter: Fix curly brace placement for ANSI style.Christian Kamm2010-09-151-0/+5
| | | | | | | | There was a bug in 5cd6ebfdfd94aa9745f2ca8e92c5ed24d6bc1afa which meant no reindent of the current line was triggered for the opening curly brace on a new line. Task-number: QTCREATORBUG-2331
* C++ indenter: Fix for statement indentation and add test.Christian Kamm2010-09-151-4/+8
|
* C++ indenter: Separate indent into logical indent and padding.Christian Kamm2010-09-131-53/+106
|
* C++: Only reindent on electric characters if indent wasn't user-changed.Christian Kamm2010-09-081-0/+6
| | | | | | | This should make the indenter less strict and annoying for non-standard indentation styles. Reviewed-by: Roberto Raggi
* C++ indenter: Fix nested array/struct initializers.Christian Kamm2010-08-311-4/+12
|
* C++: Fix indenting of QML_* macros.Christian Kamm2010-08-251-0/+1
| | | | Task-number: QTCREATORBUG-2111
* Indenters: Move style setup into the QtStyleCodeFormatter constructors.Christian Kamm2010-08-121-0/+27
| | | | | This makes sure styles are consistent for the editor and the quick fix engine.
* C++ indenter: Fix indent of block statements in substatement blocks.Christian Kamm2010-07-281-0/+1
| | | | Task-number: QTCREATORBUG-1919
* C++ indenter: Indent member initializer lists correctly.Christian Kamm2010-07-161-9/+29
| | | | | | | Without requiring ',' to be an electric character. Task-number: QTCREATORBUG-1866 Reviewed-by: Roberto Raggi
* 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