Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe2005-07-08 11:03:30 -0400
committerBogdan Gheorghe2005-07-08 11:03:30 -0400
commitbe44a4b99a17f823ab43b3541846bff847b37b07 (patch)
treeb6304a1da07670debbf98410badb5461815988cc
parenta843eb1350d42a6b068ad832206f4d228518a068 (diff)
downloadorg.eclipse.cdt-be44a4b99a17f823ab43b3541846bff847b37b07.tar.gz
org.eclipse.cdt-be44a4b99a17f823ab43b3541846bff847b37b07.tar.xz
org.eclipse.cdt-be44a4b99a17f823ab43b3541846bff847b37b07.zip
Fix for 102783: [ctags] varargs and void param do not show up in the index
-rw-r--r--core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java
index 0c3bf9af4c..76e78ffe0e 100644
--- a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java
+++ b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java
@@ -216,6 +216,11 @@ class CTagEntry{
private char[][] getFunctionSignature() {
String signature = (String) tagExtensionField.get(CTagsConsoleParser.SIGNATURE);
+ if (signature.equals("()")){
+ char[][] voidSignature = new char[1][];
+ voidSignature[0] = "void".toCharArray();
+ return voidSignature;
+ }
return CSearchPattern.scanForParameters(signature);
}

Back to the top