[Qt-creator] Need help understanding some qt-creator source

Simon Schäfer simonschaefer at posteo.de
Tue Sep 10 19:30:00 CEST 2013


> It seems to work correctly with the attached patch, which tries to go
> through the "regular" code for these special compiler macros. The patch is
> definitely not clean yet, though.
Thats Why I posted it to pastebin instead of commiting it, it was to
clarify the idea for a solution.
> It may actually be better to automatically register Macro objects for
> these, so the macros can be resolved normally (and highlighted, and usage
> tracked like any regular macro), and simply replace the "definitionTokens"
> by the appropriate value.
I don't think that this might work with the current structure of the
macro parsing system, as far as I understood the code it handles the
macros in a lookup table name->code. This does not work for __LINE__
because its not a one to one matching.
> Unfortunately, i'm not sure i can provide a proper patch soon.
>
Me neither, vacation is about to start... But if the bug still exists
when I'm back I try to search for a solution.



More information about the Qt-creator mailing list