On 18/06/21 06:53, Gerd Hoffmann wrote:
+def find_command(src, target, compile_commands):
+    for command in compile_commands:
+        if command['file'] != src:
+            continue
+        if target != '' and command['command'].find(target) == -1:
+            continue


Did you look into using extract_objects for this instead of looking for the target (which works, but yuck :))?

Paolo


Reply via email to