Eclipse: fix #12417, don't create wrong src pathentries
Actually the Eclipse generator now does not create any CDT_SOURCE pathentries anymore, since I was not able to find out what they are good for, not even by asking on the cdt-dev mailing list. So, at least the warning from eclipse about bad pathentries are gone this way, and I didn't see anything which was not working anymore. Let's see whether we can find out what they are good for. Alex
This commit is contained in:
parent
70de8bd5ae
commit
66bd543b9b
|
@ -695,6 +695,18 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
|
|||
// - make it type 'src'
|
||||
// - and exclude it from type 'out'
|
||||
std::string excludeFromOut;
|
||||
/* I don't know what the pathentry kind="src" are good for, e.g. autocompletion
|
||||
* works also without them. Done wrong, the indexer complains, see #12417
|
||||
* and #12213.
|
||||
* The CDT documentation is very terse on that:
|
||||
* "CDT_SOURCE: Entry kind constant describing a path entry identifying a
|
||||
* folder containing source code to be compiled."
|
||||
* Also on the cdt-dev list didn't bring any information:
|
||||
* http://web.archiveorange.com/archive/v/B4NlJDNIpYoOS1SbxFNy
|
||||
* So I'm disabling them for now, hoping that somebody will report if something
|
||||
* is not workging anymore.
|
||||
* Alex */
|
||||
#ifdef DO_CREATE_SRC_PATH_ENTRIES
|
||||
for (std::vector<std::string>::const_iterator
|
||||
it = this->SrcLinkedResources.begin();
|
||||
it != this->SrcLinkedResources.end();
|
||||
|
@ -711,6 +723,7 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
|
|||
excludeFromOut += this->EscapeForXML(*it) + "/|";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
excludeFromOut += "**/CMakeFiles/";
|
||||
fout << "<pathentry excluding=\"" << excludeFromOut
|
||||
<< "\" kind=\"out\" path=\"\"/>\n";
|
||||
|
|
Loading…
Reference in New Issue