从Makefile创建compile_commands.json

操作步骤

# https://github.com/nickdiego/compiledb
pip install compiledb

使用方法:

compiledb make



    Enjoy Reading This Article?

    Here are some more articles you might like to read next:

  • al-folio 本地部署记录(Ubuntu 24.04)
  • C++ Traits
  • 道格拉斯-普克算法(Douglas–Peucker algorithm)
  • CMake支持库收集
  • QGC代码架构解析:飞行前检查(起飞条件)