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

Bug 318468

Summary: C++ code templates don't work within #ifdef
Product: [Tools] CDT Reporter: Dmitry Nezhevenko <dion>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: yevshif
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dmitry Nezhevenko CLA 2010-06-30 09:32:28 EDT
Build Identifier: Eclipse 3.6 release, cdt-master-7.0.0-I201006291000.zip

Imagine that you have large definition like (USE_SOME_FEATURE) and you create a template named "uf". So CDT doesn't propose anything for code:

#ifdef uf

#endif

Cursor stands just after "uf" statement.

Expected behavior: uf should be replaced with "USE_SOME_FEATURE".

Reproducible: Always