1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 450888 - Index update problem caused by applying significant macros

to a source file
This commit is contained in:
Sergey Prigogin 2014-11-18 20:37:52 -08:00
parent a3e3cec9c1
commit 7608776881
3 changed files with 5 additions and 10 deletions

View file

@ -27,6 +27,7 @@ public class IndexTests extends TestSuite {
suite.addTest(IndexSearchTest.suite());
suite.addTest(IndexIncludeTest.suite());
suite.addTest(IndexUpdateTests.suite());
suite.addTest(IndexUpdateMultiFileTest.suite());
suite.addTest(IndexBugsTests.suite());
suite.addTest(IndexNamesTests.suite());
suite.addTest(TeamSharedIndexTest.suite());

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2013, 2014 Google, Inc and others.
* Copyright (c) 2014 Google, Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -68,8 +68,7 @@ public class IndexUpdateMultiFileTest extends IndexBindingResolutionTestBase {
// waldo(new B<E>());
// }
// };
public void test_450888() throws Exception {
getProblemFromFirstIdentifier("waldo");
// checkBindings();
public void testMacroRemoval_450888() throws Exception {
checkBindings();
}
}

View file

@ -22,7 +22,6 @@ import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNode;
import org.eclipse.cdt.core.dom.ast.IASTPreprocessorIncludeStatement;
import org.eclipse.cdt.core.dom.ast.IASTPreprocessorStatement;
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
import org.eclipse.cdt.core.index.IIndexFile;
import org.eclipse.cdt.core.index.IIndexFileLocation;
import org.eclipse.cdt.core.index.IIndexInclude;
@ -322,11 +321,7 @@ public class WritablePDOM extends PDOM implements IWritableIndexFragment {
if (owner != null)
return owner.getSignificantMacros();
IASTTranslationUnit tu = node.getTranslationUnit();
if (tu != null)
return tu.getSignificantMacros();
return null;
return ISignificantMacros.NONE;
}
@Override