Skip to content

Commit

Permalink
[docs] [clang] Small documentation change for compilation databases
Browse files Browse the repository at this point in the history
We have an page dedicated to compliation databases including
various ways to generate them, but we don't mention that clang
has a built in method to do this.  This addresses that.

Reviewed By: joerg

Differential Revision: https://reviews.llvm.org/D116882
  • Loading branch information
croepha authored and smeenai committed Jan 23, 2022
1 parent c1988db commit b846795
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/docs/JSONCompilationDatabase.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ system is not necessarily the best solution:
Supported Systems
=================

Clang has the ablity to generate compilation database fragments via
the :option:`-MJ argument <clang -MJ\<arg>>`. You can concatenate those
fragments together between ``[`` and ``]`` to create a compilation database.

Currently `CMake <https://cmake.org>`_ (since 2.8.5) supports generation
of compilation databases for Unix Makefile builds (Ninja builds in the
works) with the option ``CMAKE_EXPORT_COMPILE_COMMANDS``.
Expand Down

0 comments on commit b846795

Please sign in to comment.