| Summary: | invalid added include position if pragma once is used. | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Vasiliy Dybala <dibalavs> |
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Anton Leherbauer <aleherb+eclipse> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, yevshif, zeratul976 |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
This is working fine for me with CDT 8.8.1. The include line is added after the #pragma once. |
1. create new c++ project 2. create file test.h with content: /* * header comment */ #pragma once void t() { printf("tst"); } 3. Move cursor to function printf and choose source\add Include. include line will be added at first line, before #pragma once directive and befor file header comment. -- Configuration Details -- Product: Eclipse 1.4.0.20110319-2300 (org.eclipse.epp.package.cpp.product) Installed Features: org.eclipse.platform 3.7.0.r20110302-9gF7SHCIFt6ms-lIjrC6vK_XO-IabJMKu