tweekmonster / deoplete-clang2

MIT License
90 stars 17 forks source link

Add support for "arguments" in database #33

Open algmyr opened 5 years ago

algmyr commented 5 years ago

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.