[CEDET-devel] Completion problem with Qt
Brought to you by:
zappo
From: Hannu K. <az...@ik...> - 2010-03-23 22:25:04
|
Greetings, #include <QKeyEvent> int main() { Qt::Ke<M-x semantic-analyze-debug-assist RET> } => --------------------------------------------------------------- Cannot find prefix "Ke" in datatype: namespace Qt {} Semantic may not have found all possible namespaces with the name Qt. You can debug the entire typecache, including merged namespaces with the command: M-x semanticdb-typecache-dump RET [ Do It ] Possible completions are: enum Key {} enum KeyboardModifier {} Known members of Qt: "enum GlobalColor {}" ... "enum Key {}" ... --------------------------------------------------------------- What does "Cannot find prefix "Ke" in datatype: namespace Qt {}" mean? Below it seems to list completions beginning with "Ke" anyway. The actual problem: #include <QKeyEvent> int main() { Qt::Key<M-x semantic-analyze-debug-assist RET> } => --------------------------------------------------------------- Unable to find datatype for: "enum Key {}". Declared type is: "enum" Semantic could not find this data type in any of its global tables. --------------------------------------------------------------- So if I try to complete Qt::Ke, it can find enum Key {}, but if I try to complete Qt::Key, it cannot find it? It also no longer can find Qt::KeyboardModifier. Difficult to interpret, this is. I'm using CEDET from CVS and Qt 4.6 with configuration for CEDET as follows: (defvar qt4-include-base-dir (if (file-exists-p "~/sroot/usr/include/qt4") "~/sroot/usr/include/qt4" "/usr/include/qt4")) (defun se::setup-ede-projects () (interactive) ;; Qt4 (loop for dir in (directory-files qt4-include-base-dir t "^Q") do (semantic-add-system-include dir 'c++-mode)) (semantic-add-system-include qt4-include-base-dir 'c++-mode) (add-to-list 'auto-mode-alist (cons (expand-file-name qt4-include-base-dir) 'c++-mode)) (add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-include-base-dir "/Qt/qconfig.h")) (add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-include-base-dir "/Qt/qconfig-dist.h")) (add-to-list 'semantic-lex-c-preprocessor-symbol-file (concat qt4-include-base-dir "/Qt/qglobal.h"))) Any ideas? -- Hannu |