1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45: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:
Anton Leherbauer 2008-10-24 12:39:00 +00:00
parent e91a1c6dc9
commit 24c596e1a5

View file

@ -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
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -52,7 +52,7 @@ public class CContentTypes {
if (usesProjectSpecificContentTypes(project)) {
scopeCtx= new ProjectScope(project);
}
preferCpp= CoreModel.hasCCNature(project);
preferCpp= CoreModel.hasCCNature(project) || !CoreModel.hasCNature(project);
} catch (CoreException e) {
// fallback to workspace wide definitions.
matcher= Platform.getContentTypeManager();