summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppplugin.h
Commit message (Collapse)AuthorAgeFilesLines
* CppEditor: Rename CppPlugin to CppEditorPluginNikolai Kosjar2013-04-191-208/+0
| | | | | | Change-Id: Icebf85ae425f413ed0d3dfc873869665233ec58c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* CppEditor: Quick fix "move definition" keeps ctor-initialization listLorenz Haas2013-04-181-0/+2
| | | | | | | | Task-number: QTCREATORBUG-9157 Change-Id: Ic46086ba07a86292bbf48de62b69e3f33628fd86 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* CppEditor: add more sections (protected, ...) for declaration (refactoring)Andrey M. Tokarev2013-04-181-0/+2
| | | | | | | | | You can write definition of function, type Alt+Enter, as usual, and select not only public but also other possible sections like private, public slots and so on. Change-Id: I2faefc3833c6f05c9e2e5a2a41328bcdbe17ba14 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* CppEditor: Add refactoring operation to move definition of a functionLorenz Haas2013-04-151-0/+16
| | | | | | | | | | | With this new operation it is possible to move a function definition from a cpp file to the header file or vice versa. One can also move a function definition outside the class body. Task-number: QTCREATORBUG-516 Task-number: QTCREATORBUG-5364 Change-Id: Id3daefe79284bd9086282369c9d251e003951c11 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* C++: Tests: Add stupid "do xyz for each file/token" testsNikolai Kosjar2013-04-111-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce tests that execute test actions on each word/token of each file from every loaded project. Currently, besides just opening files and moving token by token through the files, the following basic actions from the CppTools and CppEditor plugin are executed for each token: - Follow Symbol Under Cursor - Switch Declaration/Definition - Find Usages - Rename Symbol Under Cursor - Open Type Hierarchy - Invoke Completion - Trigger a quick fix in this scope (+perform) Note that (1) These tests are meant to detect corner cases for which Qt Creator crashes or outputs QTC_ASSERTS. Correct behavior is not tested. (2) These tests operate on the loaded projects. Therefore, projects should be specified on the command line or should be loaded by the session manager. Depending on the projects size, these tests might be quite time consuming and are therefore candidates for nightly tests. Suggested test projects are qtcreator.pro, qtbase.pro. Change-Id: I550776b3d56acb17ab337da068d409bfc21e997a Reviewed-by: David Schulz <david.schulz@digia.com>
* CppEditor: Fix insert position of AddIncludeForUndefinedIdentifierLorenz Haas2013-04-101-0/+5
| | | | | | | | | If there are no includes, add new include at the top of file but skip possible comments at the beginning. Task-number: QTCREATORBUG-8799 Change-Id: Ie2be644f6ad0a948cf3d8700efa00087753d9863 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* fix include style relating to cplusplus librariesOswald Buddenhagen2013-04-031-1/+2
| | | | | | | | | | | ... and adjust INCLUDEPATH accordingly. while i'm at messing with include statements, also re-order the include blocks according to policy and sort them within bigger blocks. Change-Id: I7762abfd7c4ecf59432b99db2f424e4fa25733a5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* CppEditor: Simplify testing of typical use casesNikolai Kosjar2013-03-201-5/+7
| | | | | Change-Id: I5b8674fc6d4d135c995ed7978fe59ff3ef1a6a09 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* C++: Let "Add Definition" quick fix work with free function declarationsNikolai Kosjar2013-03-041-0/+1
| | | | | | | | It was restricted to member functions declarations, but works well with free functions, too. Change-Id: I8513e67e426185e7e08aebc2f1b5bfd08f79887f Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* C++: Tests: Add basic tests for quick fix InsertDefFromDeclNikolai Kosjar2013-03-041-0/+7
| | | | | Change-Id: I668754607c9c1764b9387a7899994c88c17886cd Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* C++: Improved automatic Doxygen comment blocks with CppStyleKnut Petter Svendsen2013-02-211-0/+6
| | | | | | | | | Added support for CppStyle for Doxygen block generation when hitting enter after a /// or //! comment. Previously only QtStyle and JavaStyle was supported. Change-Id: Ib010e55ba602127a6842ba02034fbe85994ee2bd Reviewed-by: David Schulz <david.schulz@digia.com>
* C++: Tests: Add basic tests for doxygen commentsNikolai Kosjar2013-02-191-1/+6
| | | | | Change-Id: I45e72e4d86f1cfb6798985cfddc073c524672313 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* C++: Pass only reasonable ASTs to pointer declaration formatterNikolai Kosjar2013-02-141-0/+1
| | | | | Change-Id: Ide829a8084d3fef79f252dc7724bd90ce8ebba04 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* C++: Refactor quick fixesNikolai Kosjar2013-02-141-12/+12
| | | | | | | | - Put declarations into quickfixes.h to simplify testing - Give the factories more meaningful names Change-Id: If74c29a8c17819d5369ffa3df94d146b14e53af9 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* Editor: Refactor Open Link in Next Split.David Schulz2013-02-141-0/+1
| | | | | | | | | | | Cleanup code and added shortcuts and menu entries for - open header/source in next split - follow symbol under cursor in next split - open declaration/definition in next split Change-Id: I2c4347749d26669d88b7c2968f30f60710f442b1 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* C++: Improve GetterSetter quick fixNikolai Kosjar2013-02-011-1/+12
| | | | | | | | | | | | | | | | | | | - Prefix getter name with 'get' if there is a conflict between the getter name and the member variable name. - When possible, use base name of member variable as setter parameter name instead of 'value'. - Generate static getters/setters for static members. - Fix case "class C { char *@s; };" - the quick fix was not offered for this particular cursor position (right after pointer sign). - Fix case "class C { char c, *@s; };" - the quick fix was done for the wrong type (char instead of char *). - Do not generate a setter for const member variables. - Do not get triggered on member functions and arrays. - Do not offer the quick fix if there is already a member with the getter or setter name we would generate. Change-Id: I4530467518ea0bf6368e47eb32d5faafbf8cd928 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp src/plugins/qmldesigner/designercore/include/widgetqueryview.h src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qnx/bardescriptormagicmatcher.h src/plugins/qt4projectmanager/profilekeywords.cpp src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | CppEditor: quick fix to generate getters and settersErik Verbruggen2013-01-241-0/+5
|/ | | | | | | | | | This does not take namespaces on the implementation side into account and does not properly position/indent things. Task-number: QTCREATORBUG-1890 Change-Id: I779d12fefc79521bce38361729d4f66dada71147 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Added default implementation for IEditorFactory::open().Konstantin Tokarev2012-04-181-1/+0
| | | | | | | This change allows to avoid massive code duplication along editors. Change-Id: Ifdc6ae4b44ab399d34193ab8dddfa1f76d65ad11 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Added TextEditor commands FollowSymbol and JumpToFile.Konstantin Tokarev2012-03-281-1/+0
| | | | | | | | | | Most of editors have "jump to file" or "follow symbol" actions. This patch reduces amount of related boilerplate code. New actions are made optional to prevent shortcut clash (both use F2). Change-Id: I2af580ed9d6789df25f4487ba001f3b83887c504 Reviewed-by: hjk <qthjk@ovi.com>
* Port Qt Creator to the new plugin system of Qt 5.Friedemann Kleint2012-03-021-0/+1
| | | | | | | | | | - Add Q_PLUGIN_METADATA for Qt 5, use Q_EXPORT_PLUGIN for Qt 4. - Generate the Json files for Qt 5 from the pluginspec files by using a XSLT sheet. Change-Id: I8653f182ae7d61615971c093df10b84fb06c2172 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Rename IFile->IDocument and FileManager->DocumentManagerEike Ziller2012-02-201-1/+1
| | | | | | | | And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-3/+3
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* s/error_message/errorMessage/ghjk2011-09-211-1/+1
| | | | | | Change-Id: I9a91028fb7c00a20843d99ece659ec8b7acc7710 Reviewed-on: http://codereview.qt-project.org/5312 Reviewed-by: hjk <qthjk@ovi.com>
* use Core::Id for IEditorFactory::idhjk2011-09-081-5/+4
| | | | | | Change-Id: Iefd67a0461d9016b8ba0f3371df7ec6d42e188c5 Reviewed-on: http://codereview.qt-project.org/4321 Reviewed-by: hjk <qthjk@ovi.com>
* New code assist APILeandro Melo2011-05-181-5/+3
| | | | | | | | | | | This is a re-work of our completion engine. Primary goals are: - Allow the computation to run in a separate thread so the GUI is not locked. - Support a model-based approach. QStrings are still needed (filtering, etc), but internal structures are free to use more efficient representations. - Unifiy all kinds of *assist* into a more reusable and extensible framework. - Remove unnecessary dependencies on the text editor so we have more generic and easily "plugable" components (still things to be resolved).
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Update license.hjk2011-04-131-14/+13
|
* texteditor: merge ITextEditable into ITextEditorhjk2011-02-221-5/+5
| | | | | | | | rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor rename BaseTextEditor{,Widget} subclasses rename editableInterface->editorInterface rename createEditableInterface->createEditor minor cleanups after renamings
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* License headers.con2010-12-171-7/+11
|
* Create type hierarchy widget; Refactor code from C++ hover into a simple ↵Leandro Melo2010-08-131-0/+3
| | | | | | reusable model. Hierarchy information removed from tooltips now.
* Force an update of the current editor.Roberto Raggi2010-08-031-0/+1
|
* Add flag to IPlugin::aboutToShutdown that allows asynchronous shutdown.con2010-07-131-1/+1
| | | | | | | If a plugin requests asyncronous shutdown, the shutdown sequence does not continue to deleting the plugins before it has sent a asynchronousShutdownFinished signal. During that time an event loop is running.
* CppEditor: Beautify names in APIKai Koehne2010-07-131-4/+4
| | | | Rename method[Overview] to outline
* Reimplemented the C++ quick fix operations using TextEditor::QuickFixOperation.Roberto Raggi2010-06-031-3/+3
|
* Rename IPlugin::shutdown --> IPlugin::aboutToShutdowncon2010-04-281-1/+1
| | | | Discussed-with: hjk
* Long live the king!hjk2010-03-051-1/+1
|
* Make method naming more consistent.Tobias Hunger2010-01-071-2/+2
| | | | | | | | | | | | * Use id() for methods returning a string used to represent some type of object. * Use displayName() for strings that are meant to be user visible. * Quieten some warnings while touching the files anyway. * Move Factories to their products in the plugins where that was not done before. Reviewed-by: dt
* Show the quickfixes in the context menu.Roberto Raggi2009-11-231-0/+5
|
* Ensure the document is updated before invoking a quickfix.Roberto Raggi2009-11-181-0/+6
|
* Code model: Update on changes from the versioning system.Friedemann Kleint2009-11-111-0/+1
| | | | | | | | | Add changed signals to IVersionControl and VCSManager and wire them to the update methods. Add a menu action for manually updating. Improved version of reverted 7aa24116935249a840e1350a6f8de73bc794fb09. Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Revert "Code model: Update on changes from the versioning system."con2009-11-101-3/+2
| | | | | | | | This reverts commit 7aa24116935249a840e1350a6f8de73bc794fb09. It breaks the code model updates completely. So reverting this change until we have the right thing. Reviewed-by: Roberto Raggi
* Code model: Update on changes from the versioning system.Friedemann Kleint2009-11-091-2/+3
| | | | | | | | | | | Add state logic to CppCodeModelManagerInterface, making it aware whether an indexer is running, protect the update methods from another invocation while running. Add changed signals to IVersionControl and VCSManager and wire them to the update methods. Add a menu action for manually updating. Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: con <qtc-committer@nokia.com>
* Disable the find usage and symbol renaming while indexing is done.con2009-11-041-3/+8
| | | | Reviewed-by: Roberto Raggi