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. Creator: clangd uses wrong C++ version - how to fix?
Qt 6.11 is out! See what's new in the release blog

Creator: clangd uses wrong C++ version - how to fix?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 352 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.
  • A Offline
    A Offline
    Asperamanca
    wrote last edited by
    #1

    I'm building my project with C++23 on Windows using llvm for coverage generation.
    In that configuration, my project builds fine, but clangd complains about "unknown typename concept", which seems like a dead giveaway it's trying to use C++17.

    How can I tell clangd to use the same standard version that's also used for compilation?

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote last edited by
      #2

      Go to Tools > Debug Qt Creator > Inspect C++ Code Model ... there you should get access to some information that the code model uses.

      Otherwise you would have to enable some logging to get more info.

      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