Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
Qt Creator 2.2.0, Qt Creator 2.7.0, Qt Creator 2.8.0-beta
-
None
Description
I use a C API for which I only have headers and binary. To avoid names collition, I confine those backend calls inside a namespace.
Auto-completion can list included symbols but at the root namespace, not inside their namespace.
Example:
/* apibridge.h */ namespace api { extern "C" { /* This include add symbol "api_init()" */ # include "api_header01.h" /* ... */ } } /* ----------------- */ /* Usage: */ void foo::bar() { api_i /* auto-completion suggests api_init() */ api::api_i /* auto-completion suggests nothings */ }
Attachments
Issue Links
- replaces
-
QTCREATORBUG-5393 Namespace not taken into account when #include preprocessing directive is used in place of actual declarations
- Closed