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:
parent
12b42e0a83
commit
42931e5db1
1 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue