- Jun 24, 2013
-
-
Nikolai Kosjar authored
When a reloading operation was in progress, CppEditorSupport::contents() could return a partly reloaded file to the code model leading to parse errors and incomplete highlighting. Fixed by checking if the file is currently being reloaded. Task-number: QTCREATORBUG-9382 Change-Id: Iee97e10444763c0cbf481132afa4617c5cdbd15c Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Jun 17, 2013
-
-
Nikolai Kosjar authored
For a new split/editor no CppHighlightingSupport was set since onMimeTypeChanged was not called. Now the CppHighlightingSupport is set again in the constructor. This reverts partly commit 033ad887 C++: handle file type changes for choosing highlighters Task-number: QTCREATORBUG-9382 Change-Id: Ie79d357d570bec4920366fbd56fb67859be9b37a Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- May 15, 2013
-
-
Erik Verbruggen authored
If the file type (mime type) of an editor changes, it might need a different kind of highlighter/highlighting-support. Change-Id: I470dbf69e71856c9593d201416c4d4bd2958aaec Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- May 08, 2013
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-9250 Change-Id: I15bcaf5d0e55c7e3cc731755fc48df2d1181f3da Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- May 07, 2013
-
-
Nikolai Kosjar authored
If Creator switched to the Project mode on startup, the highlighting was not started because the editor widget was not visible. Now we check if the editor itself is or would be visible in the edit mode, which is indepedent of the current mode. Task-number: QTCREATORBUG-9260 Change-Id: I72373e09965fd1cded034ae4711df48798e7f0d8 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Now recalculateSemanticInfoNow is called only once instead of three times when a new editor is opened/created. Change-Id: Ife84fc9ca90cdbf2a417123e6a2b9e1e068dfdc4 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Nikolai Kosjar authored
Case: Opening a file that is not yet in the Snapshot recalculateSemanticInfoNow() emitted the same SemanticInfo until the indexer processed the document (Snapshot::contains()). That signal caused CppEditorWidget::updateSemanticInfo() to call semanticRehighlight() because of unequal revisions. That triggered recalculateSemanticInfo() again. Change-Id: I8fb7d7c42aad3d6a89876e743cd4e3c7aff643bf Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- May 03, 2013
-
-
Erik Verbruggen authored
Change-Id: Ie6a2398f3a9e5c26a9af1578e512da53a01d15f5 Reviewed-by:
Sergey Shambir <sergey.shambir.auto@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- May 02, 2013
-
-
Nikolai Kosjar authored
Also remove the introduced functions in CppEditorSupport. We can just wait until the document is "Full Checked" via Document::checkmode(). Change-Id: I31d23016f5aa5d3c37e8e05078436ab901bfb2d7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Apr 30, 2013
-
-
Nikolai Kosjar authored
Test cases are examples from Working Draft, Standard for Programming Language C++ Document Number: N3242=11-0012 Change-Id: I624c315943d6a00e821abb52eef6e0ff4a40f0d7 Reviewed-by:
Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by:
David Schulz <david.schulz@digia.com>
-
- Apr 29, 2013
-
-
Orgad Shaneh authored
CppTools.lib(CppTools.dll) : error LNK2005: "public: virtual __thiscall QFutureInterface<class TextEditor::HighlightingResult>::~QFutureInterface<class TextEditor::HighlightingResult>(void)" (??1?$QFutureInterface@VHighlightingResult@TextEditor@@@@UAE@XZ) already defined in moc_cppeditor.obj Creating library ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.lib and object ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.exp..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.dll : fatal error LNK1169: one or more multiply defined symbols found Change-Id: Id53a0f8a99dbd18a9cbdf2af57b4f3970f5c41a3 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Apr 26, 2013
-
-
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>
-
- Apr 19, 2013
-
-
Eike Ziller authored
Introduces ITextEditorDocument. This is part of a more general "use documents instead of editors whereever possible". It will allow to move to e.g. ITextEditor::openedTextDocumentContents() instead of ITextEditor::openedTextEditorsContents(). Change-Id: I5ebceaa257a0d2c3e8ac4ac51b9b08b6faa42487 Reviewed-by:
David Schulz <david.schulz@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 03, 2013
-
-
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>
-
- Mar 12, 2013
-
-
Friedemann Kleint authored
Change-Id: I00a68d7f2b509e3934c3248765a78e9b47749127 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Jan 29, 2013
-
-
Robert Loehning authored
Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- Jan 08, 2013
-
-
Orgad Shaneh authored
#!/usr/bin/env ruby Dir.glob('**/*.cpp') { |file| # skip ast (excluding paste, astpath, and canv'ast'imer) next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i s = File.read(file) next if s.include?('qlalr') orig = s.dup s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m| res = $& if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces res else res.gsub!('} else', 'else') res.gsub!(/\n +} *\n/m, "\n") res.gsub(/ *{$/, '') end } s.gsub!(/ *$/, '') File.open(file, 'wb').write(s) if s != orig } Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc Reviewed-by:
hjk <qthjk@ovi.com>
-
- Nov 22, 2012
-
-
Orgad Shaneh authored
Change-Id: I31a6117c2b4be3f8603c16a9f98b6937a0b9aeb2 Reviewed-by:
Friedemann Kleint <Friedemann.Kleint@digia.com>
-
- Oct 23, 2012
-
-
Erik Verbruggen authored
Change-Id: Iff35840d73882a212dd77b54e4223c0b4111ac1c Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Oct 05, 2012
-
-
hjk authored
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- Jul 19, 2012
-
-
Eike Ziller authored
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- Feb 20, 2012
-
-
Erik Verbruggen authored
Change-Id: I990fdf5411153041c6b4c62f31b453342d59de53 Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
Eike Ziller authored
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>
-
- Feb 15, 2012
-
-
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>
-
- Feb 08, 2012
-
-
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>
-
- Jan 26, 2012
-
-
hjk authored
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- Nov 03, 2011
-
-
hjk authored
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- May 06, 2011
-
-
Tobias Hunger authored
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
-
- Apr 13, 2011
-
-
hjk authored
-
- Feb 22, 2011
-
-
hjk authored
rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor rename BaseTextEditor{,Widget} subclasses rename editableInterface->editorInterface rename createEditableInterface->createEditor minor cleanups after renamings
-
- Jan 12, 2011
- Dec 17, 2010
-
-
con authored
-
- Jul 02, 2010
-
-
Erik Verbruggen authored
-
- Jun 14, 2010
-
-
Erik Verbruggen authored
Also removed TokenUnderCursor as it's functionality is in the token cache. Reviewed-by: ckamm
-
- Jun 04, 2010
-
-
Erik Verbruggen authored
This reverts commit c2393df0.
-
Erik Verbruggen authored
This should speed things up a bit, because before, the line was tokenized at least 3 times.
-
- May 25, 2010
-
-
Roberto Raggi authored
-
- Mar 24, 2010
-
-
Roberto Raggi authored
-