summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cpprefactoringchanges.cpp
Commit message (Collapse)AuthorAgeFilesLines
* CppEditor: Remove WorkingCopy::contains()Christian Kandeler2023-05-031-2/+2
| | | | | | | Most uses involved a double look-up. Change-Id: Ifeb62ea2361222ed0faad749f44a59735c8d6930 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppEditor: Use FilePath for ProjectPath::m_sourceFileshjk2023-01-111-1/+1
| | | | | | | ... and update using code. Change-Id: I682727a4b2982dba388e7cc7b9488225748d591f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CppEditor: More migration to FilePathhjk2022-12-141-1/+1
| | | | | Change-Id: I261b713671e00bb567f61b4ee5ecf6fa83473bff Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CppEditor: Remove WorkingCopy::{revision,source}(QString) overloadshjk2022-11-251-16/+15
| | | | | | | ... and fix fallout. Change-Id: I3748d0f90345c0d92321d465abfc3d324ee49a0c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: filepathify actualTabSettingsDavid Schulz2022-02-041-4/+2
| | | | | | Change-Id: I4b08b96d56bfeed0348d82bb96ff70d5f8ad583b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* LanguageClient: Indent code coming from the serverChristian Kandeler2022-02-031-58/+47
| | | | | | | | | | | ... if the client implementation requests it. The server is not necessarily aware of our indentation style, so we might have to apply it to the newly inserted code. Change-Id: I43518575c7124568da42be3b04a28d7f352f6dc2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Merge CppTools into CppEditorChristian Kandeler2021-09-011-0/+286
| | | | | | | | | | | | | | | | There was no proper separation of responsibilities between these plugins. In particular, CppTools had lots of editor-related functionality, so it's not clear why it was separated out in the first place. In fact, for a lot of code, it seemed quite arbitrary where it was put (just one example: switchHeaderSource() was in CppTools, wheras switchDeclarationDefinition() was in CppEditor). Merging the plugins will enable us to get rid of various convoluted pseudo-abstractions that were only introduced to keep up the artificial separation. Change-Id: Iafc3bce625b4794f6d4aa03df6cddc7f2d26716a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* C++: added quickfix to insert a method definition.Erik Verbruggen2010-09-301-217/+0
| | | | Reviewed-by: Christian Kamm
* C++ indenter: Separate indent into logical indent and padding.Christian Kamm2010-09-131-1/+4
|
* C++: fixed completion in braceless statements following a control statement.Erik Verbruggen2010-09-091-4/+3
| | | | | | | | | | | - Changed generator to generate: - Changed AST::lastToken to return 1 if there is none - Changed Bind.cpp to set the scope of the block following a control statement to extend upto (and not including) the first token after the block. So basically, including any whitespace after the control statement. Reviewed-by: Roberto Raggi
* CppEditor: Simplify CppRefactoringChanges classKai Koehne2010-08-161-14/+2
| | | | Remove unneeded methods from API.
* QuickFix: Move helpers from QuickFixData to RefactoringFile.Christian Kamm2010-08-131-0/+8
| | | | | | Makes them easy to use everywhere. Also when calling QuickFixData::textOf and friends, it wasn't really clear which file they would run on.
* QuickFix: Introduce CppRefactoringFile.Christian Kamm2010-08-131-9/+128
|
* QuickFix: Simplify getting a Document for a C++ refactoring.Christian Kamm2010-08-121-23/+3
|
* Indenters: Move style setup into the QtStyleCodeFormatter constructors.Christian Kamm2010-08-121-1/+1
| | | | | This makes sure styles are consistent for the editor and the quick fix engine.
* QuickFix: Migrate to a nicer API for cross-file quick fixes.Christian Kamm2010-08-121-7/+5
|
* QuickFix: Clean up RefactoringChanges and add missing functionality.Christian Kamm2010-08-121-0/+25
| | | | | | | * Can change files without opening an editor. * Can open an editor without changing a file. * Default to reindenting new files. * Allow reading a file temporarily to access document and text.
* Share the LookupContext.Roberto Raggi2010-07-191-6/+15
|
* Store the time stamp if necessary.Roberto Raggi2010-06-221-1/+15
|
* Renamed CppRefactoringChanges::parsedDocumentForFile().Roberto Raggi2010-06-221-14/+11
|
* Moved CppRefactoringChanges.Roberto Raggi2010-06-221-0/+77