Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314014

Summary: C++0x library support no autocompletion
Product: [Tools] CDT Reporter: German <germandiago>
Component: cdt-parserAssignee: Project Inbox <cdt-editor-inbox>
Status: RESOLVED WONTFIX QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description German CLA 2010-05-22 08:53:40 EDT
Build Identifier: I20100513-1500

Eclipse already parses rvalue references and many of the c++0x features. Unfortunately, it ignores code autocompletion for forward_list, unordered_map, etc.

Reproducible: Always

Steps to Reproduce:
1.Open eclipse
2. Include c++0x file, such as unordered_map or forward_list
3. Try to autocomplete code.

I think this is related to some predefined macro not being defined when -std=c++0x is included, so it skips autocompletion. But I don't know for sure.
Comment 1 German CLA 2010-05-24 07:50:13 EDT
if you define __GXX_EXPERIMENTAL_CXX0X__ 1 in paths and symbols, autocompletion
works smoothly. Would be nice to add this if you define -std=c++0x
Comment 2 Markus Schorn CLA 2010-05-25 04:02:12 EDT
In the project properties under 'C/C++ Build - Discovery Options' you can add the command line argument '-std=c++0x'. With that the discovery will detect gcc's configuration for the experimental c++0x support.