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?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Showcase
2 Posts 2 Posters 4.9k 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.
  • W Offline
    W Offline
    WilliamMadyam
    Banned
    wrote on last edited by VRonin
    #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
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 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

      • Login

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