News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

highlight of the select variable problem

Started by ollydbg, October 07, 2009, 04:04:51 AM

Previous topic - Next topic

dje

Quote from: daniloz on October 07, 2009, 10:35:18 AM
Quote from: oBFusCATed on October 07, 2009, 10:16:44 AM
And if there is a way to export the profile to external file, one can be able to give his profile to a co-worker and everybody will edit files in the project the same, so the formating issues/commits will be less frequent.

+1 for this very nice and wanted  8) feature...
yes, but it is also possible to configure astyle properly and include an astyle step before commiting in the configuration management tool.

Dje

ollydbg

sorry for bump the old thread, I found a patch here:
http://developer.berlios.de/patch/?func=detailpatch&patch_id=3130&group_id=5358

the author said that "no cpu overload detected", it that true?
sometimes I still need to hightlight one char variable.
thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

wf

I'm using this on windows + Process Explorer for monitoring cpu load. There is no cpu overload because if no text selected:

if (a == b)
     return

We return at the beginnig of function. Test it someone please.

oBFusCATed

I've just committed patch #3130, which makes it possible to set the minimum of characters to 1.
The default is still 3, so the current behaviour should be unchanged.

About the slowness, yes there is slowness if the setting is set at 1 and I select 'e' in codecompletion.cpp for example.
It take 1-2 seconds to select all the occurrences. But generally it works OK.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]