[anjuta] symbol-db: bgo #614846 enhance C++ class view



commit 157cd1bb95f25bc7dd3cf9930b4ea32c343fd983
Author: Naba Kumar <naba gnome org>
Date:   Mon Apr 5 21:59:40 2010 +0300

    symbol-db: bgo #614846 enhance C++ class view

 plugins/symbol-db/symbol-db-engine-queries.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-queries.c b/plugins/symbol-db/symbol-db-engine-queries.c
index a5f6d96..62b13a8 100644
--- a/plugins/symbol-db/symbol-db-engine-queries.c
+++ b/plugins/symbol-db/symbol-db-engine-queries.c
@@ -1558,7 +1558,11 @@ symbol_db_engine_get_file_symbols (SymbolDBEngine *dbe,
 		    "symbol.returntype AS returntype, file.file_path AS db_file_path "
 			"%s FROM symbol "
 				"JOIN file ON symbol.file_defined_id = file.file_id "
-			"%s WHERE file.file_path = ## /* name:'filepath' type:gchararray */ "
+			"%s WHERE (symbol.scope_id = 0 AND file.file_path = ## /* name:'filepath' type:gchararray */) "
+		    "or symbol.symbol_id in (select scope_id from symbol join file on "
+			"symbol.file_defined_id = file.file_id where "
+			"file.file_path = ## /* name:'filepath' type:gchararray */ "
+			"group by symbol.scope_id) "
 			"ORDER BY symbol.file_position %s %s", 
 						info_data->str, join_data->str, limit, offset);
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]