tmlen
tmlen

Reputation: 9092

Make Clion consider ".h" files as C++

Is there a way to make CLion consider single files with ".h" extension as C++ by default and not C?

If they are not included in the CMake script, and there is no corresponding ".cc" file, it consideres them as C by default for the syntax highlighing.

Upvotes: 0

Views: 188

Answers (1)

nastasiak2512
nastasiak2512

Reputation: 1937

In current 2018.1 version it should be treated properly as C++, one limitation is: if there is no C++ files in the configuration at all, then C will be selected.

Upvotes: 1

Related Questions