[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: CDT content types, was RE: [cdt-dev] M7b tagged and build under way
|
C files are definitely different in all aspects in the CDT. So, no, I
wouldn't map .c files as C++.
C and C++ files need to be dealt with using different tools. I'm not
sure we were ever able to build .c files in Managed C++ projects, were
we? We definitely have problems with Scanner Info in this situation.
Doug
Recoskie, Chris wrote:
So I've been taking a look at this problem with the .c files not
building in C++ projects. I know what the problem is but the solution
is up for debate.
The way the GNU tool definitions are specified is with inputTypes that
are not marked as primary. This allows the contentTypes behaviour to
take over. That's good.
However, the C++ content type does not have .c files mapped to it.
This, in theory, makes sense. However, this prevents the .c files from
being included, because the Tool reports that this extension should be
filtered for the C++ project nature. That's bad.
This is complicated further because most compilers have a switch that
says "treat C files as C++" files. That means C files *are* C++
files... sometimes.
So, my questions are:
1) Should .c be mapped to both the C and C++ content types?
2) If so, what are the ramifications if one extension is mapped to more
than one content type?
We can certainly work around this to fix MBS if the answer to 1) is
"no", but I think that this is a question that affects many other
features as well. E.g., now I'm wondering what happens if you load up a
C file but really it's going to be built as C++, so it *should* be
parsed and highlighted as C++...
___________________________________________
Chris Recoskie
Software Designer
IDE Frameworks Group
Texas Instruments, Toronto
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On
Behalf Of Recoskie, Chris
Sent: Friday, June 17, 2005 2:07 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] M7b tagged and build under way
There were a couple of nasty bugs reported against managed build this
morning. https://bugs.eclipse.org/bugs/show_bug.cgi?id=100581 is of
particular concern. Right now I don't think it should hold up M7
unless
it's going to inhibit the testers. I'm going to take a look at this
problem this afternoon and see just how bad it is.
___________________________________________
Chris Recoskie
Software Designer
IDE Frameworks Group
Texas Instruments, Toronto
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx
[mailto:cdt-dev-bounces@xxxxxxxxxxx]
On
Behalf Of Doug Schaefer
Sent: Friday, June 17, 2005 11:09 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] M7b tagged and build under way
Hey gang,
I've just tagged CDT_3_0_M7b and started up the build. Hopefully
this
is
it for M7.
Cheers,
--
Doug Schaefer, Senior Software Developer
IBM Rational Software, Ottawa Lab
Kanata, Ontario, Canada
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
--
Doug Schaefer, Senior Software Developer
IBM Rational Software, Ottawa Lab
Kanata, Ontario, Canada