Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] some questions about CDT c/cpp parsing

Hi Doug,

 

> Can I always expect there to always be at least one build configuration?

Yes, the build configuration concept implies that the project contains one or more configurations, so each project should contain at least one configuration. And yes, in case the backend (build system) knows the language information to be used for the given resource, it would be supplied to the core; otherwise the content type information could be used. I suppose that all this logic could be implemented within the build configuration scope, in this case I suppose there will be no need in the fallback code at all.

 

Mikhail

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer
Sent: Wednesday, May 31, 2006 7:30 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] some questions about CDT c/cpp parsing

 

No, it’s not complicated. I’m just wondering out loud how this will all work. Can I always expect there to always be at least one build configuration? If not, do I need a new piece since I do getLanguage from a number of different spots and would need to localize the fallback code. (remember, I hate typing J).

 

Doug Schaefer, QNX Software Systems

Eclipse CDT Project Lead, Tools PMC member

http://cdtdoug.blogspot.com

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Treggiari, Leo
Sent: Wednesday, May 31, 2006 11:20 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] some questions about CDT c/cpp parsing

 

> I’m not sure how things evolve from one to the other to ensure all languages keep working, though.

 

Maybe the problem is more complicated that I’m thinking, but I would suggest asking the build configuration for the language, and if it doesn’t have an answer, fallback to using the content type.

 

Leo


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer
Sent: Wednesday, May 31, 2006 11:08 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] some questions about CDT c/cpp parsing

 

Very true. If I could ask a build configuration for the given ILanguage for a given ITranslationUnit, then I’m set. Right now, you register the ILanguage against a content type in the extension point and ITranslationUnit looks things up there. I’m not sure how things evolve from one to the other to ensure all languages keep working, though. Something to think about.

 

Doug Schaefer, QNX Software Systems

Eclipse CDT Project Lead, Tools PMC member

http://cdtdoug.blogspot.com

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Treggiari, Leo
Sent: Wednesday, May 31, 2006 10:54 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] some questions about CDT c/cpp parsing

 

Hi Doug,

> One problem would be knowing which parser to use for a given file since we are currently triggering of ContentType which would need to be different depending on what compiler you were using.

This is one of the places where I think the CDT-wide concept of the current build configuration and associated tool-chain can help.  The C/CPP tool in the tool-chain can specify the language variant that it understands.

Leo


Back to the top