View | Details | Raw Unified | Return to bug 199598
Collapse All | Expand All

(-)parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTQualifiedName.java (-1 / +2 lines)
Lines 23-28 Link Here
23
import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclaration;
23
import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclaration;
24
import org.eclipse.cdt.core.dom.ast.IBinding;
24
import org.eclipse.cdt.core.dom.ast.IBinding;
25
import org.eclipse.cdt.core.dom.ast.IEnumerator;
25
import org.eclipse.cdt.core.dom.ast.IEnumerator;
26
import org.eclipse.cdt.core.dom.ast.IEnumeration;
26
import org.eclipse.cdt.core.dom.ast.IField;
27
import org.eclipse.cdt.core.dom.ast.IField;
27
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTConversionName;
28
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTConversionName;
28
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTOperatorName;
29
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTOperatorName;
Lines 355-361 Link Here
355
				} else if (bindings[i] instanceof ICPPClassType) {
356
				} else if (bindings[i] instanceof ICPPClassType) {
356
					ICPPClassType type = (ICPPClassType) bindings[i];
357
					ICPPClassType type = (ICPPClassType) bindings[i];
357
					if (type.isSameType(classType)) continue;
358
					if (type.isSameType(classType)) continue;
358
				} else if (!(bindings[i] instanceof IEnumerator) || isDeclaration) {
359
				} else if (!(bindings[i] instanceof IEnumerator || bindings[i] instanceof IEnumeration) || isDeclaration) {
359
					continue;
360
					continue;
360
				}
361
				}
361
				
362
				
(-)ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java (+10 lines)
Lines 889-892 Link Here
889
		final String[] expected= new String[0];
889
		final String[] expected= new String[0];
890
		assertCompletionResults(fCursorOffset, expected, AbstractContentAssistTest.COMPARE_REP_STRINGS);
890
		assertCompletionResults(fCursorOffset, expected, AbstractContentAssistTest.COMPARE_REP_STRINGS);
891
	}
891
	}
892
	
893
    // void test() {
894
    //    C1::/*cursor*/
895
	public void testEnumInClass_bug199598() throws Exception {
896
		// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=199598
897
		final String[] expected= {
898
				"E2", "e21", "e22"
899
		};
900
		assertCompletionResults(fCursorOffset, expected, AbstractContentAssistTest.COMPARE_ID_STRINGS);
901
	}
892
}
902
}

Return to bug 199598