If the length of the sring gets altered we ensure that
cursPos < text.length().
Change-Id: I0040405e4d971ac253bcfa4d7158fdac673d2478
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
It was already broken in 2.4.
Task-number: QTCREATORBUG-7110
Change-Id: I24fae889c67ba5436548b7534d7257b6680a8c81
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Add a method for basic structural checks of a definition.
Currently it simply tests for a initial context.
Task-number: QTCREATORBUG-7053
Change-Id: I56415034b50908d6da5f66ffab7def8fdd5fa1fb
Reviewed-by: David Schulz <david.schulz@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Keep track of select errors and if too many accumulate simulate
a sleep/wake cycle.
Change-Id: I9af869f77d922a174c08f6f4a54dde57f493f29c
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* wait forever in read_all unless we are exiting
* guarantee that longer response time after the first time do not
lead to thinking that the daemon did disconnect
Change-Id: I6888da92c584c2a679846f0ba9f7129e4115703d
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
If no sysroot is applied the sysroot/usr/include path is not detected. Is
fixing a typo too.
Change-Id: I6a4e750b8b24b9f702ff4874810a91f020fca410
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Add the complete line to the Search Results window,
including '#', "define", macro and macro value and
all possible white spaces between them.
Also covers the case of line continuation in macro
definitions from commit 3dec48557a.
Task-number: QTCREATORBUG-7217
Change-Id: I8b9d0c23d31ef76244833a9b9d67469c5c4a5635
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Connect via signal to make it possible to build the shared help
code as a static library.
Change-Id: If4e9c8ee43eb32e08167c7642f52214643de6d5c
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
give enough startup time, while still quickly bailing out when quitting
Change-Id: I628621099e9ead4defc4613615ccb5e8303ff2df
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
So far we used a heuristic that prefers .pro files in the same directory
as the new files. That fails if there are multiple .pro files in the
same directory. So instead introduce a mechanism to pass extra data
through the wizard.
Task-number: QTCREATORBUG-7157
Change-Id: I615f7292e16a0a6cb1e84f090016879f1038409f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
The ports gatherer used to take an SshConnection for historical reasons
(connection sharing in the absence of a connection manager). This is no
longer required, since all the information needed for creating or
re-using a connection is available from the device.
In addition, the old code assumes the connection is already established,
which some newer callers did not adhere to, so this patch also fixes a
bug.
Change-Id: I3fd7fec7de9b64126358749f727a403bfa1e0a94
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
Related to 66af0d9004b15d7c0389a3bd0a95ac1d23b1031c
Change-Id: I5d7c64c5c4110ccf22af5a4af992e18019009d6f
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
The current code is not technically buggy, but does unnecessary
things and therefore might confuse people looking at it.
Change-Id: Ia6fcca575a8cc9856e86c66f337e2bffd9bf4b3a
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
* invokeMenuItem(): changed order and additional
waitFor to be more error-proof on Mac
* logApplicationOutput(): added try/except block
for cases where no former run/debug could be found
Change-Id: I0d434fbb964e3d85e5ccb2a4c336e14e956f44ce
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
The line corresponding to the macro definition is simply the token's
line. This caused errors in the macro definitions, since there were
multiple macros defined on the same line of the same file.
Task-number: QTCREATORBUG-7217
Change-Id: I56d17eeba677ac51f9eed283c0e964019bdfe4b7
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
- This enables some tests which had been unexpectedly disabled in
earlier test.
- Tests to show issue QTCREATORBUG-7225.
- Tests which validates somehow behavior of preprocessor for
QTCREATORBUG-7217: the test passes, so the problem is likely not in the
startExpandingMacro() notification.
Change-Id: Ib7c1433e4dcdd8c1d19fa117371f94c1645ec3fb
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
We need to run qmake -query during initialization anyway, so it
makes no sense to use the faste qmake --version to get the
Qt version number.
Change-Id: If4f5efa074885a9be8938d54767008d8f1dc0d6b
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Large changes in time can happen due to sleep, or long uptime.
Maybe calling the sleep hooks should be considered for a future fix.
Change-Id: I746c2176a9b36cbafd5679ec1529ad59f8b691b5
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
- Notify end of macro if function expansion is skipped.
- Do not notify client of generated macros expansion.
Change-Id: Ic027fc13ee391425a5ebadc8e84b9305912dbcf0
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>