Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-09-28 04:59:08 +0000
committerNathan Ridge2018-09-30 23:05:40 +0000
commitdcc09f1975db6916f09a3ae5dd800040bed5e3b2 (patch)
tree7467f9473a3ac5a52e1dce1b651c100960da495b /core/org.eclipse.cdt.ui.tests
parentfde7476a1abe1bea1e8cdfecef682e6920ef4bf6 (diff)
downloadorg.eclipse.cdt-dcc09f1975db6916f09a3ae5dd800040bed5e3b2.tar.gz
org.eclipse.cdt-dcc09f1975db6916f09a3ae5dd800040bed5e3b2.tar.xz
org.eclipse.cdt-dcc09f1975db6916f09a3ae5dd800040bed5e3b2.zip
Bug 539535 - Originate an accurate lookup point in CPPASTFieldReference.createEvaluation()
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java
index 46abaa0e33b..388986fb141 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/SemanticHighlightingTest.java
@@ -740,4 +740,20 @@ public class SemanticHighlightingTest extends TestCase {
ignoredHighlightings.add(SemanticHighlightings.OVERLOADED_OPERATOR);
makeAssertions(ignoredHighlightings);
}
+
+ // struct S { //$class
+ // int waldo; //$field
+ // };
+ // struct Iter { //$class
+ // S operator*(); //$class,methodDeclaration
+ // };
+ // int main() { //$functionDeclaration
+ // Iter it; //$class,localVariableDeclaration
+ // // TODO: The fact that the opening parenthesis gets its own overloadedOperator
+ // // semantic highlighting is an (unrelated) bug.
+ // 1 + (*it).waldo; //$overloadedOperator,overloadedOperator,localVariable,field
+ // }
+ public void testOverloadedOperatorStar_539535() throws Exception {
+ makeAssertions();
+ }
}

Back to the top