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``.
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``.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits