- May 23, 2014
-
-
Nikolai Kosjar authored
In most cases we need to work with the utf16 indices. Only in cppfindreferences the byte interface is still needed since there we read in files and work on a QByteArray to save memory. Change-Id: I6ef6a93fc1875a8c9a305c075d51a9ca034c41bb Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Jan 08, 2014
-
-
Robert Loehning authored
Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by:
Kai Koehne <kai.koehne@digia.com>
-
- Oct 15, 2013
-
-
hjk authored
Change-Id: I4e2df6992b446adec662ab07671acd41715e41fd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- Oct 10, 2013
-
-
Nikolai Kosjar authored
Only methods as programming functions are affected. Besides renaming some actions like "Switch Between Function Declaration/Definition" this mostly touches (api) code comments. This is a follow-up patch to commit 872bfb70. Change-Id: Icb65e8d73b59a022f8885b14df497169543a3b92 Reviewed-by:
hjk <hjk121@nokiamail.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>
-
- Aug 22, 2013
-
-
Nikolai Kosjar authored
Change-Id: Ia36e7e7142dbc030a428369ed04e76e70e8eef0b Reviewed-by:
Erik Verbruggen <erik.verbruggen@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
-
-
Przemyslaw Gorszkowski authored
Fix find usages for template class(class name and template parameters) or template function(template parameters). Fixed: * marking * find usages * follow symbol Change-Id: I22fdbc11260cbd8ee9aafdd76aaeee0f4f49f9fd Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Jun 11, 2013
-
-
Nikolai Kosjar authored
Change-Id: Id107b6c1f34f594c5a01502c156963c964235ed7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Jun 04, 2013
-
-
Erik Verbruggen authored
Thanks to Jesper K. Pedersen for the fix! Change-Id: Ie49c3352e26a9632b1500596b00d559bfe932dff Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@digia.com>
-
- May 24, 2013
-
-
Przemyslaw Gorszkowski authored
It was missing colorizing and follow symbol template function parameters in case of: * returning value * use it as qualified name Task-number: QTCREATORBUG-6861 Change-Id: I4226199e1f296cfe5a373783ebbc633e32fc9bcd Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Apr 16, 2013
-
-
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 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 20, 2013
-
-
Friedemann Kleint authored
Change-Id: Ied32236a84d20225b1ca4a192f3a346fbfbd09b4 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- Feb 19, 2013
-
-
Erik Verbruggen authored
Change-Id: I5636039c79be40505c707f775b228bc51f35c243 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 24, 2013
-
-
Nikolai Kosjar authored
For a given AST, CppRefactoringFile and Overview this will create a ChangeSet for rewriting the pointer or reference declaration according to the Overview. Task-number: QTCREATORBUG-6169 Change-Id: If6f824c1ea5e9f53a11a58ec8b6d696d01f0723e Reviewed-by:
Erik Verbruggen <erik.verbruggen@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>
-
- Dec 20, 2012
-
-
hjk authored
Change-Id: I638fe4291d6b682864d0a0c3938ad0066e060a3a Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
- Oct 15, 2012
-
-
Erik Verbruggen authored
Change-Id: I43b1d5b72c9bf7302e0acb9206c87152e4f0727b Reviewed-by:
Erik Verbruggen <erik.verbruggen@digia.com>
-
Erik Verbruggen authored
Record revisions of documents in macro definitions and usages. Then, when searching for usages, check the revision of the documents against the revision of the macros. If they are out-of-sync, repreprocess the documents to get up-to-date info. Task-number: QTCREATORBUG-7872 Change-Id: I846bb52ec660024728ab117a9fb7e43382a50e63 Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- Oct 05, 2012
-
-
hjk authored
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by:
Eike Ziller <eike.ziller@digia.com>
-
- Aug 06, 2012
-
-
hjk authored
More uniform. Change-Id: I1c6057981f4c2b3170a4e69f0674fe4caf1143a2 Reviewed-by:
Robert Loehning <robert.loehning@nokia.com>
-
- Jul 19, 2012
-
-
Eike Ziller authored
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by:
Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
-
- Mar 29, 2012
-
-
Erik Verbruggen authored
This rewrite fixes a couple of issues with the pre-processor. It now supports: - macros in macro bodies - stringification of parameters [cpp.stringize] - the concatenation operator [cpp.concat] - #include MACRO_HERE - defined() inside macro bodies used in pp-conditions. Change-Id: Ifdb78041fb6afadf44f939a4bd66ce2832b8601f Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 13, 2012
-
-
Francois Ferrand authored
- Go to macro definition only on macro name (ie not in parameters). - Prefer macro definition over expanded code definition, as the preprocessor is executed first: when trying to go to definition, the user sees the macro, not the expanded code. Task-number: QTCREATORBUG-2240 Task-number: QTCREATORBUG-6175 Task-number: QTCREATORBUG-6848 Task-number: QTCREATORBUG-7008 Task-number: QTCREATORBUG-7009 Change-Id: I819c763524e79b20518c26a46a99a3a3b0a131bd Reviewed-by:
Andre Hartmann <aha_1980@gmx.de> Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@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>
-
- Jan 26, 2012
-
-
hjk authored
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- Jan 23, 2012
-
-
Leandro Melo authored
This patch introduces a priority-based mechanism when searching for certains symbols in the snapshot. The priority corresponds to how similar the file path from the "reference" symbol is to the file path from the "candidate" symbol. This solves a variety of issues when matching "equivalent" symbols but that are in another file/project, such as when following a function declaration, a forward class declaration, or adding a definition through a quickfix. There's now a symbol finder which will compute the "best" search order and cache the most recent results. A consequence is that following symbols in some cases is slower, but not apparently significatly. Note: The "find" functions were moved from the Snapshot to the new SymbolFinder class. Task-number: QTCREATORBUG-6697 Task-number: QTCREATORBUG-6792 Change-Id: Ia518f014275fec1f4d0cb3224bd4e06a9df6d557 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Jan 13, 2012
-
-
Leandro Melo authored
Continuinng a previous commit... This is in order to make the interface clearer. Change-Id: Ic1b05217f878578bc84a064927507b75981c47d6 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Nov 03, 2011
-
-
hjk authored
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Oct 31, 2011
-
-
Christian Kamm authored
That fixes navigation and the 'function signature update' quickfix for global functions and functions in namespaces. Task-number: QTCREATORBUG-6413 Change-Id: Ifc68a88a34eb363f4e84c72e9f72444d22df1086 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-
- Sep 20, 2011
-
-
Christian Kamm authored
In strict mode, don't give up after the first Document with candidates. Change-Id: I62ba59708a3501b31f79d979b1a85bede875eccb Reviewed-on: http://codereview.qt-project.org/5142 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-
- Sep 08, 2011
-
-
Christian Kamm authored
Task-number: QTCREATORBUG-3199 Change-Id: I591490ceafadc0f5a07c63ec063f1bdfa7055f47 Reviewed-on: http://codereview.qt-project.org/4074 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com>
-
- Aug 31, 2011
-
-
Christian Kamm authored
Setting extra diagnostics would call updateDocument which would in turn trigger another scan. Change-Id: I3810a380cdf716a12767d94ff82dc30f8ae3954d Reviewed-on: http://codereview.qt.nokia.com/3917 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-
- Aug 25, 2011
-
-
Christian Kamm authored
Contrary to StringLiterals, keeping them around is unnecessary. Change-Id: Idc1967c125e1373e69ce4c7640328d323a84ec14 Reviewed-on: http://codereview.qt.nokia.com/3395 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Aug 24, 2011
-
-
Christian Kamm authored
It now lives in qmljstools/qmljsfindexportedcpptypes, all in one place. Also ensures that the source code is available when a file is being scanned for QML exports. This will enable checking comments for annotations about the URI a plugin is usually imported as. Change-Id: I1da36d0678e0a8d34b171dbe0f6b5690d89eb18b Reviewed-on: http://codereview.qt.nokia.com/3392 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@nokia.com>
-
- Aug 16, 2011
-
-
Christian Kamm authored
Change-Id: Id158be80c42056c145c2b787d4f569e2c0a0b66e Reviewed-on: http://codereview.qt.nokia.com/2932 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Christian Kamm <christian.d.kamm@nokia.com>
-
Christian Kamm authored
When editing a function declaration or definition the code model may realize the same changes have to be applied somewhere else. A refactoring marker will pop up that can be clicked to perform the changes. Alternatively, press enter to apply. Change-Id: I2299a2ecfb6a8f87d4853fc7cfa99486f890a1d3 Reviewed-on: http://codereview.qt.nokia.com/2909 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-
- Aug 10, 2011
-
-
Christian Kamm authored
The only Scope that set the end offset to *before* the last token was ObjCClassDeclaration. Change-Id: Icbdb5bcdd72d96087ac586ad51510fed74a633eb Reviewed-on: http://codereview.qt.nokia.com/2820 Reviewed-by:
Leandro T. C. Melo <leandro.melo@nokia.com>
-