Sorry, maybe I didn't explain properly.<br><br>If you grep QRegExp on the parser directory you will see that it is only on:<br>- CMakeAst, command parser:<br>    * To collect the cmake_minimum_required version value.<br>
    * The same for cmake_policy (2.6)<br>- Condition evaluator:<br>    * For the MATCHES case (from cmake, can't remove it).<br>- Project Visitor:<br>    * To get the information from the envvar list (it could be changed, and I will, but I don't think it is significant)<br>
    * On the STRING command on regex-related options.<br>    * ADD_DEFINITION command: to extract info from the definitions. (it could be changed, and I will, it appears quite often so maybe it could be significant)<br>    * REMOVE_DEFINITION command: the same but barely used.<br>
 <br>It is used on the manager 1 time so it is not a problem as well.<br><br>I'll remove now the few I think that could be removed but, as I said, I think the big load of regex is used by the cmake scripts themselves.<br>
<br>Thanks,<br>Aleix<br><br><div class="gmail_quote">On Tue, Apr 1, 2008 at 2:21 PM, Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 01.04.08 13:59:01, Aleix wrote:<br>
> As I said to andreas, the important use of regex is on the configuration<br>
> scripts and I can't do anything about that since i need them to parse the<br>
> projects properly.<br>
<br>
</div>No you don't. In particular you only need regexes if the cmake script<br>
itself uses a regex somewhere and thats not used that much - AFAIK. For<br>
translating the plain text of a CMakeLists.txt into some abstract<br>
structure you don't necessarily need regexps. CMake itself doesn't use<br>
regexps to parse its own files either.<br>
<br>
Anyway, lets see how your caching idea works out before throwing away<br>
existing code.<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
If your life was a horse, you'd have to shoot it.<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br>