diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IPDOMIndexer.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IPDOMIndexer.java
index 55646c9c9dd..d930ac474a4 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IPDOMIndexer.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IPDOMIndexer.java
@@ -6,11 +6,10 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Doug Schaefer (QNX) - Initial API and implementation
- * Andrew Ferguson (Symbian)
- * Markus Schorn (Wind River Systems)
+ * Doug Schaefer (QNX) - Initial API and implementation
+ * Andrew Ferguson (Symbian)
+ * Markus Schorn (Wind River Systems)
*******************************************************************************/
-
package org.eclipse.cdt.core.dom;
import java.util.Properties;
@@ -18,14 +17,19 @@ import java.util.Properties;
import org.eclipse.cdt.core.model.ICProject;
import org.eclipse.cdt.core.model.ITranslationUnit;
-
/**
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IPDOMIndexer {
-
+ /**
+ * Sets the project for which to build the index.
+ */
public void setProject(ICProject project);
+
+ /**
+ * Returns the project associated with the indexer.
+ */
public ICProject getProject();
/**
@@ -58,5 +62,6 @@ public interface IPDOMIndexer {
* Creates a task that handles the changes.
* @since 4.0
*/
- public IPDOMIndexerTask createTask(ITranslationUnit[] added, ITranslationUnit[] changed, ITranslationUnit[] removed);
+ public IPDOMIndexerTask createTask(ITranslationUnit[] added, ITranslationUnit[] changed,
+ ITranslationUnit[] removed);
}
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IParserConfiguration.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IParserConfiguration.java
index 7023f3f19eb..0aa3e78e7df 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IParserConfiguration.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/IParserConfiguration.java
@@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * IBM - Initial API and implementation
+ * IBM - Initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.core.dom;
@@ -21,17 +21,13 @@ import org.eclipse.cdt.core.parser.IScannerInfo;
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IParserConfiguration {
-
/**
- * @return IScannerInfo representing the build information required to
- * parse.
+ * @return IScannerInfo representing the build information required to parse.
*/
public IScannerInfo getScannerInfo();
- // TODO this may change
/**
* @return String representing dialect name for the language
*/
public String getParserDialect();
-
}
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/parser/AbstractCLikeLanguage.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/parser/AbstractCLikeLanguage.java
index 4d3ce346104..5857fe00dbe 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/parser/AbstractCLikeLanguage.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/parser/AbstractCLikeLanguage.java
@@ -49,13 +49,6 @@ import org.eclipse.core.runtime.CoreException;
* {@link AbstractCLikeLanguage#createParser(IScanner scanner, ParserMode parserMode,
* IParserLogService logService, IIndex index)}.
*
- *
- * EXPERIMENTAL. This class or interface has been added as
- * part of a work in progress. There is no guarantee that this API will work or
- * that it will remain the same. Please do not use this API without consulting
- * with the CDT team.
- *
- *
* @see AbstractScannerExtensionConfiguration
*
* @since 5.0
@@ -69,7 +62,8 @@ public abstract class AbstractCLikeLanguage extends AbstractLanguage implements
private List nameList= new ArrayList();
- @Override public int visit(IASTName name) {
+ @Override
+ public int visit(IASTName name) {
nameList.add(name);
return PROCESS_CONTINUE;
}
@@ -132,7 +126,7 @@ public abstract class AbstractCLikeLanguage extends AbstractLanguage implements
final ISourceCodeParser parser= createParser(scanner, log, index, false, options);
- // make it possible to cancel parser by reconciler - http://bugs.eclipse.org/226682
+ // Make it possible to cancel parser by reconciler - http://bugs.eclipse.org/226682
ICanceler canceler= null;
if (log instanceof ICanceler) {
canceler= (ICanceler) log;
@@ -143,7 +137,7 @@ public abstract class AbstractCLikeLanguage extends AbstractLanguage implements
parser.cancel();
}});
}
-
+
try {
// Parse
IASTTranslationUnit ast= parser.parse();
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ExtendedScannerInfo.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ExtendedScannerInfo.java
index 92be2a93c94..cd34f777dfb 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ExtendedScannerInfo.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ExtendedScannerInfo.java
@@ -6,19 +6,19 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * IBM Rational Software - Initial API and implementation
- * Markus Schorn (Wind River Systems)
+ * IBM Rational Software - Initial API and implementation
+ * Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.core.parser;
import java.util.Map;
/**
- * Implementation for the {@link IExtendedScannerInfo} interface. Allows to configure the preprocessor.
+ * Implementation for the {@link IExtendedScannerInfo} interface. Allows to configure
+ * the preprocessor.
*/
public class ExtendedScannerInfo extends ScannerInfo implements IExtendedScannerInfo {
-
- private static final String[] EMPTY_STRING_ARRAY = new String[0];
+ private static final String[] EMPTY_STRING_ARRAY = {};
private String[] macroFiles;
private String[] includeFiles;
private String[] localIncludePaths;
@@ -32,7 +32,6 @@ public class ExtendedScannerInfo extends ScannerInfo implements IExtendedScanner
public ExtendedScannerInfo(Map definedSymbols, String[] includePaths,
String[] macroFiles, String[] includeFiles) {
-
super(definedSymbols, includePaths);
this.macroFiles = macroFiles;
this.includeFiles = includeFiles;
@@ -43,7 +42,6 @@ public class ExtendedScannerInfo extends ScannerInfo implements IExtendedScanner
*/
public ExtendedScannerInfo(Map definedSymbols, String[] includePaths,
String[] macroFiles, String[] includeFiles, String[] localIncludePaths) {
-
super(definedSymbols, includePaths);
this.macroFiles = macroFiles;
this.includeFiles = includeFiles;
@@ -60,9 +58,6 @@ public class ExtendedScannerInfo extends ScannerInfo implements IExtendedScanner
}
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.parser.IExtendedScannerInfo#getMacroFiles()
- */
@Override
public String[] getMacroFiles() {
if (macroFiles == null)
@@ -70,9 +65,6 @@ public class ExtendedScannerInfo extends ScannerInfo implements IExtendedScanner
return macroFiles;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.parser.IExtendedScannerInfo#getIncludeFiles()
- */
@Override
public String[] getIncludeFiles() {
if (includeFiles == null)
@@ -80,9 +72,6 @@ public class ExtendedScannerInfo extends ScannerInfo implements IExtendedScanner
return includeFiles;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.parser.IExtendedScannerInfo#getLocalIncludePath()
- */
@Override
public String[] getLocalIncludePath() {
if (localIncludePaths == null)
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IExtendedScannerInfo.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IExtendedScannerInfo.java
index 8918ada67b5..b8f3dc78043 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IExtendedScannerInfo.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IExtendedScannerInfo.java
@@ -6,8 +6,8 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * John Camelon, IBM Rational Software - Initial API and implementation
- * Markus Schorn (Wind River Systems)
+ * John Camelon, IBM Rational Software - Initial API and implementation
+ * Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.core.parser;
@@ -15,26 +15,25 @@ package org.eclipse.cdt.core.parser;
* Extension to {@link IScannerInfo}, allows for providing additional preprocessor options.
*/
public interface IExtendedScannerInfo extends IScannerInfo {
-
/**
- * Return an array of files which will be preprocessed before parsing the translation-unit in order
- * to populate the macro-dictionary.
+ * Return an array of files which will be preprocessed before parsing the translation-unit in
+ * order to populate the macro-dictionary.
*/
- public String [] getMacroFiles();
+ public String[] getMacroFiles();
/**
- * Return an array of files that will be parsed before parsing the translation-unit as if the these
- * files were included using include directives.
+ * Return an array of files that will be parsed before parsing the translation-unit as if
+ * the these files were included using include directives.
*/
- public String [] getIncludeFiles();
+ public String[] getIncludeFiles();
/**
- * Return an array of paths that is searched after the current directory, when an include directive
- * with double-quotes is processed.
+ * Return an array of paths that is searched after the current directory, when an include
+ * directive with double-quotes is processed.
*
* In order to suppress the use of the directory of the current file (side effect of gcc option
* -I-) you can pass '-' as one of the include paths. Other than that, the '-' will not have an
* effect, in particular it will not split the include path as the -I- option would do.
*/
- public String [] getLocalIncludePath();
+ public String[] getLocalIncludePath();
}
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ScannerInfo.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ScannerInfo.java
index cab4145565e..81042b89ad8 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ScannerInfo.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ScannerInfo.java
@@ -35,17 +35,11 @@ public class ScannerInfo implements IScannerInfo {
includePaths = includeSearchPath != null ? includeSearchPath : new String[] {};
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.parser.IScannerInfo#getDefinedSymbols()
- */
@Override
public Map getDefinedSymbols() {
return definedSymbols;
}
- /* (non-Javadoc)
- * @see org.eclipse.cdt.core.parser.IScannerInfo#getIncludePaths()
- */
@Override
public String[] getIncludePaths() {
return includePaths;
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/IndexerPreferences.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/IndexerPreferences.java
index 36db25ed355..d233467f0e0 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/IndexerPreferences.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/IndexerPreferences.java
@@ -264,9 +264,9 @@ public class IndexerPreferences {
if (project != null) {
switch (scope) {
case SCOPE_PROJECT_PRIVATE:
- return new Preferences[] {getLocalPreferences(project)};
+ return new Preferences[] { getLocalPreferences(project) };
case SCOPE_PROJECT_SHARED:
- return new Preferences[] {getProjectPreferences(project)};
+ return new Preferences[] { getProjectPreferences(project) };
}
}
return getInstancePreferencesArray();