Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [QtCreator 3.1] clang completion treating .h files as C not C++
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 990 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RSW-
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved