Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Very first impressions and.... [FEATURE REQUESTS]
Re: Very first impressions and.... [FEATURE REQUESTS] [message #11446 is a reply to message #11445] |
Wed, 12 September 2007 21:52   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
[quote title=mdelfede wrote on Wed, 12 September 2007 14:59]luzr wrote on Wed, 12 September 2007 18:40 |
file from preprocessor kept in sync with the file I'm workin on....
|
How do you want to keep it in sync?
Note that rescanning after #define is typed is not enough.
Any change in file changes potential preprocessor output. This is not even related to macros, even if there are no macros, any change in file changes preprocessor output.
Quote: |
I've not looked at your parser code, but I guess it does a first scan on file when ide opens, and then it keeps scanning only the changes you make to file, am I wrong ?
|
Yes, you are wrong 
All project files are scanned at ide startup(*). Then modified files are scanned before they are leaved or if the information is needed.
(*) in fact, all information is cached, so in reality only changed files are scanned at startup, unchanged file information is just loaded.
Quote: |
So, at ide opening you add the preprocessor pass before the full scan pass. Then, when you work on file, there are 2 possibilities :
1- you make changes not related to # preprocessing directives, so your code work as usual.
|
Any change in file is related to preprocessor.
That is the problem you seem to miss (or maybe I do not understand your method).
Quote: |
Quote: |
The preprocessor is the simple part... The hard part is caching logic.
|
Of course, but that is already done. It should only a matter of keeping a second buffer (aka symbol table in memory) and switch to it when the long job is done. It should be not too difficult to insert in current code.
|
If only things would be so simple 
Note:
What you suggest might partially work, if preprocessor would be capable of exporting all defined macros together with preprocessor output. In that case, you could split the processing to processing of headers, which would yield two files (preprossed files and set of macros) and the main file, then you could e.g. include only macros for processing of main file, which would be much faster. But hey, this is what I call "partial preprocessing".
Not that there is another problem: You are not only interested in information contained in the .cpp file, but also in things defined in headers...
Mirek
|
|
|
 |
|
Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Wed, 12 September 2007 00:50
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: unodgs on Wed, 12 September 2007 09:07
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Wed, 12 September 2007 12:26
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 12 September 2007 14:46
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Wed, 12 September 2007 16:18
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 12 September 2007 17:48
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Wed, 12 September 2007 18:12
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 12 September 2007 18:40
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Wed, 12 September 2007 20:59
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 12 September 2007 21:52
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Thu, 13 September 2007 00:15
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Thu, 13 September 2007 14:31
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Thu, 13 September 2007 16:13
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Thu, 13 September 2007 19:37
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Thu, 13 September 2007 20:49
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Fri, 14 September 2007 09:40
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Fri, 14 September 2007 12:44
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Fri, 14 September 2007 15:45
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Fri, 14 September 2007 19:46
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Tue, 25 September 2007 14:22
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Tue, 25 September 2007 16:42
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Tue, 25 September 2007 18:22
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Tue, 25 September 2007 20:02
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Tue, 25 September 2007 23:01
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Tue, 25 September 2007 23:59
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 26 September 2007 00:24
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Wed, 26 September 2007 10:17
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 26 September 2007 14:30
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mdelfede on Wed, 26 September 2007 16:59
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Fri, 14 September 2007 09:43
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 12 September 2007 11:03
|
 |
|
Re: Very first impressions and.... [FEATURE REQUESTS]
By: mirek on Wed, 12 September 2007 14:40
|
Goto Forum:
Current Time: Mon Aug 04 13:41:04 CEST 2025
Total time taken to generate the page: 0.07417 seconds
|