1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 348039 - When creating new class project header file is treated as system include.

This commit is contained in:
Sergey Prigogin 2011-06-02 02:47:38 +00:00
parent 12b42e0a83
commit 42931e5db1

View file

@ -1055,7 +1055,8 @@ public class NewClassCodeGenerator {
IPath includePath = PathUtil.makeRelativePathToProjectIncludes(headerLocation, project);
boolean isSystemIncludePath = false;
if (includePath != null && !projectLocation.isPrefixOf(headerLocation)) {
if (headerTU.getResource() == null && includePath != null
&& !projectLocation.isPrefixOf(headerLocation)) {
isSystemIncludePath = true;
} else if (projectLocation.isPrefixOf(headerLocation)
&& projectLocation.isPrefixOf(sourceLocation)) {