Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[QtCreator 3.1] clang completion treating .h files as C not C++



  • As the title says, renaming my headers to .hpp fixed the issue but it's not a real solution. I have .h as the suffix under C++ in options and it's still an issue.

    When they're as .h I get almost no semantic highlighting and errors about it not knowing what a class is -- obviously trying to parse it as C.

    Am I missing something obvious?


  • Moderators

    Hi, and welcome to the Qt Dev Net!

    The Clang-based code model is very new and is still considered experimental. The development team ackowledges that bugs are present; please report your issue at https://bugreports.qt-project.org/browse/QTCREATORBUG so that they can fix it.


Log in to reply