Skip to content

Commit 1a81c44

Browse files
committed
includedb: limit get_all_commands() to one result
1 parent 0cd1de3 commit 1a81c44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compdb/includedb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ def get_compile_commands(self, path):
201201
for compile_command in self.database.get_compile_commands(best):
202202
yield compdb.complementer.headerdb.derive_compile_command(
203203
path, compile_command)
204+
# stop after one compile command
205+
break
204206

205207
def get_all_files(self):
206208
return iter(self.graph.keys())

0 commit comments

Comments
 (0)