tags:

views:

390

answers:

2

Is it possible to set up QtCreator to treat .d files as C sources?

A: 

Are you sure it's the limitation of Qt Creator? It might be something in the compiler, though.

Ariya Hidayat
Sure. There is no "Treat there extensions as c/c++" option
Dev er dev
+1  A: 

There is a file called CppEditor.mimetypes.xml embedded as a resource in the binary executable. This file contains a list of file extensions that are treated as C++ source files.

It can be found in the source tree here: src/plugins/cppeditor/CppEditor.mimetypes.xml

I don't think you can change the list without recompiling Qt Creator from source.

atomice