[PATCH] D116882: [docs] [clang] Small documentation change for compilation databases
Dave Butler via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 9 00:56:55 PST 2022
croepha created this revision.
croepha requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116882
Files:
clang/docs/JSONCompilationDatabase.rst
Index: clang/docs/JSONCompilationDatabase.rst
===================================================================
--- clang/docs/JSONCompilationDatabase.rst
+++ clang/docs/JSONCompilationDatabase.rst
@@ -29,6 +29,10 @@
Supported Systems
=================
+Clang has the ablity to generate compilation database fragments via
+the :option:`-MJ argument <clang -MJ\<arg>>`. You can contantinate 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``.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116882.398400.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220109/b0a0c8c6/attachment.bin>
More information about the cfe-commits
mailing list