From f95264563e9e483a2be3fc4fa3ff393bf2094b70 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Tue, 19 Jan 2021 17:49:54 +0100 Subject: [PATCH] Add more docs to clang_compilation_database --- waflib/extras/clang_compilation_database.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/waflib/extras/clang_compilation_database.py b/waflib/extras/clang_compilation_database.py index ff74e610..17f66949 100644 --- a/waflib/extras/clang_compilation_database.py +++ b/waflib/extras/clang_compilation_database.py @@ -96,6 +96,12 @@ class ClangDbContext(Build.BuildContext): tsk.runnable_status() if hasattr(tsk, 'more_tasks'): lst.extend(tsk.more_tasks) + # Not all dynamic tasks can be processed, in some cases + # one may have to call the method "run()" like this: + #elif tsk.__class__.__name__ == 'src2c': + # tsk.run() + # if hasattr(tsk, 'more_tasks'): + # lst.extend(tsk.more_tasks) tup = tuple(y for y in [Task.classes.get(x) for x in ('c', 'cxx')] if y) if isinstance(tsk, tup):