[clang] clang documentation: Update outdated CMake Ninja support mention (PR #215803)

Brice Decaestecker via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 12 06:33:36 PDT 2026


https://github.com/NyuB created https://github.com/llvm/llvm-project/pull/215803

CMake now supports CMAKE_EXPORT_COMPILE_COMMANDS for Ninja too.

>From a26ada06c6f1aeaf87f2aee5aba7d50876173b37 Mon Sep 17 00:00:00 2001
From: Brice Decaestecker <37740771+NyuB at users.noreply.github.com>
Date: Wed, 12 Aug 2026 15:31:47 +0200
Subject: [PATCH] Update outdated CMake Ninja support mention

CMake now supports EXPORT_COMPILE_COMMANDS for Ninja too.
---
 clang/docs/JSONCompilationDatabase.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/docs/JSONCompilationDatabase.md b/clang/docs/JSONCompilationDatabase.md
index 35fdea8fc3b1a..436e2ebd97e88 100644
--- a/clang/docs/JSONCompilationDatabase.md
+++ b/clang/docs/JSONCompilationDatabase.md
@@ -30,8 +30,8 @@ Clang has the ability to generate compilation database fragments via
 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`.
+of compilation databases for `Unix Makefile` and `Ninja` builds with
+the option `CMAKE_EXPORT_COMPILE_COMMANDS`.
 
 For projects on Linux, there is an alternative to intercept compiler
 calls with a tool called [Bear](https://github.com/rizsotto/Bear).



More information about the cfe-commits mailing list