Šimon Tóth
Šimon Tóth

Reputation: 36433

Force Eclipse to treat .c files as C++

I'm working with an external project that uses .c file extension for C++ files (they will not change this, I have even sent them a full patch).

Is there any way to force Eclipse (autotools project) to index all .c/.h files as C++?

Upvotes: 4

Views: 1367

Answers (1)

dau_sama
dau_sama

Reputation: 4357

Enter in

Preferences->C/C++->FileTypes

You can see the file association there. It doesn't let me change it in my Eclipse Luna CDT, but what you can do is to override it per project.

Properties->C/C++ General->FileTypes->Use project settings

Upvotes: 3

Related Questions