mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Comment adjustment.
This commit is contained in:
parent
4738597265
commit
021c9c38af
1 changed files with 7 additions and 6 deletions
|
@ -12,11 +12,6 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.pdom;
|
package org.eclipse.cdt.internal.core.pdom;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
|
import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
|
||||||
import org.eclipse.cdt.core.dom.ast.IASTName;
|
import org.eclipse.cdt.core.dom.ast.IASTName;
|
||||||
import org.eclipse.cdt.core.dom.ast.IASTNode;
|
import org.eclipse.cdt.core.dom.ast.IASTNode;
|
||||||
|
@ -46,6 +41,11 @@ import org.eclipse.cdt.internal.core.pdom.dom.PDOMMacroReferenceName;
|
||||||
import org.eclipse.cdt.internal.core.pdom.dom.PDOMName;
|
import org.eclipse.cdt.internal.core.pdom.dom.PDOMName;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public class WritablePDOM extends PDOM implements IWritableIndexFragment {
|
public class WritablePDOM extends PDOM implements IWritableIndexFragment {
|
||||||
private boolean fClearedBecauseOfVersionMismatch= false;
|
private boolean fClearedBecauseOfVersionMismatch= false;
|
||||||
private boolean fCreatedFromScratch= false;
|
private boolean fCreatedFromScratch= false;
|
||||||
|
@ -322,7 +322,8 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment {
|
||||||
if (fileBeingUpdated == null) {
|
if (fileBeingUpdated == null) {
|
||||||
return binding.hasDefinition();
|
return binding.hasDefinition();
|
||||||
}
|
}
|
||||||
// Definitions in fileBeingUpdated will soon go away, so look for a definition elsewhere.
|
// Definitions in fileBeingUpdated will be removed when the file is committed, so look for
|
||||||
|
// a definition elsewhere.
|
||||||
for (PDOMName name = binding.getFirstDefinition(); name != null; name = name.getNextInBinding()) {
|
for (PDOMName name = binding.getFirstDefinition(); name != null; name = name.getNextInBinding()) {
|
||||||
if (!fileBeingUpdated.getPDOM().equals(name.getPDOM()) ||
|
if (!fileBeingUpdated.getPDOM().equals(name.getPDOM()) ||
|
||||||
fileBeingUpdated.getRecord() != name.getFileRecord()) {
|
fileBeingUpdated.getRecord() != name.getFileRecord()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue