Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. You can generate a compile_commands.json with Qt Creator?! What?

You can generate a compile_commands.json with Qt Creator?! What?

Scheduled Pinned Locked Moved Unsolved Showcase
2 Posts 2 Posters 4.9k Views
  • 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.
  • W Offline
    W Offline
    WilliamMadyam
    Banned
    wrote on 29 Feb 2020, 16:41 last edited by VRonin 10 Apr 2021, 16:23
    #1

    Very cool to see this feature implemented. It must've been added some time within the last few months?

    Build >> Generate Compilation Database

    I'm curious. Is there any ways to use this new utility from the command line? (I know you could use utilities like Bear, but if I could get this working with Qt's own utility, I feel it will be more seamless)

    Emacs Qt development here I come!

    Edit: [VRonin] removed links

    1 Reply Last reply
    1
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 1 Mar 2020, 08:58 last edited by
      #2

      @WilliamMadyam said in You can generate a compile_commands.json with Qt Creator?! What?:

      I'm curious. Is there any ways to use this new utility from the command line?

      -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

      So adding such a flag to the IDE isn't really a big deal... and it's there since CMake 3.5 so it's not new either :)

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      2/2

      1 Mar 2020, 08:58

      • Login

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