- 14 Dec, 2017 1 commit
-
-
Ivan Donchevskii authored
Allows to follow outside of current TU. Change-Id: Ieea2fd72bfdf6d60a988b40efcf2f41c5a71d045 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 24 Nov, 2017 1 commit
-
-
Orgad Shaneh authored
The extra macros in the config files are being read in CppModelManager::internalDefinedMacros(), but they also affect the language features in ProjectPart::updateLanguageFeatures(). Task-number: QTCREATORBUG-1478 Change-Id: Ic197b0b7d4cc6e6a74637da0c710b0630daae25c Reviewed-by:
Eike Ziller <eike.ziller@qt.io> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 20 Nov, 2017 1 commit
-
-
Ivan Donchevskii authored
Provide refactoring engine for ClangCodeModel and implement missing methods. Change-Id: If5c913e0c5a7941cd2ced54d0fcfa4d625eadc93 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 25 Oct, 2017 1 commit
-
-
Ivan Donchevskii authored
Has the same limitations as findUsages. Change-Id: I8de4df2ecbfd8a4f3073666994398dc43af0d73c Reviewed-by:
Marco Bubke <marco.bubke@qt.io>
-
- 24 Oct, 2017 1 commit
-
-
Ivan Donchevskii authored
Functionality is limited to the abilities of current index which is not updated and is generated only at project open. Search box temporarily doesn't allow to "Search again". Change-Id: Id1047f27ad0aafc901f06aa51ad38ceab95eaebb Reviewed-by:
Marco Bubke <marco.bubke@qt.io> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 17 Oct, 2017 1 commit
-
-
Ivan Donchevskii authored
Make model manager able to select the most functional refactoring engine from the available ones. Change-Id: I74031c910706fd694a0a7def022531501f1ea005 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 22 Sep, 2017 2 commits
-
-
Ivan Donchevskii authored
Move CppRefactoringEngine to CppTools and builtin member ownership to model manager. Change-Id: I3e72308559fd2928229f9f25d4dd09beb3f56c34 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
Ivan Donchevskii authored
Move FollowSymbolUnderCursor to CppTools and builtin member ownership to internal model manager. Change-Id: I97a4f744ec1709ccc0b34fb67b58680973ef566f Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 15 Sep, 2017 1 commit
-
-
Ivan Donchevskii authored
Create an interface to get the ability to use another FollowSymbol implementation Change-Id: I5802f62523ff3ee47b8a14e487adf43edcb6c9b1 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 14 Sep, 2017 1 commit
-
-
Marco Bubke authored
The old code model expected the macros as C++ formatted text ("#define Foo 42) but newer targets like the Clang codemodel expect key value arguments like "-DFoo=42". So instead of parsing the text again and again we use an abstract data description. Task-number: QTCREATORBUG-17915 Change-Id: I0179fd13c48a581e91ee79bba9d42d501c26f19f Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 16 Mar, 2017 1 commit
-
-
Nikolai Kosjar authored
...so that only the built-in code model parser sees them, but not the clang code model, which has problems with them. The specific case here is due to definition of __int32: winnt.h:3077:1: error: functions that differ only in their return type cannot be overloaded intrin.h:357:31: note: previous declaration is here While moving, drop __MSVCRT__, which seems to be a predefined macro of ancient MSVC versions, see https://sourceforge.net/p/mpg123/mailman/mpg123-devel/?viewmonth=201010&viewday=24 Change-Id: I4b8c49ed4bdc942a2190dbae3c260f3a1a8078a4 Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 07 Mar, 2017 1 commit
-
-
Nikolai Kosjar authored
This reverts commit 05942b63 because it breaks refactoring, e.g. Q_PROPERTY generators. Change-Id: I9a14b912ba72663f08ea99e7e066d824b18da4b0 Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- 20 Feb, 2017 1 commit
-
-
Nikolai Kosjar authored
${AnyProject}::updateCppCodeModel() did two potentially not that cheap operations in the ui thread: (1) Querying the MimeDatabase for the mime type for the source files of the project. In 99.9% of the cases no files need to be read for this as the file extension will resolve the type. The expensiveness comes from the sheer number of files that can occur. (2) Calling compilers with the "(sub)project's compiler command line" to determine the macros. While the caches avoid redundant calls, the number of the unique compiler calls makes this still a ui-freezing experience. These two operations are moved into a worker thread. For this, the expensive compiler calls are encapsulated in thread safe lambdas ("runners") in order to keep the "mutexed" data minimal. The original API calls of the toolchains are implemented in terms of the runners. While adapting the project managers, remove also the calls to setProjectLanguage(). These are redundant because all of the project managers already set a proper value in the constructor. Also, currently there is no need (client) to report back detection of C sources in project parts. This also keeps CppProjectUpdater simple. There is still room for improvement: * Run the compiler calls in parallel instead of sequence. * Ensure that the mime type for a file is determined exactly once. Change-Id: I2efc4e132ee88e3c8f264012ec8fafe3d86c404f Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 30 Jan, 2017 1 commit
-
-
Ulf Hermann authored
We don't need two IDs for C++ and the QmlJS ID should look the same as as the others. Change-Id: Ib9747f6b36a90bb652951d85eec69666615670c4 Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 26 Jan, 2017 1 commit
-
-
Nikolai Kosjar authored
As long as there are project parts for a source file, always determine the best project part, instead of trying to stick to the previous one. This ensures the best project part at all times and simplifies the code. Change-Id: I25ea3eb43a5a3e6d93688d4b8965f596dc9ae22b Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- 16 Dec, 2016 1 commit
-
-
Nikolai Kosjar authored
Change-Id: I010709c866291bf59c27f4a05765e1ab0efd28af Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- 13 Dec, 2016 2 commits
-
-
Nikolai Kosjar authored
Change-Id: I5d0db45d9fdb624bb6cc55d7f04061d553f13bce Reviewed-by:
David Schulz <david.schulz@qt.io>
-
Nikolai Kosjar authored
...instead, use the latest we support. Change-Id: I7e7768bc4bc31de1fe0f441c03f3ab5d677d76e8 Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- 08 Dec, 2016 1 commit
-
-
Nikolai Kosjar authored
These are remnants of the time when we had only one snapshot. Change-Id: I6ff4db645d1065a0ef195834890e0774e2e2c60e Reviewed-by:
David Schulz <david.schulz@qt.io> Reviewed-by:
Erik Verbruggen <erik.verbruggen@qt.io>
-
- 06 Dec, 2016 1 commit
-
-
Nikolai Kosjar authored
No need to require the project managers to do this. Also, it is easy to forget. Change-Id: I96f7a5e5547418678af9653e5753c372f0880e5a Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- 31 Aug, 2016 1 commit
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-16712 Change-Id: I92db8cbcac9669cbd5e4ee5f7ef6f613797c753a Reviewed-by:
David Schulz <david.schulz@qt.io> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 16 Aug, 2016 1 commit
-
-
Nikolai Kosjar authored
Change-Id: I71d67f1273bad025b8dff45b3903b458f5cda2a2 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 04 Aug, 2016 1 commit
-
-
Marco Bubke authored
Change-Id: I2e3f36f810276da3f8dc7dcc587b06f8edb586d3 GPush-Base: d02f51b48fc752fddcdef6dcb32b3f7f6c0195a3 Reviewed-by:
Tim Jenssen <tim.jenssen@qt.io>
-
- 28 Jun, 2016 1 commit
-
-
Nikolai Kosjar authored
...and not all projects parts of a project if it is closed. Re-produce with: open a project A with subdirs (e.g. qtcreator.pro) open a subdir project from project A (e.g. cppeditor.pro) close project A --> The project part representing the subdir is announced as removed although it is still open. The clang code model was the only affected user - affected translation units were not parsed/updated anymore ("ERROR: ProjectPartDoesNotExistMessage"). Change-Id: Ia79341ce201e3b4aefff9f597920dbc6f7d67634 Reviewed-by:
David Schulz <david.schulz@theqtcompany.com>
-
- 23 May, 2016 1 commit
-
-
Orgad Shaneh authored
Mostly done by clazy. Change-Id: I0fbbbe1a2d28b79bcb83093d608bca6e2f927ebb Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- 03 May, 2016 1 commit
-
-
Nikolai Kosjar authored
...in file qbsproject.cpp, line 940. The assert can be triggered with e.g.: 1. Load a bigger qbs project, e.g. qtcreator.qbs. 2. Trigger project build as soon as possible. 3. Cancel the "Parsing C/C++" operation. 4. Wait until the build finished and the assert occurs. This happens because CppModelManager::updateProjectInfo() since commit 536ccc8a CppTools: Fix incompletely indexed project will check whether the previous indexer run was canceled or not. If it was canceled, it will trigger a full-reindexing of the project. Updating the compiler call data is a special case and it should never trigger an indexing operation, so introduce a dedicated update function for this case. Change-Id: I456945ccf2bf697aaeada572ed87f3acb21a5eaf Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by:
Eike Ziller <eike.ziller@qt.io>
-
- 25 Apr, 2016 1 commit
-
-
Nikolai Kosjar authored
Use case to reproduce: 1. Open some bigger project, e.g. qtcreator.pro 2. As soon as "Parsing C/C++ files" is reported, add a character to qmake's additional arguments in project mode (indexing should not be finished at this point). 3. The indexing gets canceled. ==> ...but reindexing is not triggered. Fix by checking whether the future was canceled. Task-number: QTCREATORBUG-16134 Change-Id: I520c6a64a6adc1cb04cafb5e0aa56c8bf41d7b14 Reviewed-by:
Christian Stenger <christian.stenger@qt.io>
-
- 24 Mar, 2016 1 commit
-
-
Nikita Baryshnikov authored
in places where we do not need it Change-Id: Ibf35f8144da859fffa3e0a7b6bb262284ec2292a Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 19 Feb, 2016 1 commit
-
-
Orgad Shaneh authored
Without this, too many threads are spawned, and loading a project takes forever. Change-Id: I3c22557ddd7bfb0c70f7b089c276432e3b003097 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 12 Feb, 2016 1 commit
-
-
Nikolai Kosjar authored
Affected functionality was, among others: * Getting the correct project part when opening a file * Fallback project part (merged defines/includes) not up to date * Fallback for "Switch Header/Source" not up to date In the early days sessions switching was probably implemented by "close all projects of session X, open all projects of session Y". That's not the case anymore today. Change-Id: I4c6a80e2eb219615d3ea6fcf07be7c05072c8832 Reviewed-by:
Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
- 19 Jan, 2016 1 commit
-
-
Tobias Hunger authored
* Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
- 13 Jan, 2016 1 commit
-
-
Marco Bubke authored
Also extracting inline HeaderPath class and change projects list in vector because the size is larger than a pointer. Change-Id: I885fdff3fe9bccc877634d1615249755f5b674fd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 16 Dec, 2015 1 commit
-
-
Nikolai Kosjar authored
This removes also the need to close editor documents. Change-Id: I96c68105bceb37841053f3dbd8a264e059a02cb8 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- 15 Dec, 2015 1 commit
-
-
Nikolai Kosjar authored
...so the built-in parser can handle them. Change-Id: Iff69638f8939c3c4dced99699a3357dd94b23c71 Task-number: QTCREATORBUG-15431 Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 01 Dec, 2015 1 commit
-
-
Marco Bubke authored
We reparse first the current and then the visible translation units before we reparse all other units. The signals connections are queued to wait for the visible editor update. Change-Id: I5e2b8bc80568450268ca24e26720b3f5af640995 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 16 Nov, 2015 1 commit
-
-
Nikolai Kosjar authored
Related to commit c47079f97f7d42db0c581525a2ce6fddbc0995f2 Clang: Activate the code model with a check box Change-Id: Ief11768ba0dd27788032e2dd3ad9b7ae39a8f52b Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- 09 Nov, 2015 1 commit
-
-
Nikolai Kosjar authored
...when acessing m_headerPaths, m_projectFiles or m_definedMacros from different threads. ensureUpdated() locked the mutex before writing the variables, but reading them happened with an unlocked mutex. Change-Id: I4951fd58f1939e4e50534a018dd600004789668e Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 06 Nov, 2015 1 commit
-
-
Nikolai Kosjar authored
Provide the language option (e.g. "-x c++-header") when registering a translation unit for the editor. Task-number: QTCREATORBUG-14787 Change-Id: Ie06f9fdab302f1b21ba72cdb65b6aabf9f7bc04c Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- 14 Oct, 2015 1 commit
-
-
Nikolai Kosjar authored
...with the clang code model. In updateProjectInfo() we lock the project mutex and emit a signal. However, the correspondig slot in the clang code model will call back into a function that needs to lock the mutex, too: CppTools::CppModelManager::workingCopy // dead locks here CppTools::BaseEditorDocumentParser::InMemoryInfo::InMemoryInfo ClangCodeModel::Internal::ClangEditorDocumentProcessor::run ClangCodeModel::Internal::ModelManagerSupportClang::unregisterTranslationUnitsWithProjectParts ClangCodeModel::Internal::ModelManagerSupportClang::onProjectPartsRemoved ... CppTools::CppModelManager::projectPartsRemoved CppTools::CppModelManager::updateProjectInfo // emits here Fixed by emitting the signal after releasing the mutex. Change-Id: Id3f3cd22b0604f343ada56ea13c26f0dc1a75bd6 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- 12 Oct, 2015 1 commit
-
-
Nikolai Kosjar authored
Finding the class definition for a forward declaration or finding the function definition from its declaration is mostly determined by the file iteration order. Documents with the most common path prefix are checked first. This works fine as long as the files of your project have a common ancestor. If that's not the case, FollowSymbol might take you to the definition within another project. Fix that issue by considering the project part id when constructing the file iteration order. Since the cached file iteration order now depends on the projects, ensure to clear it if projects are added, changed or removed. Task-number: QTCREATORBUG-15116 Change-Id: I529166bac363959c9fee0b946747fd0370a88809 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-