Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2013-07-05 17:33:57 +0000
committerAndrew Gvozdev2013-07-05 17:49:48 +0000
commitcb5b5c955aa30e45cb7a6753ab56b4ecbc83109e (patch)
tree57890ef91c5894d276adcb5c9430ef1eabeb5f57 /build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor
parent01bfa48d40bbb3d2b2f7d658afee8c1379788d00 (diff)
downloadorg.eclipse.cdt-cb5b5c955aa30e45cb7a6753ab56b4ecbc83109e.tar.gz
org.eclipse.cdt-cb5b5c955aa30e45cb7a6753ab56b4ecbc83109e.tar.xz
org.eclipse.cdt-cb5b5c955aa30e45cb7a6753ab56b4ecbc83109e.zip
Bug 412346: Makefile Editor: F3 navigation to user defined functions from $(call user-fun)
Diffstat (limited to 'build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/OpenDeclarationAction.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/OpenDeclarationAction.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/OpenDeclarationAction.java
index fa33d4dd5ac..9ba05f8c109 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/OpenDeclarationAction.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/OpenDeclarationAction.java
@@ -58,9 +58,8 @@ public class OpenDeclarationAction extends TextEditorAction {
String name = wordPart.getName();
if (wordPart.isMacro()) {
directives = makefile.getMacroDefinitions(name);
- if (directives.length == 0) {
- directives = makefile.getBuiltinMacroDefinitions(name);
- }
+ } else if (wordPart.isFunctionCall()) {
+ directives = makefile.getMacroDefinitions(wordPart.getName());
} else if (wordPart.isIncludeDirective()) {
String incFile = wordPart.getName();
incFile = makefile.expandString(incFile, true);

Back to the top