- Oct 01, 2013
-
-
Erik Verbruggen authored
If two files from different (sub-)projects include the same header file, and the defined macros differ for both files, the header file will be parsed with only the appropriate macros for the including file. Task-number: QTCREATORBUG-9802 Task-number: QTCREATORBUG-1249 Change-Id: I560490afa287b3bb1e863bce1bb4f57af36ad56e Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Sep 13, 2013
-
-
Erik Verbruggen authored
The model-manager now supports multiple code models for semantic highlighting and code completion, and will choose one based on the mime-type of the editor. The settings page is currently disabled. It will get enabled when a second plug-in lands that has a ModelManagerSupport class. Change-Id: I10023f52322ed6860397da15dba1c231e80e6517 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Sep 11, 2013
-
-
Erik Verbruggen authored
These not only take less space than UTF-16 encoded QStrings, but due to the caching in the CppEditorSupport also take less time to build. This patch also fixes a number of possible encoding issues, where files and constant strings were (falsely) assumed to be UTF-8. Change-Id: Ib6f91c9a94ebed5b5dfbd4eb2998825c62c72784 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- Sep 10, 2013
-
-
Erik Verbruggen authored
Both semantic highlighting and code-completion go hand-in-hand, so now the ModelManagerSupport class acts as a "factory" for the model manager. Depending on the mime-type of the document in the editor, the model manager will return the appropriate highlighter or code-completion engine. If none is registered, the built-in fall-back is used. Change-Id: I3e5dbb0e3b58e077dd5eda9aecb2ce5d448ac0b8 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Erik Verbruggen authored
When a file is not part of any other project part, this project part can be used to get at least some compiler flags, defines, etc. to use. This can happen when either a file outside a project is opened, or when the project description is incomplete. Change-Id: I5d595fae7195e8b61dbad14368b6cae9eb15c21b Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Sep 09, 2013
-
-
Erik Verbruggen authored
This is step 1 of 2 for merging the various provider factories into a single class. Merging has the advantage that selecting based on editor (content) mime-type only has to select one class, instead of re-doing the selection for each class separately. Change-Id: I11f815151bd4769ae6028b636793d6a80d02e202 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Leena Miettinen authored
Remove \briefs from function descriptions and use standard wording in them. Use standard wording for \enum. Replace \param with \a. Change-Id: If429b6fc67ef6d1313c18f6111aa84f9c996189f Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Erik Verbruggen authored
And not from the global object pool. This way, the editors that have different highlighters for various language dialects, or editors that support multiple languages in a single editor, can decide themselves on what CompletionAssistProvider to provide. Change-Id: Ieebc4a8e7b3de6470fdb8103035aa3b8b2ba6598 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Sep 05, 2013
-
-
hjk authored
Change-Id: I370f72fcf7a24216ee189979ce6b5c8bfc5f4140 Reviewed-by:
David Schulz <david.schulz@digia.com>
-
- Sep 04, 2013
-
-
hjk authored
Change-Id: I72993fda50ad70ad2d7c2f449923ac6e34b9e737 Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com>
-
- Sep 02, 2013
-
-
hjk authored
Change-Id: I4af8793ca69a3af9e99baeb7c31dad3864266f91 Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com>
-
- Aug 19, 2013
-
-
Erik Verbruggen authored
Change-Id: I38cc0e55348cac0245d2ab8f3e39c68de76e3e6d Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Aug 13, 2013
-
-
Nikolai Kosjar authored
(a) The code model manager figures out by itself which files were added or removed from the project. If this was done successfully, check also the timestamp of the common files and reindex if necessary. (b) A full reindexing is only triggered if the project configuration changes (defines, includes, framework paths). (c) If project files were removed, the garbage collector is called. Task-number: QTCREATORBUG-9730 Change-Id: Ib855614b070880576233a3525813617c967a72f3 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
- Aug 08, 2013
-
-
Nikolai Kosjar authored
...except the configuration file if no projects are open. For this case there is no need to keep the configuration file around. Task-number: QTCREATORBUG-9829 Change-Id: I51b01b30c17cbc1ced491ef2c47c338dae6ed983 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Currently GC() is invoked if - 5 CppEditors were closed or the last CppEditor was closed - a project is about to be removed - a session is about to be unloaded Thus, for the following use cases, too much GC() calls (can) happen: - File > Close All - Close All Projects and Editors - Changing the session Fixed by introducing a timer. Change-Id: I9c984d9de735fc8c6ee77a518e9fb5b63dba5881 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Aug 01, 2013
-
-
Tobias Hunger authored
Use it instead of retrieving this information from the document. Change-Id: I809fcb2daf59021cf503c371a5d40d75d7448796 Reviewed-by:
Tobias Hunger <tobias.hunger@digia.com>
-
- Jul 31, 2013
-
-
Nikolai Kosjar authored
* Const correctness * Better variable names * Sort order of includes and forward declarations * Comment fixes * Cosmetic/Whitespace changes Change-Id: Ieb137266ac7eddedb00c37f8b2cc8677d67e4bdd Reviewed-by:
David Schulz <david.schulz@digia.com>
-
- Jul 25, 2013
-
-
Nikolai Kosjar authored
Change-Id: Ic7e634e4249fb64edbc2daceb65ec8e9b5f0f8b9 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Aurindam Jana <aurindam.jana@digia.com>
-
- Jul 22, 2013
-
-
Nikolai Kosjar authored
This introduces an API change for the project managers. Those are not expected to call updateSourceFiles() anymore. Task-number: QTCREATORBUG-9581 Change-Id: I77befd29fb851c9acf87204d571da00183c9cd05 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Jul 17, 2013
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-9828 Change-Id: Ie0ef9757cedb772702e49542b58d5b589506aa9e Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
There is no need to have that logic in CppEditorWidget. The CppModelManager knows how many editors are open and can therefore call GC() by itself. Change-Id: I2ed4051ad7b8c87615014d73e29291027d49d2ab Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Jul 09, 2013
-
-
Eike Ziller authored
That is what it actually is, wrt how Qt API calls it. Change-Id: Ied02055debf6aad75556b0d9d22e8ba2f72be555 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- Jul 02, 2013
-
-
Erik Verbruggen authored
When the editor is closed, the CppEditorSupport waits for the highlighting and semantic info futures to finish. These futures might access the CppEditorSupport through the CppModelManager, causing a deadlock on the m_editorSupportMutex. Change-Id: Ifeb3864ed3bc2666d83607ef50d7bfee8f3d118f Reviewed-by:
Eike Ziller <eike.ziller@digia.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Jun 28, 2013
-
-
Nikolai Kosjar authored
When a second project was opened the snapshot was reset. That resulted in all kinds of problems since from then on the code model effectively was not aware of the files of the first project. The regression was introduced by commit a0d6df7b. Change-Id: I1ccc9de68177205b49a4ba8ead2bc8abe4592b32 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
- Jun 24, 2013
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-9597 Change-Id: I726a818c7d4af35dcb4863f74b08cd639a189bdd Reviewed-by:
Daniel Teske <daniel.teske@digia.com>
-
- Jun 20, 2013
-
-
Leena Miettinen authored
QDoc does some magic with the \class and \namespaces and \brief commands, so the following wording must be used: "The xxx class yyy ..." Change-Id: Id231f30e8464898b776888d5423523de404aae34 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- Jun 17, 2013
-
-
Erik Verbruggen authored
Task-number: QTCREATORBUG-9404 Change-Id: I732b729e64b065b4ac75c547d9370cbc64918a31 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Jun 03, 2013
-
-
Erik Verbruggen authored
Moved it from the handleIfDefDirective to the pre-defined macros, so that #if defined() can also see it. Task-number: QTCREATORBUG-9322 Change-Id: Icbecad5c885dd2374b559969c99631c3ddc73844 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- May 24, 2013
-
-
Erik Verbruggen authored
Change-Id: Ie7bd3b36139ab7fac1186cefa7222dff7277eb53 Reviewed-by:
hjk <hjk121@nokiamail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Apr 26, 2013
-
-
Erik Verbruggen authored
Change-Id: I399d667a1fccb376fadbd6ab8fbba243e86d8f4b Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Erik Verbruggen authored
Change-Id: I59fdb898e270af0fcc18e79ae922e119504ef10e Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Erik Verbruggen authored
- Moved document update handling into CppTools. - Moved semantic info calculation into CppTools. - Moved semantic highlighting into CppTools. Change-Id: I253861bf074a64b1f657f7a4a8e6583871b5285f Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Nikolai Kosjar authored
After processing configurationFileName() the first time, it was added to the already seen files (m_included). Thus, on parsing further files, it was ignored and with that all the project defines. Task-number: QTCREATORBUG-9107 Change-Id: Ia4817dfa3b30ed27d142f7f3eeb6f099d0653441 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Apr 22, 2013
-
-
Erik Verbruggen authored
This operation is quite costly if a lot of files are involved, and in case of exiting Creator, it's also useless. Change-Id: I97d178d47a3a2f6b214f7ebc45c871edd26b8286 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- Apr 16, 2013
-
-
hjk authored
Change-Id: Ib501bbe16548b194ff5028a1b3ab74c5f0e3230d Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Erik Verbruggen authored
System headers and other file which are not explicitly mentioned in the project must be reparsed when the project changes. Task-number: QTCREATORBUG-9056 Change-Id: I32f1206d241a078a4d9b15fac5813f365a1ba303 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Apr 11, 2013
-
-
Erik Verbruggen authored
When the preprocessor is asked to process a file which it has already seen before, it can skip it, but it still has to add the file to the list of included files for the current document. Task-number: QTCREATORBUG-9107 Change-Id: I30cac61c1da20da7fe925168ecccb429584e9746 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Apr 10, 2013
-
-
Friedemann Kleint authored
Ran script to remove inludes on a trial-and-error basis and manually corrected it. Change-Id: Ic8464ea084ca1ab401e9f4a7d0183b92b4038902 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Apr 09, 2013
-
-
Erik Verbruggen authored
Change-Id: Iacf8cb12dd623c908538d80ee2595297a9bdde71 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Apr 08, 2013
-
-
Tobias Hunger authored
There were quite a few classes using CPlusPlus namespace in the CppTools plugin. Rename them and do some other small namespace related coding style fixups. Change-Id: I093fc1f3fc394fd9923e3f18d5f66522e288f21d Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-