Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX 6.6 Momentics, Intellisense and C++11: (1 Item)
   
QNX 6.6 Momentics, Intellisense and C++11  
Hi,

I'm trying to get full intellisense with C++11 features in QNX C++ Projects in the QNX 6.6 Momentics IDE.

My testcase is something like:

#include <memory>

class A
{
	public: void foo() {};
};
int main(int argc, char *argv[]) {
	std::unique_ptr<A> finst;
	finst->foo();
	return EXIT_SUCCESS;
}


This compiles fine and Intellisense knows enough about std::unique_ptr to autocomplete the name.
What doesn't work is showing the type of finst in the autocomplete-dropdown (Type f and press CTRL-SPACE, then continue 
typing). The dropdown shows "finst: *", so it can't resolve the name.

I was able to get this working by enabling "Enable language settings providers for this project" in the project settings
 unter "C/C++ General -> Preprocessor...". Then I added the "CDT GCC Built-In Compiler Settings" and changed the command
 to "ntox86-${COMMAND} -std=c++0x -x c++ -E -P -v -dD ${INPUTS}".
After deleting the cache files and restarting the IDE, intellisnse worked and 
finst-> CTRL+SPACE showed "A" and "foo()" in the dropdown list.

Sadly this disables the indexing of include paths given under project settings "QNX C/C++ Project -> Compiler -> Extra 
include paths". So it is not an option to use the "CDT GCC Built-In Compiler Settings".

How does the QNX Project add symbols to the indexer? I think it is supposed to provide an indexing provider like the one
 used for pure C++ projects (CDT Managed Build Settings Entries)

Jörg