- 20 Apr, 2015 1 commit
-
-
Orgad Shaneh authored
Change-Id: Ide74482b133dd1fec40a725d9aa81bd749385f37 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 16 Jan, 2015 1 commit
-
-
Eike Ziller authored
Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- 23 Oct, 2014 1 commit
-
-
Francois Ferrand authored
The messages were computed, but not added to the document. Change-Id: Ibeea802cf9f291ad14b2fe2e9d2a285c927a4449 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- 09 Oct, 2014 1 commit
-
-
Eike Ziller authored
Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- 25 Aug, 2014 1 commit
-
-
Nikolai Kosjar authored
This mainly takes CppEditorSupport apart. * Parsing is now invoked by CPPEditorDocument itself by listening to QTextDocument::contentsChanged(). * Upon construction and destruction CPPEditorDocument creates and deletes an EditorDocumentHandle for (un)registration in the model manager. This handle provides everything to generate the working copy and to access the editor document processor. * A CPPEditorDocument owns a BaseEditorDocumentProcessor instance that controls parsing, semantic info recalculation and the semantic highlighting for the document. This is more or less what is left from CppEditorSupport and can be considered as the backend of a CPPEditorDocument. CPPEditorDocument itself is quite small. * BuiltinEditorDocumentProcessor and ClangEditorDocumentProcessor derive from BaseEditorDocumentProcessor and implement the gaps. * Since the semantic info calculation was bound to the widget, it also calculated the local uses, which depend on the cursor position. This calculation got moved into the extracted class UseSeletionsUpdater in the cppeditor plugin, which is run once the cursor position changes or the semantic info document is updated. * Some more logic got extracted: - SemanticInfoUpdater (logic was in CppEditorSupport) - SemanticHighlighter (logic was in CppEditorSupport) * The *Parser and *Processor classes can be easily accessed by the static function get(). * CppHighlightingSupport is gone since it turned out to be useless. * The editor dependency in CompletionAssistProviders is gone since we actually only need the file path now. Change-Id: I49d3a7bd138c5ed9620123e34480772535156508 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 24 Jun, 2014 1 commit
-
-
Orgad Shaneh authored
Change-Id: I9bfed2023624c818c0f35f24476693cffeaf2bbc Reviewed-by:
Wang Hoi <wanghoi@126.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 17 Jun, 2014 1 commit
-
-
Wang Hoi authored
In case: int a[6] = { [4] = 29, [2] = 15 }; struct point { int x, y; }; struct point p = { .y = 3, .x = 2 }; Grammar change when c99 language feature is enabled: old grammar: braced-init-list :: '{' initializer-list '}' new grammar: braced-init-list :: '{' designated-initializer-list '}' designated-initializer-list :: designated-initializer (',' designated-initializer )* designated-initializer :: designator* initializer-clause designator :: '.' identifier | '[' constant-expression ']' Task-number: QTCREATORBUG-1902 Change-Id: Ib99d6f553f8d0f50ba3eff86f3a2e86d73372426 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 08 Jan, 2014 1 commit
-
-
Robert Loehning authored
Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- 23 Dec, 2013 2 commits
-
-
Orgad Shaneh authored
SemanticInfo has moved from CppEditor to CppTools and is now exported, so this workaround is no longer needed (and it breaks linkage) Change-Id: Ic9ba017bcb06be85fdccef27e63091415494bb21 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
Orgad Shaneh authored
Change-Id: I7b3c52a6eb70a0e2d7f2785fac71cb3ac68769d8 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 20 Dec, 2013 1 commit
-
-
Erik Verbruggen authored
Previously known as the wip/clang branch. Contributors (in alphabetical order): - Christian Kamm <christian.d.kamm@nokia.com> - Erik Verbruggen <erik.verbruggen@digia.com> - Leandro Melo <leandro.melo@nokia.com> - Peter Kuemmel <syntheticpp@gmx.net> - Sergey Shambir <sergey.shambir.auto@gmail.com> Change-Id: I4c3ff600a19b6732641c1d5ef28236bf2cc17737 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 18 Apr, 2013 1 commit
-
-
Erik Verbruggen authored
- Moved TextEditor::SemanticHighlighter::Result to TextEditor::HighlightingResult - Moved SemanticInfo::UseKind to CppHighlightingSupport::Kind Change-Id: I14faab1891ca691a0691cfd9243edf19fcd3d3df Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 10 Apr, 2013 2 commits
-
-
Przemyslaw Gorszkowski authored
It fixes: * highlighing * find usage * follow symbol when function of class has the same name as: * local variable * template parameter * other struct/union/class/enum * function argument in function scope. Task-number: QTCREATORBUG-8902 Change-Id: Iddc0f764af689babb40d39460d174bac7b919b31 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Sergey Shambir <sergey.shambir.auto@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
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>
-
- 08 Apr, 2013 1 commit
-
-
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>
-
- 03 Apr, 2013 1 commit
-
-
Oswald Buddenhagen authored
... 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>
-
- 12 Mar, 2013 1 commit
-
-
Friedemann Kleint authored
Change-Id: I00a68d7f2b509e3934c3248765a78e9b47749127 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 26 Feb, 2013 1 commit
-
-
Erik Verbruggen authored
The fix: when finished with a FunctionDefinition, only flush when the number of usages reaches the chunk size. This should prevent a lot of chunks with a low number of usages for files with short methods. The tuning: for files larger than 10000 lines, use a larger chunk size to prevent the UI thread from having to re-layout/re-paint too often. Change-Id: I419174d306b8380c6fa8402825767e26c73f62ec Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- 19 Feb, 2013 1 commit
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-8738 Change-Id: I297731f15bd9001f7edc83c956a15ef660929dc7 Reviewed-by:
Mitch Curtis <mitch.curtis@digia.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 29 Jan, 2013 2 commits
-
-
Robert Loehning authored
Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
Nikolai Kosjar authored
CheckSymbols is the "data provider" for the semantic highlighter which does not have any tests yet. Change-Id: I868aca32d44570457a984b8ce74695c381c58bed Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- 05 Oct, 2012 1 commit
-
-
hjk authored
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- 30 Jul, 2012 1 commit
-
-
Sergey Shambir authored
Change-Id: I6dfe9dd606781046ff5a1ed61315741d2f332cb8 Reviewed-by:
Christian Kamm <christian.d.kamm@nokia.com>
-
- 19 Jul, 2012 1 commit
-
-
Eike Ziller authored
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- 17 Jul, 2012 1 commit
-
-
Leandro Melo authored
- Fix issues with virtual/non-virtual destructors. They were not being correctly identified in some cases - in particular on certain uses in derived classes. - Since now we do have a highlighting item for regular functions, constructors and destructors are now highlighted as such. This is more semantically correct and actually makes navigation and readiblity more distinguishable, since it cleary differentiates the type itself from its uses in expressions and declarators. (This seems to be what other IDEs like Eclipse, Visual Studio, KDevelop are doing.) NOTE: There's a switch to disable this item in the case it doesn't get good acceptance. Actually, the switch can be made a user setting...? - Change the default color scheme so regular and virtual functions have the same color (virtuals continue to be italic). This makes sense given the above mentioned changes in constructors/destructors highlighting behavior. (In other schemes virtual funcions don't have different color, so this shouldn't be necessary in those.) - Small renaming: "members" are now "fields" - consistent, since they apply for data and it's the term used in the UI. Change-Id: Ib1aa9c0bbf28a31d09f5696460b0095fbe29de80 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- 05 Jun, 2012 1 commit
-
-
Francois Ferrand authored
- Highlight all function/methods (not just virtual methods). - Highlight as a function even if number of arguments does not match. In that case, add a diagnostic message to indicate there are too many/too few arguments. - Fix highlighting of parameters in function declarations. These used to be handled indiferently, and they could be mistaken for type or field references. - Properly highlight template method calls. Change-Id: I6e61c9ee47763db95c62314f9cc1c4d398df38b3 Reviewed-by:
Leandro Melo <leandro.melo@nokia.com>
-
- 13 Apr, 2012 1 commit
-
-
Francois Ferrand authored
Change-Id: I7c90957aa67e03a109af0a722160d4e1c759d716 Reviewed-by:
Leandro Melo <leandro.melo@nokia.com>
-
- 29 Mar, 2012 2 commits
-
-
Erik Verbruggen authored
This reverts commit e3e67467cfea5934f16a95385761455b0c495a0d Reason is that it shows errors for calls to function-like macros. For example, any use of Q_DISABLE_COPY results in invalid errors. Change-Id: I1fd1473ac5a30da5b9aebf6a3f0f11055bdbe8ad Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
Francois Ferrand authored
- Highlight all function/methods (not just virtual methods). - Highlight as a function even if number of arguments does not match. In that case, add a diagnostic message to indicate there are too many/too few arguments. - Fix highlighting of parameters in function declarations. These used to be handled indiferently, and they could be mistaken for type or field references. - Properly highlight template method calls. Change-Id: I6ab463996dda47554839f482da47f561f76663a7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
- 15 Feb, 2012 1 commit
-
-
Erik Verbruggen authored
Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- 09 Feb, 2012 1 commit
-
-
Erik Verbruggen authored
Change-Id: I559a3112d2aa0a3c09554f8da8b7917f9aa27944 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- 08 Feb, 2012 1 commit
-
-
Erik Verbruggen authored
This way the editor does not need to know all the details of instantiating or maintaining classes for highlighting and/or completion, it can just ask the model manager. The change also enables different highlighting- or completion-engines without changes to the cppeditor. Change-Id: I8000d9d9fe446b292defddb2295493cf77d0f14a Reviewed-by:
Leandro Melo <leandro.melo@nokia.com>
-
- 26 Jan, 2012 1 commit
-
-
hjk authored
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- 03 Nov, 2011 1 commit
-
-
hjk authored
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- 01 Sep, 2011 1 commit
-
-
Christian Kamm authored
Change-Id: I5398442bdb864c4bccd8c193364bed3879bbc660 Reviewed-on: http://codereview.qt.nokia.com/4042Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com>
-
- 30 Aug, 2011 1 commit
-
-
Christian Kamm authored
This moves sorting from the gui thread to the future and allows the incremental application of the extra formats to assume chunks are sorted. Change-Id: I38e179e573c43cc955cce820f17ac87e3300a839 Reviewed-on: http://codereview.qt.nokia.com/3869Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- 24 Aug, 2011 1 commit
-
-
Christian Kamm authored
Change-Id: If9293244075cff1a52801b50cdbb77248ecd21ea Reviewed-on: http://codereview.qt.nokia.com/3310Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com>
-
- 06 May, 2011 1 commit
-
-
Tobias Hunger authored
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
-
- 13 Apr, 2011 1 commit
-
-
hjk authored
-
- 04 Feb, 2011 1 commit
-
-
hjk authored
We use the latter style everywhere else to signify the end of a namespace block.
-