Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314014 - C++0x library support no autocompletion
Summary: C++0x library support no autocompletion
Status: RESOLVED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-22 08:53 EDT by German CLA
Modified: 2010-05-25 04:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.