Community
Participate
Working Groups
With the fix from bug 323556 it is again possible to open C++ file from CVS/git history directly and syntax highlighting is working fine. But override indicator is not shown in that situation.
Many features are not available like Outline, marking occurrences, hyperlinks, etc. This could be a more general problem. I tried opening a java file from the git history and the majority of the editor features worked.
It seems JDT handles this by creating a "fake" compilation unit, see CompilationUnitDocumentProvider.createFakeCompiltationUnit. I have started porting the code blindly to CDT, I'm not sure how far I'll get.
CQ:WIND00275014
See also bug 483386, which is a similar request for semantic highlighting. I wrote some analysis in bug 483386 comment 2.(In reply to Marc-André Laperle from comment #2)
(In reply to Marc-André Laperle from comment #2) > It seems JDT handles this by creating a "fake" compilation unit, see > CompilationUnitDocumentProvider.createFakeCompiltationUnit. I have started > porting the code blindly to CDT, I'm not sure how far I'll get. Do you have some work in progress to share, in case someone would like to pick this up?
(In reply to Nathan Ridge from comment #5) > (In reply to Marc-André Laperle from comment #2) > > It seems JDT handles this by creating a "fake" compilation unit, see > > CompilationUnitDocumentProvider.createFakeCompiltationUnit. I have started > > porting the code blindly to CDT, I'm not sure how far I'll get. > > Do you have some work in progress to share, in case someone would like to > pick this up? Unfortunately, this was a long time ago and I don't have the work any more. But there was not that much value to it as it was mostly copy/pasted code from JDT with tons of unresolved errors. I think looking at CompilationUnitDocumentProvider.createFakeCompiltationUnit is still a valid place to start.