Compilation databases supports both command and arguments but deoplete-clang2 doesn't. This commit adds support for arguments. command is the first choice, arguments is second, and if neither is in the database an exception is raised. This priority might be worth documenting somewhere. Maybe a warning should be given if both are supplied rather than silently ignoring arguments, but that's debatable.
Compilation databases supports both
command
andarguments
but deoplete-clang2 doesn't. This commit adds support forarguments
.command
is the first choice,arguments
is second, and if neither is in the database an exception is raised. This priority might be worth documenting somewhere. Maybe a warning should be given if both are supplied rather than silently ignoringarguments
, but that's debatable.