1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Deperecated AbstractCLikeLanguage.getScannerExtensionConfiguration()

method.
This commit is contained in:
Sergey Prigogin 2013-07-12 12:10:48 -07:00
parent 783ae5a2d4
commit 51caa87c54
3 changed files with 25 additions and 7 deletions

View file

@ -66,6 +66,12 @@ public class GCCLanguage extends AbstractCLikeLanguage {
return ILinkage.C_LINKAGE_ID;
}
/**
* @nooverride This method is not intended to be re-implemented or extended by clients.
* @deprecated Since 5.4 not called by the framework. Override
* {@link #getScannerExtensionConfiguration(IScannerInfo)} instead.
*/
@Deprecated
@Override
protected IScannerExtensionConfiguration getScannerExtensionConfiguration() {
return C_GNU_SCANNER_EXTENSION;

View file

@ -65,6 +65,12 @@ public class GPPLanguage extends AbstractCLikeLanguage {
return ILinkage.CPP_LINKAGE_ID;
}
/**
* @nooverride This method is not intended to be re-implemented or extended by clients.
* @deprecated Since 5.4 not called by the framework. Override
* {@link #getScannerExtensionConfiguration(IScannerInfo)} instead.
*/
@Deprecated
@Override
protected IScannerExtensionConfiguration getScannerExtensionConfiguration() {
return CPP_GNU_SCANNER_EXTENSION;

View file

@ -54,7 +54,9 @@ import org.eclipse.core.runtime.CoreException;
* @since 5.0
*/
public abstract class AbstractCLikeLanguage extends AbstractLanguage implements ICLanguageKeywords {
private static final AbstractScannerExtensionConfiguration DUMMY_SCANNER_EXTENSION_CONFIGURATION =
new AbstractScannerExtensionConfiguration() {};
static class NameCollector extends ASTVisitor {
{
shouldVisitNames= true;
@ -74,14 +76,17 @@ public abstract class AbstractCLikeLanguage extends AbstractLanguage implements
}
/**
* @return the scanner extension configuration for this language, may not
* return <code>null</code>
* @nooverride This method is not intended to be re-implemented or extended by clients.
* @deprecated Do not override this method.
* Override {@link #getScannerExtensionConfiguration(IScannerInfo)} instead.
*/
protected abstract IScannerExtensionConfiguration getScannerExtensionConfiguration();
@Deprecated
protected IScannerExtensionConfiguration getScannerExtensionConfiguration() {
return DUMMY_SCANNER_EXTENSION_CONFIGURATION;
}
/**
* @return the scanner extension configuration for this language, may not
* return <code>null</code>
* @return the scanner extension configuration for this language. May not return {@code null}.
* @since 5.4
*/
protected IScannerExtensionConfiguration getScannerExtensionConfiguration(IScannerInfo info) {
@ -181,7 +186,8 @@ public abstract class AbstractCLikeLanguage extends AbstractLanguage implements
* @param log the parser log service
* @param index the index to help resolve bindings
* @param forCompletion whether the parser is used for code completion
* @param options for valid options see {@link AbstractLanguage#getASTTranslationUnit(FileContent, IScannerInfo, IncludeFileContentProvider, IIndex, int, IParserLogService)}
* @param options for valid options see
* {@link AbstractLanguage#getASTTranslationUnit(FileContent, IScannerInfo, IncludeFileContentProvider, IIndex, int, IParserLogService)}
* @return an instance of ISourceCodeParser
*/
protected ISourceCodeParser createParser(IScanner scanner, IParserLogService log, IIndex index, boolean forCompletion, int options) {