waf: Create clang compilation database
authorAndreas Schneider <asn@samba.org>
Tue, 25 Sep 2018 16:13:26 +0000 (18:13 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 24 Oct 2019 06:48:08 +0000 (06:48 +0000)
http://clang.llvm.org/docs/JSONCompilationDatabase.html

This can be used by ymcd or clangd.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
buildtools/wafsamba/wscript

index ce5e0b48fc1060ae18493b5b25d219b37dfdcf78..2b4423e2fa720de009b728d9471e204b41f35ca7 100644 (file)
@@ -597,6 +597,8 @@ struct foo bar = { .y = 'X', .x = 1 };
     if conf.env.enable_libfuzzer:
         conf.DEFINE('ENABLE_LIBFUZZER', 1)
 
+    conf.load('clang_compilation_database')
+
     conf.SAMBA_BUILD_ENV()