mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
Bug 251991 - .h files in a non-C/C++ project are treated as C instead of C++
This commit is contained in:
parent
e91a1c6dc9
commit
24c596e1a5
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2007 Wind River Systems, Inc. and others.
|
* Copyright (c) 2006, 2008 Wind River Systems, Inc. and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -52,7 +52,7 @@ public class CContentTypes {
|
||||||
if (usesProjectSpecificContentTypes(project)) {
|
if (usesProjectSpecificContentTypes(project)) {
|
||||||
scopeCtx= new ProjectScope(project);
|
scopeCtx= new ProjectScope(project);
|
||||||
}
|
}
|
||||||
preferCpp= CoreModel.hasCCNature(project);
|
preferCpp= CoreModel.hasCCNature(project) || !CoreModel.hasCNature(project);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
// fallback to workspace wide definitions.
|
// fallback to workspace wide definitions.
|
||||||
matcher= Platform.getContentTypeManager();
|
matcher= Platform.getContentTypeManager();
|
||||||
|
|
Loading…
Add table
Reference in a new issue