oclint/oclint — pull request #76 by chrta (2013-07-15 09:04:53+00:00)
Title: Ignore dependency commands

When creating the json compilation database using "bear make ..." and the makefile generates dependency files, there may be duplicate entries in the variable compileCommands in constructCompileCommands(), one entry for the dependency file generation, one entry for the actual compilation.

This patch filters the commands that contain "-M" or "-MM". The will be ignored.