On Jul 7, 2011, at 14:36, ext Konstantin Tokarev wrote:

> 
> 
> 07.07.2011, 16:18, [email protected]:
>> On Jun 30, 2011, at 21:45, ext Peter Kümmel wrote:
>> 
>>>  Is the branch which uses clang for parsing public available?
>> 
>> No, not yet. My plan is to first try to solve the problem of what to do with 
>> pre-compiled headers. Currently that is a bit magical. Then we will make it 
>> a public repo on gitorious.
> 
> How do you implement analysis of Qt-specific syntax?


That isn't complete (yet). It will mainly depend on "the clang people" 
accepting a patch for the parser. My current implementation idea is to redefine 
Q_SLOT, slots, signals, and Q_SIGNAL to expand to an __attribute__, pick that 
up in the parser, and annotate the AST. Then for semantic highlighting and 
completion, the code can check for those attributes. The other useful defines 
do probably not need any special support, as they are not used in time-critical 
code (read: in code-completion).

Anyway, I want to tackle one issue at a time, so my time-line currently looks 
like:
 - get semantic highlighting working (done)
 - get code-completion working (done)
 - get some kind of pch generation working, because without it the C++ 
completion is too slow (working on this now)
 - put the code on gitorious
 - get signal/slot support working, mainly w.r.t. completion in connect 
statements
 - …?

Cheers,
Erik.
-- 
Erik Verbruggen
Product manager Qt Creator
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to