Community
Participate
Working Groups
The method getASTTranslationUnit on GCCLanguage and GPPLanguage uses org.eclipse.cdt.internal.core.parser.ParserLogService to log parse errors. ParserLogService calls org.eclipse.cdt.internal.core.model.Util.log() which delegates logging to CCorePlugin. This is not practical for someone who wants to use the parser outside of CDT. They should be given the opportunity to provide their own IParserLogService instead of relying on what CCorePlugin provides. I'm proposing to change the signature of ILanguage.getASTTranslationUnit() to allow a client to pass their own logger. Perhaps something like this: public IASTTranslationUnit getASTTranslationUnit(CodeReader reader, IScannerInfo scanInfo, ICodeReaderFactory fileCreator, IIndex index, IParserLogService log) throws CoreException;
Patch in progress
Created attachment 54478 [details] Patch from Jason Montojo
Created attachment 54479 [details] Patch from Jason Montojo
Applied to HEAD.