1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2013-11-30 23:07:20 -08:00
parent 772066afce
commit 8852f2d73e

View file

@ -12,14 +12,6 @@
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.pdom; package org.eclipse.cdt.internal.core.pdom;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.dom.ILinkage; import org.eclipse.cdt.core.dom.ILinkage;
import org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier; import org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier;
@ -71,6 +63,14 @@ import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.Status; import org.eclipse.core.runtime.Status;
import org.eclipse.osgi.util.NLS; import org.eclipse.osgi.util.NLS;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
/** /**
* Abstract class to write information from AST. * Abstract class to write information from AST.
* @since 4.0 * @since 4.0
@ -160,11 +160,11 @@ abstract public class PDOMWriter implements IPDOMASTProcessor {
if (fSymbolMap.isEmpty()) if (fSymbolMap.isEmpty())
return true; return true;
for (Symbols symbols : fSymbolMap.values()) for (Symbols symbols : fSymbolMap.values()) {
if (!symbols.fNames.isEmpty() if (!symbols.fNames.isEmpty() || !symbols.fIncludes.isEmpty() || !symbols.fMacros.isEmpty()) {
|| !symbols.fIncludes.isEmpty()
|| !symbols.fMacros.isEmpty())
return false; return false;
}
}
return true; return true;
} }
@ -250,10 +250,10 @@ abstract public class PDOMWriter implements IPDOMASTProcessor {
* When flushIndex is set to <code>false</code>, you must make sure to flush * When flushIndex is set to <code>false</code>, you must make sure to flush
* the index after your last write operation. * the index after your last write operation.
*/ */
final protected void addSymbols(Data data, int storageLinkageID, FileContext ctx, ITodoTaskUpdater taskUpdater, IProgressMonitor pm) throws InterruptedException, final protected void addSymbols(Data data, int storageLinkageID, FileContext ctx,
CoreException { ITodoTaskUpdater taskUpdater, IProgressMonitor pm)
if (data.isEmpty() throws InterruptedException, CoreException {
|| storageLinkageID == ILinkage.NO_LINKAGE_ID) if (data.isEmpty() || storageLinkageID == ILinkage.NO_LINKAGE_ID)
return; return;
if (fShowProblems) { if (fShowProblems) {